This file contains hidden or 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
cd ~/Library/Application\ Support/TextMate | |
git clone git://github.com/bmabey/cucumber-tmbundle.git | |
git clone git://github.com/dchelimsky/rspec-tmbundle.git |
This file contains hidden or 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
Ad Valorem (USA) 2002 | |
Alamosa (NZ) 2004 | |
Align (AUS) 1996 | |
All Bar One (AUS) 2001 |
This file contains hidden or 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
# Monkey patch to fix bug in rails 2.3 + ruby1.9.1 integration tests (rspec, cucumber, webrat) | |
# Put it in your support folder and require it in your env.rb | |
# features/support/ruby19_integration_path.rb | |
# | |
module ActionController | |
module Integration | |
class Session | |
private |
This file contains hidden or 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
Sports Event | |
{ | |
id: | |
account_id: | |
channel_id: | |
sport: 'Football Matches' | |
competition: 'UEFA U21 Championship Matches' | |
title: 'The Ashes 2009' | |
url: 'http://some bookie.com' |
This file contains hidden or 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
<select id="country"> | |
<optoin>Australia</option> | |
<option>China</option> | |
</select> | |
<select id="city"> | |
</select> |
This file contains hidden or 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
module ActiveSupport | |
class MessageVerifier | |
private | |
# constant-time comparison algorithm to prevent timing attacks | |
def secure_compare(a, b) | |
if a.respond_to?(:bytes) | |
a.bytes.to_a == b.bytes.to_a | |
else | |
a.to_a == b.to_a | |
end |
This file contains hidden or 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 AppController extends Controller { | |
var $sslRequired = array('login', 'logout'); | |
var $sslAllowed = array('index'); | |
var $beforeFilter = array('ensureProperProtocol'); | |
private function sslRequired() { | |
return in_array($this->action, $this->sslRequired); | |
} |
This file contains hidden or 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
./configure \ | |
--prefix=/usr/local/php5.3 \ | |
--mandir=/usr/local/share/man \ | |
--infodir=/usr/local/share/info \ | |
--with-config-file-path=/usr/local/etc \ | |
--enable-calendar \ | |
--with-iconv=/opt/local \ | |
--enable-exif \ | |
--enable-ftp \ | |
--enable-wddx \ |
This file contains hidden or 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 PhotogalleriesController < ApplicationController | |
caches_action :list, :show | |
end |
This file contains hidden or 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
# app:sync | |
# Local and production synchronization | |
# - require yaml_db plugin | |
namespace :app | |
namespace :sync do | |
task :all => [:files, :db] | |
task :files do | |
`rsync -azv user@host:'/apps/myawesomeapp/shared/files/' #{Rails.root + 'files'}` |