Skip to content

Instantly share code, notes, and snippets.

// It is important to declare your variables.
(function() {
var foo = 'Hello, world!';
print(foo); //=> Hello, world!
})();
// Because if you don't, the become global variables.
(function() {
@evan-007
evan-007 / Gemfile
Created March 31, 2014 22:14 — forked from jancel/Gemfile
source 'https://rubygems.org'
gem 'rails', "3.2.10"
# omitted
group :stage, :production do
gem 'pg'
gem 'unicorn'
end
#!/usr/bin/env ruby
require 'koala' # gem install koala --no-ri --no-rdoc
# create a facebook app and get access token from here
# https://developers.facebook.com/tools/explorer
# select "groups", "photos" when authenticating
oauth_access_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
group_filtering_words = ['ruby']
image_path = 'image.png' #change to your image path
message = 'My Cool image.' # your message