I hereby claim:
- I am fbjork on github.
- I am fbjork (https://keybase.io/fbjork) on keybase.
- I have a public key whose fingerprint is C4C8 667A 8114 4A79 8A62 9F33 378A 352B 7574 5FB6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"connections": [ | |
{ | |
"user_id": "4e4b1547a876e66e41000033", | |
"friend_id": "4e4b1547a876e66e41000011", | |
"providers": [ | |
"facebook", | |
"twitter" | |
] | |
}, |
doc = { "id": "4e57f6b213a773d89d000001", "full_name": "Fredrik Bjork", "nickname": "fbjork", "provider": "twitter", "friend_ids": "4e57f6b213a773d89d000002 4e57f6b213a773d89d000003"} |
begin | |
timeout(3) do | |
GirlFriday::Batch.new(friends, size: 3) do |friend| | |
# perform some long running stuff | |
end | |
end | |
rescue Timeout::Error | |
# clean up needed? | |
end | |
PUBNUB_QUEUE = GirlFriday::WorkQueue.new(:pubnub, size: 3) do |msg| | |
pubnub = Pubnub.new(TestApp::Application.config.pubnub_publish_key, TestApp::Application.config.pubnub_subscribe_key, TestApp::Application.config.pubnub_secret_key, false) | |
pubnub.publish({'channel' => msg[:channel], 'message' => msg[:message]}) | |
end | |
# Here's how I push to the queue: | |
PUBNUB_QUEUE.push(channel: "room/123", message: {text: 'hello'}) | |
# This is the gem code: | |
https://github.com/pubnub/pubnub-api/tree/master/ruby/ |
group :development, :test do | |
if RUBY_PLATFORM =~ /darwin/i | |
gem 'growl', '1.0.3' | |
gem 'rb-fsevent', '0.4.3.1' | |
end | |
end |
function createFeeds() { | |
var limit = 10000; | |
var users = db.users.find().limit(limit); | |
var skip = 0; | |
while(users.length() > 0) { | |
for (i = 0; i < users.length(); i++) { | |
doc = {home_activities_count: 0, home_activity_ids: [], profile_activities_count: 0, profile_activity_ids: [], user_id: users[i]['_id']}; | |
db.feeds.insert(doc); | |
} |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/sanitized_file.rb:157:in `initialize' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/sanitized_file.rb:157:in `open' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/sanitized_file.rb:157:in `read' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/storage/s3.rb:140:in `store' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/storage/s3.rb:210:in `store!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/store.rb:59:in `block in store!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/callbacks.rb:17:in `with_callbacks' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/store.rb:58:in `store!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/versions.rb:210:in `block in store_versions!' | |
.bundle/gems/ruby/1.9.1/gems/carrierwave-0.5.5/lib/carrierwave/uploader/versions.rb:210:in `each' |
this is what I want: | |
background: sprite-image('gradients/footer.png', 0, 0, 50px, 50px) transparent repeat-x; | |
this is what I tried: | |
$gradients-repeat: repeat-x; | |
$gradients-spacing: 50px; | |
@import 'gradients/*.png'; | |
@include gradients-sprite(footer); |
gem 'my-private-gem', :git => 'https://username:[email protected]/username/my-private-gem.git' |