This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |