Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
OctoLab Cookbook: how to use composer.yml and s...
Search
Kamil Samigullin
May 23, 2016
Education
1
60
OctoLab Cookbook: how to use composer.yml and stop creating issues about
Start using all features of YAML with Composer today.
Kamil Samigullin
May 23, 2016
Tweet
Share
More Decks by Kamil Samigullin
See All by Kamil Samigullin
OctoLab Cookbook: Go lang tips and tricks - protection of sensitive config data
kamilsk
1
140
OctoLab Cookbook: how to generate a unique key for a sequence
kamilsk
1
41
Enter Cookbook: refactoring under a microscope
kamilsk
1
61
Other Decks in Education
See All in Education
Multimodal Interaction - Lecture 3 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2k
Railsチュートリアル × 反転学習の事例紹介
yasslab
PRO
3
170k
コマンドラインの使い方 / 01-d-cli
kaityo256
PRO
0
110
SJRC 2526
cbtlibrary
1
220
国際卓越研究大学計画|Science Tokyo(東京科学大学)
sciencetokyo
PRO
0
49k
渡辺研Slackの使い方 / Slack Local Rule
kaityo256
PRO
11
11k
Activité_5_-_Les_indicateurs_du_climat_global.pdf
bernhardsvt
0
210
Interactive Tabletops and Surfaces - Lecture 5 - Next Generation User Interfaces (4018166FNR)
signer
PRO
1
2k
Gluon Recruit Deck
gluon
0
160
Introduction - Lecture 1 - Next Generation User Interfaces (4018166FNR)
signer
PRO
2
4.5k
Avoin jakaminen ja Creative Commons -lisenssit
matleenalaakso
0
2.1k
この講義について / 00-setup
kaityo256
PRO
0
240
Featured
See All Featured
Optimizing for Happiness
mojombo
378
71k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Practical Orchestrator
shlominoach
191
11k
How to make the Groovebox
asonas
2
2k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
790
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
53k
Scaling GitHub
holman
464
140k
Ethics towards AI in product and experience design
skipperchong
2
230
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
How to Talk to Developers About Accessibility
jct
2
160
Transcript
Episode #1.0.1 (2016-05-25) Level: Beginner OctoLab Cookbook How to use
composer.yml and stop creating issues about
The context
None
The problem
• composer/composer#159 • composer/composer#440 • composer/composer#1778 • composer/composer#1988 • composer/composer#5364
is:issue is:closed yaml
The solution
Installation • https://www.python.org/downloads/ (but most cases it is already exists)
• pip install pyyaml • or apt-get install python-yaml • or yum install python-yaml • etc. Requirements • Python • PyYAML
- first: imports import sys, yaml, json;
- second: suppress traceback sys.tracebacklimit = 0;
- third: print it print(json.dumps(yaml.load(open(sys.argv[1]).read())))
- fourth: integrate all together <command> = python -c \
"import sys, yaml, json; \ sys.tracebacklimit = 0; \ print(json.dumps(yaml.load(open(sys.argv[1]).read()), indent=2))" # ~/.bash_profile alias yaml2json = <command> # use it yaml2json composer.yml > composer.json
The benefits
None
None
None
COMMENTS!!!
None
None
None
Bonus: PhpStorm integration
None
• Convert YAML to JSON Online with related tools on
different languages for console • composer-yaml • Example of usage • package.meta initiative Useful links
Thank you for your attention! Have questions? Kamil Samigullin a
some developer
[email protected]
@ikamilsk github.com/kamilsk linkedin.com/in/kamilsk