Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Atom.io Quick Scripting 2014/05/17! Kanazawa.rb meetup 21
Slide 2
Slide 2 text
Atom.io https://atom.io
Slide 3
Slide 3 text
Atom.io ❖ A hackable text editor for the 21st Century! ❖ Modern UI! ❖ Many plugins! ❖ Corder friendly functions by GitHub, Inc.
Slide 4
Slide 4 text
Plugins https://atom.io/packages/
Slide 5
Slide 5 text
markdown-preview ❖ Markdown preview in Atom! ❖ https://atom.io/packages/markdown-preview
Slide 6
Slide 6 text
color-picker ❖ A Color Picker for Atom! ❖ https://atom.io/packages/color-picker
Slide 7
Slide 7 text
Quick Scripting
Slide 8
Slide 8 text
Quick Scripting ❖ Run editing code in The editor! ❖ Checking code behavior (or syntax)! ❖ Execute small small program! ! ❖ Immediately!!
Slide 9
Slide 9 text
script (plugin) ❖ Run code in Atom!! ❖ https://atom.io/packages/script
Slide 10
Slide 10 text
Demo
Slide 11
Slide 11 text
How to Setup (Atom ver. 0.95.0)
Slide 12
Slide 12 text
1. Open Preference ❖ Menu → Atom → Preferences…
Slide 13
Slide 13 text
2. Select Packages pane
Slide 14
Slide 14 text
3. Search “script” plugin
Slide 15
Slide 15 text
4. Install “Script” plugin
Slide 16
Slide 16 text
Usage (Script ver. 2.3.7)
Slide 17
Slide 17 text
1. Open Code ❖ Menu → File → Open…! ! ❖ Menu → File → New File! ❖ Set code language! ❖ Ctrl-Shift-L! ❖ Input language filter & select
Slide 18
Slide 18 text
2. Run! ❖ Menu → Packages → Script → Run Script! ! ❖ ⌘-i
Slide 19
Slide 19 text
Tips
Slide 20
Slide 20 text
Env ❖ PATH env … ?! ❖ rvm, nvm … ?! ! ❖ write ENV settings “.bash_profile (.zshenv)”! ❖ NOT “.bashrc (.zshrc)”! ! ❖ .bash_profile! ❖ PATH=${PATH}:/opt/local/bin! ❖ source $HOME/.rvm/scripts/rvm
Slide 21
Slide 21 text
bundler ? ❖ Prepare! ❖ Menu → Atom → Install Shell Command! ❖ /usr/local/bin/atom → Atom.app/Contents/Resources/app/atom.sh! ❖ open -a Atom.app! ! ❖ Exec! ❖ $ bundle exec atom
Slide 22
Slide 22 text
Vim + Quickrun plugin ❖ https://github.com/thinca/vim-quickrun ! ❖ $ bundle exec vim! ❖ :Quickrun! ❖ r
Slide 23
Slide 23 text
Thank you Tomokazu Kiyohara http://github.com/kiyohara http://facebook.com/tomokazu.kiyohara