Skip to content

Instantly share code, notes, and snippets.

$ firetower setup
What is your Campfire subdomain? If your Campfire address is
http://mycompany.campfirenow.com, your subdomain is "mycompany" (without the
quotes).
smartlogic
Please enter your Campfire API token. You can find your token at
http://smartlogic.campfirenow.com/member/edit
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (actual token was here)
Use SSL when connecting to Campfire?
no
require 'test_helper'
class ManageOrganizationsTest < ActionController::IntegrationTest
def should_be_on(path)
current_path = URI.parse(current_url).path
assert_equal path, current_path
end
def should_see(content)
assert page.has_content?(content), "Page did not have content: #{content}"
end
<<<<<<< HEAD
=======
>>>>>>> sector-size
require 'rubygems'
require 'test/unit'
class Call
attr_accessor :company
def initialize(opts = {})
@company = opts[:company]
raise Call::NoCompanyException unless @company
end
alias serve="ruby -rwebrick -e\"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start\""
From dcc1362369452821271a8e59f5a54202c837fe9a Mon Sep 17 00:00:00 2001
From: Nick Gauthier <nick@smartlogicsolutions.com>
Date: Mon, 13 Sep 2010 09:47:05 -0400
Subject: [PATCH] using current gem versions
---
Gemfile | 19 ++++++++-----------
1 files changed, 8 insertions(+), 11 deletions(-)
diff --git a/Gemfile b/Gemfile
class FacebookController < ApplicationController
def login
# send the user to the FB page for this application, redirect to do_login
# client ID is the FB app id
# scope=publish_stream lets us make feed posts
redirect_to %{https://graph.facebook.com/oauth/authorize?client_id=115446458515992&redirect_uri=#{do_login_facebook_index_url.to_param}&scope=publish_stream}
end
def do_login
# Get the cookie code passed in
class Boat
driveable
end
$ ruby parallel_bench.rb
== Many Small Jobs Benchmark ==
Forque Benchmark: 0.097953
Parallel Benchmark: 10.233478
Serial Benchmark: 0.000956
== Few Large Jobs Benchmark ==
Forque Benchmark: 25.104783
Parallel Benchmark: 26.984219
rake notes:custom # Enumerate a custom annotation, specify with ANNOTATION=WTFHAX