Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /** | |
| * Based conceptually on the _.extend() function in underscore.js ( see http://documentcloud.github.com/underscore/#extend for more details ) | |
| * Copyright (C) 2012 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955 | |
| * | |
| * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. | |
| **/ |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/usr/bin/env ruby | |
| # Command line util for acquiring a one-off Twitter OAuth access token | |
| # Based on http://blog.beefyapps.com/2010/01/simple-ruby-oauth-with-twitter/ | |
| require 'rubygems' | |
| require 'oauth' | |
| puts <<EOS | |
| Set up your application at https://twitter.com/apps/ (as a 'Client' app), |