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 list | cut -d" " -f1 | xargs gem uninstall -aIx | |
*If this doesn't work - blame Don. |
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
msgs = YAML::load(File.open("#{::Rails.root.to_s}/config/locales/devise.en.yml")) | |
msgs['en']['devise']['failure']['unauthenticated'] |
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
@mixin rem( $property, $a:0, $b:$a, $c:$a, $d:$b ) { | |
@if ( $property == "font-size" ) { | |
// $a is the font size | |
// %b is the keyword | |
@if ( $a != $b ) { | |
font-size: $b; | |
} | |
@else { | |
font-size: $a * $base-font-multiplier * 16px; | |
} |
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
def clear_cache domain | |
domain_parts = domain.match(/(?:[^:]*:\/\/)?([^\/]+\.[^\/]+)/) | |
domain = domain_parts[1] | |
Net::HTTP.get(domain, "/") | |
end |
#Blur The Lines Links from our SXSW Presentation
###Challenges http://codepen.io/mutewinter/ ####Animations Challenge: http://codepen.io/mutewinter/pen/fKcyr
Answer: http://codepen.io/mutewinter/pen/pcraL ####Image Upload
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
class Player | |
def initialize | |
@last_health = 20 | |
end | |
def play_turn(warrior) | |
move = MoveAction.new warrior | |
health = HealthAction.new warrior |
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
### Keybase proof | |
I hereby claim: | |
* I am robtarr on github. | |
* I am robtarr (https://keybase.io/robtarr) on keybase. | |
* I have a public key whose fingerprint is 964A 0CC8 1AD5 7FFB A73B 68E7 7049 CA37 8F8E 8717 | |
To claim this, I am signing this object: |
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 geoCode(addr){ | |
var gc = Maps.newGeocoder(); | |
var geoJSON = gc.geocode(addr); | |
var lat = geoJSON.results[0].geometry.location.lat; | |
var lng = geoJSON.results[0].geometry.location.lng; | |
return lat + ", " + lng; | |
} |