Skip to content

Instantly share code, notes, and snippets.

# Lighter -- Campfire from the command line
# usage: ruby lighter.rb
require "rubygems"
require "tinder"
require "readline"
require "highline/import"
TOKEN="XXX"
SUBDOMAIN="XXX"
ROOM="XXX"
Please create a mixin which adds 'send_later' support to objects of the class it's included on.
Async#send_later( :method, *args )
Calling `send_later` on an object with the Async ducktype should cause the message to be executed asynchronously.
Your implementation should not rely on anything other than the Ruby standard library.
@bpo
bpo / job.md
Created January 18, 2010 20:32 — forked from tysonmote/job.md

#Backend engineer

Dolores Labs is funded, growing, and, frankly, where the action is at in San Francisco. However, we have a bit of a problem: Ruby doesn't scale. We need someone to rewrite our entire application in Java. JUST KIDDING. But our system and user base have both been growing by leaps and bounds. We need a creative, smart and resourceful engineer to help our systems meet the growing demands of our users.

##Skills that are a must

Startup: You're able to learn quickly, design creative solutions, and work independently.

People: We have an API which is used by many clients and customers. In addition to building and improving this API, you'll help our customers understand and use it in ways that support their business.

@bpo
bpo / gist:183456
Created September 9, 2009 03:39 — forked from mtodd/gist:180398
Surround a heredoc with quotes and you can continue the code on the same line:
render :status => 404, :text => <<-'EOH' and return unless setup
article not found<br/>
I, as a server, have failed<br/>
https?
EOH
Quotes also give you more freedom/creativity with the terminal ID:
#!/usr/bin/env ruby
require 'rubygems'
require 'thor'
require 'chef'
require 'chef/node'
require 'chef/rest'
# Please see the readme for overview documentation.
#