Skip to content

Instantly share code, notes, and snippets.

View leepfrog's full-sized avatar

Andy Tran leepfrog

View GitHub Profile
@ig0rsky
ig0rsky / update-all-asdf-plugins.sh
Last active April 22, 2024 02:06
Update all asdf plugins to latest
#!/usr/bin/env bash
function log () {
printf "%s %s\n" "->" "$1"
}
log "Updating all asdf-plugin remotes..."
asdf plugin update --all
@jgwhite
jgwhite / example.js
Last active January 13, 2016 15:04
Ember-cli Initializer Example
// app/initializers/csrf.js
export default {
name: 'csrf',
initialize: function(container, app) {
app.inject('route', 'csrf', 'service:csrf');
app.inject('controller', 'csrf', 'service:csrf');
}
}
routeChanged: (->
Em.run.next ->
path = window.location.pathname
window._gaq.push(['_trackPageview', path])
).observes('currentPath')