Skip to content

Instantly share code, notes, and snippets.

View secondstar's full-sized avatar

Carl Tanner secondstar

View GitHub Profile
@secondstar
secondstar / README.md
Last active August 29, 2015 13:59
Trulia 24/7 House Hunting

An paring down of trulia's page to get the essence of how it works.

@secondstar
secondstar / README.md
Last active August 29, 2015 13:59
candlestick chart

This is a candlestick chart.

@secondstar
secondstar / gist:8531904
Last active January 3, 2016 22:59
RubyMotion rmq error
$ rake spec
Build ./build/iPhoneSimulator-7.0-Development
Link ./build/iPhoneSimulator-7.0-Development/image_browser_spec.app/image_browser
Create ./build/iPhoneSimulator-7.0-Development/image_browser_spec.app/PkgInfo
Create ./build/iPhoneSimulator-7.0-Development/image_browser_spec.app/Info.plist
Create ./build/iPhoneSimulator-7.0-Development/image_browser_spec.dSYM
Simulate ./build/iPhoneSimulator-7.0-Development/image_browser_spec.app
2014-01-20 16:08:11.116 image_browser[75935:a0b] Cannot find executable for CFBundle 0xb288d80 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-01-20 16:08:11.134 image_browser[75935:a0b] Cannot find executable for CFBundle 0xb2c0d10 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/GeoServices.axbundle>
1.9.3p392 :050 > @client = IronCache::Client.new
NOTICE: Please install 'typhoeus' gem or upgrade to Ruby 2.X for optimal performance.
=> #<IronCache::Client:0x007faa2bc3b5b8 @options_list=[:scheme, :host, :port, :user_agent, :http_gem, :project_id, :token, :api_version, :cache_name], @env=nil, @project_id="51d0807bed3d763e72003fc4", @token="fpkAVBCRPwDWAGnpr2PRJBkjgcE", @scheme="https", @host="cache-aws-us-east-1.iron.io", @port=443, @user_agent="iron_cache_ruby-1.4.0 (iron_core_ruby-0.6.2)", @api_version=1, @cache_name="default", @content_type="application/json", @rest=#<Rest::Client:0x007faa2bd98b90 @options={:gem=>nil}, @logger=#<Logger:0x007faa2d792ed8 @progname=nil, @level=1, @default_formatter=#<Logger::Formatter:0x007faa2d792a00 @datetime_format=nil>, @formatter=#<Logger::SimpleFormatter:0x007faa2d7998a0 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x007faa2d792078 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x007faa2d799d78 @m
@secondstar
secondstar / pdf_processor.worker
Created July 3, 2013 04:23
pdf_processor.worker
# define the runtime language
runtime "ruby"
# build on iron.io server
remote
# debian packages
merge_deb 'http://ubuntu.mirrors.tds.net/pub/ubuntu//pool/main/g/ghostscript/ghostscript_9.05~dfsg-0ubuntu4_amd64.deb'
# employ gems
gem "iron_worker_ng", "~> 0.16.4"
gem "iron_cache"
gem "ironmq", "~> 1.2.8"
@secondstar
secondstar / ghostscript_error
Created July 3, 2013 03:36
iron.io ghostscript .worker error
$ iron_worker upload pdf_processor.worker
------> Creating client
NOTICE: Please install 'typhoeus' gem or upgrade to Ruby 2.X for optimal performance.
Project 'onstage - development' with id='51d0807bed3d763e72003fc4'
------> Creating code package
Found workerfile with path='pdf_processor.worker'
/Users/captainproton/.rvm/gems/ruby-1.9.3-p392@onstage2/gems/iron_worker_ng-0.16.4/lib/iron_worker_ng/code/base.rb:85:in `eval': (eval):6: unknown regexp options - rrr (SyntaxError)
(eval):6: unknown regexp option - a
(eval):6: no .<digit> floating literal anymore; put 0 before dot
...in/g/ghostscript/ghostscript_9.05~dfsg-0ubuntu4_amd64.deb