Skip to content

Instantly share code, notes, and snippets.

View yoda's full-sized avatar

Sam Winterton yoda

  • Perth, Western Australia
View GitHub Profile
@yoda
yoda / keybase.md
Last active February 4, 2020 07:33

Keybase proof

I hereby claim:

  • I am yoda on github.
  • I am septu (https://keybase.io/septu) on keybase.
  • I have a public key whose fingerprint is 8BF5 D78A 4470 8176 ED29 6157 378A FEA0 360A 0D09

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am yoda on github.
* I am septu (https://keybase.io/septu) on keybase.
* I have a public key ASD5HZXVXiZrxVHrcKEfKZfRt6c3pfB-t-SO9Skvsr8NQgo
To claim this, I am signing this object:
@yoda
yoda / hack.sh
Created March 31, 2012 10:34 — 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
#
module CanCan
class Query
def sanitize_sql(conditions)
conditions
end
end
# customize to handle Mongoid queries in ability definitions conditions
class CanDefinition
def matches_conditions_hash?(subject, conditions = @conditions)