Skip to content

Instantly share code, notes, and snippets.

Avatar

Anders Hansen xiplias

View GitHub Profile
@xiplias
xiplias / esca.rb
Created Oct 12, 2011
Campfire script for Pomodoro
View esca.rb
require 'rubygems'
require 'tinder'
campfire = Tinder::Campfire.new 'ROOM_NAME', :token => 'TOKEN'
# or you can still use username/password and Tinder will look up your token
# campfire = Tinder::Campfire.new 'mysubdomain', :username => 'user', :password => 'pass'
room = campfire.find_or_create_room_by_name 'Billetto Development'
name = ARGV[1]
View gist:420178
class PageController {
var $person; #$person is used by the HTML page
var $errs;
function PageController() {
$action = Form::getParameter('cmd');
$this->person = new Person();
$this->errs = array();
if ($action == 'save') {
$this->parseForm();
if (!this->validate()) return;
View bundler_cap.rb
namespace :bundler do
task :install do
run("gem install bundler --source=http://gemcutter.org")
end
task :symlink_vendor do
shared_gems = File.join(shared_path, 'vendor/gems')
release_gems = "#{release_path}/vendor/gems/"
%w(cache gems specifications).each do |sub_dir|
shared_sub_dir = File.join(shared_gems, sub_dir)