Skip to content

Instantly share code, notes, and snippets.

View goshacmd's full-sized avatar

Gosha Spark goshacmd

View GitHub Profile
@goshacmd
goshacmd / gist:3170315
Created July 24, 2012 14:43
Mongoid fails on Heroku
irb(main):013:0> Shop.count
NoMethodError: undefined method `[]' for nil:NilClass
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:74:in `block in command'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:522:in `[]'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:522:in `block (3 levels) in flush'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:521:in `map'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:521:in `block (2 levels) in flush'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:113:in `ensure_connected'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:517:in `block in flush'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.1.5/lib/moped/node.rb:532:in `logging'
@goshacmd
goshacmd / log.txt
Created July 11, 2012 17:34
Tweetbot for Mac crash log
Process: Tweetbot [12260]
Path: /Applications/Tweetbot.app/Contents/MacOS/Tweetbot
Identifier: com.tapbots.TweetbotMacAdHoc
Version: 0.6 (635)
Code Type: X86-64 (Native)
Parent Process: launchd [178]
User ID: 501
Date/Time: 2012-07-11 20:32:53.626 +0300
OS Version: Mac OS X 10.8 (12A269)
@goshacmd
goshacmd / dabblet.css
Created December 27, 2011 18:59
CSS3 version of the Beijing Air icon
/**
* CSS3 version of the Beijing Air icon
* http://dribbble.com/shots/363832-Beijing-Air-app
*/
@import url(http://fonts.googleapis.com/css?family=Overlock);
body {
font-size: 10px;
background: url(http://f.cl.ly/items/3d460M1G3a0Z0R382O0e/BlurredLights.png) no-repeat center center fixed;
@goshacmd
goshacmd / 2011-07-25-test-of-code-block
Created July 25, 2011 11:13
Troubles with highlighting Objective-C code with Octopress
{% codeblock main.m %}
GSHFraction * fraction;
fraction = [[GSHFraction alloc] initWithNumerator:10 andDenominator: 30];
[fraction reduce];
{% endcodeblock %}