Skip to content

Instantly share code, notes, and snippets.

View ahawkins's full-sized avatar
💭
🌈🏄🏼‍♂️🤙🏻

Adam Hawkins ahawkins

💭
🌈🏄🏼‍♂️🤙🏻
View GitHub Profile
class RedisMap
def initialize(redis)
@redis = redis
end
def clear
redis.del key
fail 'failed to delete' if redis.exists key
end
class User
include Chassis::Persistance
include Serialization
include Chassis::HashInitializer
attr_accessor :name, :phone_number, :token, :device
def push?
!!device.push_token
end
class User
include Chassis::Persistence
attr_accessor :name, :phone_number, :token, :device
def push?
!!device.push_token
end
def save
class MemoryRepo < Chassis:MemoryRepo
def find(klass, id)
super klass, id.to_i
end
def query_auth_token_with_code(klass, q)
all(klass).find do |auth_token|
auth_token.code == q.code
end
end
class PostRepo
extend Chassis::Repo::Delegation
class << self
def backend
PostStore.instance
end
end
end
App.CiruitSwitchComponent = Ember.Component.extend({
isLocked: true,
lockText: (function() {
return(this.get('isLocked') === true ? 'Unlock' : 'Lock');
}).property('isLocked')
});
5/18/14 6:23:57.592 PM Tweetbot[1565]: Exception detected while handling key input.
5/18/14 6:23:57.593 PM Tweetbot[1565]: *** NSRunStorage, _NSBlockNumberForIndex(): index (1) beyond array bounds (1)
5/18/14 6:23:57.595 PM Tweetbot[1565]: (
0 CoreFoundation 0x00007fff8614325c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8e9bee75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8614310c +[NSException raise:format:] + 204
3 AppKit 0x00007fff8d4da797 _NSBlockNumberForIndex + 85
4 AppKit 0x00007fff8d4dd3f1 -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] + 274
5 AppKit 0x00007fff8d65f71c -[NSTextView drawsVerticallyForCharacterAtIndex:] + 198
6 AppKit 0x00007fff8d65f63e -[NSTextInputContext drawsVerticallyForCharacterAtIndex:] + 41
hawk@erde letters]$ make site
docker run \
--rm \
-v /home/hawk/projects/letters/tmp:/data \
-t ahawkins/letters \
bundle exec jekyll build --destination /data
/usr/local/lib/ruby/gems/2.1.0/gems/execjs-2.2.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /usr/local/lib/ruby/gems/2.1.0/gems/execjs-2.2.0/lib/execjs.rb:5:in `<module:ExecJS>'
from /usr/local/lib/ruby/gems/2.1.0/gems/execjs-2.2.0/lib/execjs.rb:4:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.1.0/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'