$30 off During Our Annual Pro Sale. View Details »
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
58
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
39
Enter Cookbook: refactoring under a microscope
kamilsk
1
57
Other Decks in Education
See All in Education
アジャイルの知見から新卒研修作り、そして組織作り
pokotyamu
0
120
The Next Big Step Toward Nuclear Disarmament
hide2kano
0
170
Web Search and SEO - Lecture 10 - Web Technologies (1019888BNR)
signer
PRO
2
3k
焦りと不安を、技術力に変える方法 - 新卒iOSエンジニアの失敗談と成長のフレームワーク
hypebeans
1
610
HCI and Interaction Design - Lecture 2 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.4k
KBS新事業創造体験2025_科目説明会
yasuchikawakayama
0
150
くまのココロンともぐらのロジ
frievea
0
120
MySmartSTEAM 2526
cbtlibrary
0
160
今の私を形作る4つの要素と偶然の出会い(セレンディピティ)
mamohacy
2
130
とある長岡高専卒のおっさんがIT企業のマネージャーになるまで / journey-from-nagaoka-kosen-grad-to-it-manager
masaru_b_cl
0
180
Web Architectures - Lecture 2 - Web Technologies (1019888BNR)
signer
PRO
0
3.3k
1021
cbtlibrary
0
370
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
Code Reviewing Like a Champion
maltzj
527
40k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
0
59
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
130
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
240
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
Practical Orchestrator
shlominoach
190
11k
Reality Check: Gamification 10 Years Later
codingconduct
0
1.9k
Facilitating Awesome Meetings
lara
57
6.7k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
86
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
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