Skip to content

Instantly share code, notes, and snippets.

View julienXX's full-sized avatar

Julien Blanchard julienXX

View GitHub Profile
We couldn’t find that file to show.
@julienXX
julienXX / Gemfile
Created February 25, 2010 11:39
Rails 3 & MongoMapper
gem "mongo_ext"
gem "mongo_mapper", :git => 'http://github.com/merbjedi/mongomapper.git', :branch => 'rails3'
<?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>
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
# 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' => "",
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/]"
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
@julienXX
julienXX / clouds_midnight.vim
Created January 24, 2011 16:09
Clouds midnight theme for Vim by @stevelosh
" 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
#!/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 = '',
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`') '
}