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
gem "mongo_ext" | |
gem "mongo_mapper", :git => 'http://github.com/merbjedi/mongomapper.git', :branch => 'rails3' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CurrentSet</key> | |
<string>/Sets/C682995D-BDC7-4CA9-9690-025B98E66417</string> | |
<key>NetworkServices</key> | |
<dict> | |
<key>0C31EBF1-111F-4365-88E1-8808956397D0</key> | |
<dict> |
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
http-console installation on OSX: | |
- brew install node | |
- brew install npm | |
- npm install http-client | |
- ln -s /Users/ton_username/.node_libraries/.npm/http-console/active/package/bin/http-console /usr/local/bin/http-console |
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
# Add this file in config/initializers | |
module ActionController | |
module Integration | |
class Session | |
private | |
# Get a temporary URL writer object | |
def generic_url_rewriter | |
env = { | |
'REQUEST_METHOD' => "GET", | |
'QUERY_STRING' => "", |
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
jruby-jruby-1.5.2@celerity [±] => rvm info [ on development?] | |
jruby-1.5.2@celerity: | |
system: | |
uname: "Darwin chaton.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386" | |
zsh: "zsh 4.3.10 (i386-apple-darwin10.3.0)" | |
bash: "GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)" | |
rvm: | |
version: "rvm 1.0.1 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" |
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
window.fbAsyncInit = function () { | |
FB.init({ appId: #{APP_ID}, status: true, cookie: true, xfbml: true }); | |
/* All the events registered */ | |
FB.Event.subscribe('auth.login', function (response) { | |
// do something with response | |
alert("login success"); | |
}); | |
FB.Event.subscribe('auth.logout', function (response) { | |
// do something with response |
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
" Vim color file | |
" Converted from Textmate theme Clouds Midnight using Coloration v0.2.4 (http://github.com/sickill/coloration) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
#!/usr/local/bin/node | |
var sys = require('sys'), | |
fs = require('fs'), | |
spawn = require('child_process').spawn, | |
Log = require('log'), | |
log = new Log(Log.DEBUG, fs.createWriteStream('poller.log', {'flags': 'a'})), | |
outQueue = require('./resque').connect({host: 'localhost', port: 6379}); | |
var child = '', |
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
function prompt_char { | |
git branch >/dev/null 2>/dev/null && echo ' [±] ' && return | |
hg root >/dev/null 2>/dev/null && echo ' [☿] ' && return | |
echo ' [○] ' | |
} | |
function virtualenv_info { | |
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') ' | |
} |