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
#!/usr/bin/env bash | |
function log () { | |
printf "%s %s\n" "->" "$1" | |
} | |
log "Updating all asdf-plugin remotes..." | |
asdf plugin update --all |
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
// app/initializers/csrf.js | |
export default { | |
name: 'csrf', | |
initialize: function(container, app) { | |
app.inject('route', 'csrf', 'service:csrf'); | |
app.inject('controller', 'csrf', 'service:csrf'); | |
} | |
} |
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
routeChanged: (-> | |
Em.run.next -> | |
path = window.location.pathname | |
window._gaq.push(['_trackPageview', path]) | |
).observes('currentPath') |