This file contains 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
# Provide a :rails_env fact | |
Facter.add(:rails_env) do | |
setcode do | |
ENV["RAILS_ENV"] || 'production' | |
end | |
end | |
# Your application manifest | |
class ApplicationManifest < Moonshine::Manifest | |
# Let us use non-symbol keys in the moonshine.yml |
This file contains 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
module BundlerSupport | |
def bundler_dependencies(options = {}) | |
root = options.delete(:root) | |
# WARNING: This is highly Bundler 0.9 -specific | |
YAML::load_file(File.join(root, 'Gemfile.lock'))['specs'].each do |spec| | |
gem_name = spec.keys.first | |
dependent_recipe = "#{gem_name.gsub(/-/, '_')}_gem_dependencies".to_sym | |
if method_defined?(dependent_recipe) |
This file contains 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
7/29/10 11:38:44 PM [0x0-0x8c08c].com.topfunky.PeepOpen[2672] Unknown option: `-l' | |
7/29/10 11:38:44 PM [0x0-0x8c08c].com.topfunky.PeepOpen[2672] Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ]. | |
7/29/10 11:41:54 PM [0x0-0x8c08c].com.topfunky.PeepOpen[2672] Unknown option: `-l' | |
7/29/10 11:41:54 PM [0x0-0x8c08c].com.topfunky.PeepOpen[2672] Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ]. |
This file contains 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
default { | |
execute 'SendDTMF', '1111', '100' | |
} |
This file contains 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
$ rackup -p 8880 static.ru |
This file contains 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 'johnson' | |
require 'open-uri' | |
require 'yajl' | |
# Grab the source to the Javascript JSON implementation | |
json_js = open('http://www.json.org/json2.js').read | |
# Strip that silly alert at the top of the file | |
json_js.gsub!(/^(alert.*)$/, '/* \1 */') |
This file contains 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 'johnson' | |
require 'open-uri' | |
require 'yajl' | |
# Grab the source to the Javascript JSON implementation | |
json_js = open('http://www.json.org/json2.js').read | |
# Strip that silly alert at the top of the file | |
json_js.gsub!(/^(alert.*)$/, '/* \1 */') |
This file contains 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
This time bay-beee I'll beeeeeeEEEEEEEEEeeeee - BullehhhhhhhhhhhhhhhT PROOOF. | |
This time may-beee I'll beeeeeeeeeee... Bulleeeeeht proof. |
This file contains 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
def connection | |
@connection ||= Faraday::Connection.new(:url => @uri.to_s) do |conn| | |
conn.use Faraday::Request::ActiveSupportJson | |
conn.adapter Faraday.default_adapter | |
conn.use Tinder::FaradayResponse::RaiseOnAuthenticationFailure | |
conn.use Faraday::Response::ActiveSupportJson | |
conn.use Tinder::FaradayResponse::WithIndifferentAccess | |
conn.headers['Content-Type'] = 'application/json' | |
conn.proxy ENV['HTTP_PROXY'] |
This file contains 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
/* ReaderJSController.originalArticleFinder(): */ | |
{ | |
"contentDocument": [object HTMLDocument], | |
"didSearchForArticleNode": true, | |
"article": [object Object], | |
"didSearchForPrependedArticleNode": true, | |
"prependedArticle": null, | |
"_cachedScrollY": 0, | |
"_cachedScrollX": 0, | |
"_elementsWithCachedBoundingRects": [object HTMLDivElement], |