Skip to content

Instantly share code, notes, and snippets.

View xiplias's full-sized avatar

Anders Hansen xiplias

  • Copenhagen, Denmark
View GitHub Profile
@xiplias
xiplias / esca.rb
Created October 12, 2011 11:23
Campfire script for Pomodoro
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]
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;
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)