Skip to content

Instantly share code, notes, and snippets.

@Quebecisnice
Quebecisnice / User.rb
Created April 3, 2012 00:57
Rails OmniAuth snippet
def self.create_from_hash(registration_hash)
unless registration_hash || resigration_hash.empty?
return nil
end
provider = registration_hash[:provider]
info = registration_hash[:info]
user = User.new
@Quebecisnice
Quebecisnice / hack.sh
Created April 2, 2012 14:08 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@Quebecisnice
Quebecisnice / about.md
Created August 9, 2011 15:52 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@Quebecisnice
Quebecisnice / manifest.json
Created April 7, 2011 23:44
Github for Google Chrome Browser
{
"name": "Github",
"description": "Github",
"version": "1.0",
"icons": {
"128": "128.png"
},
"app": {
"urls": [
"https://github.com/"