- Run
gem install httparty
. This installs the HTTParty gem which the script uses. (A gem is a package containing ruby code which you can use. Hundreds of thousands of gems are available at https://rubygems.org.) - Download the raw version of the ruby script and save it to a file locally. (Look for the 'View Raw' link in the upper-right corner.)
- Add your own email & password to the script.
- Run it and see how it goes.
- Look for ways you can expand this example at http://todoist.com/API/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'RMagick' | |
# http://www.imagemagick.org/RMagick/doc/comtasks.html#thumb | |
original_filename = 'image.jpg' | |
thumb_filename = 'thumb.jpg' | |
orig = Magick::Image.read(original_filename).first | |
rows, cols = [150, 150] |
[ Launch: reddit base ] 6641673 by alexdean[ Launch: reddit base ] 6639310 by enjalot[ Launch: reddit base ] 6633418 by enjalot[ Launch: simple histogram ] 6631652 by enjalot
[ Launch: cat clicking ] 6641669 by alexdean[ Launch: cat clicking ] 6641459 by enjalot
[ Launch: reddit brush ] 6641586 by alexdean[ Launch: reddit brush ] 6640391 by enjalot[ Launch: reddit brush ] 6640200 by enjalot[ Launch: reddit base ] 6633418 by enjalot[ Launch: simple histogram ] 6631652 by enjalot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | |
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
video_id, language_code, title, translator_credit, reviewer_credit | |
_WLlHpCjrmE en Curing Cancer with Golden Nanoparticles: Dr. Amal Ayoub at TEDxJerusalem missing missing | |
0YzvupOX8Is es Una forma inteligente de estimar números enormes - Michael Mitchell present missing | |
9FCsyK4aRXQ en Modern Warrior: Damien Mander at TEDxSydney missing missing | |
AmFMJC45f1Q ar كيف يمكننا بطي الورق أن نصل الى القمر ؟ missing missing | |
b_lT6mJM_fA it Biocarburanti e bioprospezione per principianti - Craig A. Kohn missing missing | |
BMcduh1HEHA en Alzheimer and memory palaces: Kasper Bormans at TEDxLeuven missing missing | |
DD_8Jm5pTLk zh-tw 四季變化的原因 - Rebecca Kaplan missing missing | |
dlW0fa-FkPQ en The Happiness Advantage: Leda Karabela at TEDxThessaloniki missing missing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'time' | |
t = Time.parse(ARGV[0]) | |
puts "#{t.iso8601} -> #{t.to_i}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ java -version | |
java version "1.6.0_43" | |
Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203) | |
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode) | |
$ rp5 run bubbles.rb | |
RUBY_VERSION: 1.9.3 | |
RUBY_PLATFORM: java | |
JRUBY_VERSION: 1.7.3 | |
JRUBY_REVISION: dac429b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm use system | |
$ rp5 run test_sketch.rb | |
RUBY_VERSION: 1.9.3 | |
RUBY_PLATFORM: java | |
JRUBY_VERSION: 1.7.3 | |
JRUBY_REVISION: dac429b | |
FDrawable stroke methods ========== | |
[] |