I hereby claim:
- I am dan-hoerr on github.
- I am danhoerr (https://keybase.io/danhoerr) on keybase.
- I have a public key ASBAijOAWXxye_gYNXx-c_r2xeoMIS5jLq29JotC0aIF9Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
sudo chmod -R 755 <extensionpath> | |
sudo chown -R root:wheel <extensionpath> | |
sudo kextcache -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions |
#http://stackoverflow.com/questions/4655194/simple-filtering-out-of-common-words-from-a-text-description | |
common = {} | |
STOPWORDS.each{|w| common[w] = true} | |
stopped = q.gsub(/\b\w+\b/){|word| common[word.downcase] ? '': word}.squeeze(' ') | |
return stopped | |
STOPWORDS = %w{ a | |
able | |
about | |
above |
wget -e robots=off --mirror --domains=staticweb.archive.org,web.archive.org <URL> |
Modernizr.load | |
test: document.getElementsByTagName("body")[0].className.match( new RegExp('(\\s|^)lt-ie9(\\s|$)' )) | |
yep: "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" | |
nope: "//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" | |
complete : -> | |
Modernizr.load | |
test: true | |
yep: ["/javascripts/plugins.js", "/javascripts/main.js"] |
scope :order_by_activities, joins(:activities).select('users.id, users.name, count(activities) as total_activities').group('users.id').order('total_activities desc') |
# http://stackoverflow.com/questions/10526012/order-players-on-the-sum-of-their-association-model | |
scope :order_by_distance, joins(:activities).select('users.id, users.name, sum(activities.miles) as total_distance').group('users.id').order('total_distance desc') |
when "top" then @modal_element.css | |
'top' : @trigger_element.offset().top - (@modal_height + @padding) | |
'left' : @trigger_offset.left - (@modal_width/2 - @trigger_width/2) | |
when "top-left" then @modal_element.css | |
'top' : @trigger_element.offset().top - (@modal_height + @padding) | |
'left' : @trigger_offset.left | |
when "top-right" then @modal_element.css | |
'top' : @trigger_element.offset().top - (@modal_height + @padding) |
ol, .item_list ol | |
margin-left: 68px | |
padding: 0 | |
counter-reset: item | |
li | |
display: block | |
position: relative | |
padding: 0 0 .75em .75em | |
&:before | |
content: counter(item) |
#Coffeescript Breakpoint Event Broadcaster | |
#requires coffeescript, underscore.js, jQuery, throttledresize event (https://github.com/louisremi/jquery-smartresize) | |
#to initialize: breakpoint = new BreakpointEvent([480,600]) | |
#pass array of breakpoints you want to watch | |
class BreakpointEvent | |
#we're going to fire a custom event when the page goes past certain breakpoints | |
#this should prevent multiple objects doing lots of logic on throttledresize; they | |
#can just listen for a particular breakpoint event | |
#passed arguments will fire as "breakpoint" + argument e.g. new BreakpointEvent([480]) would announce a "breakpoint480" event |