Skip to content

Instantly share code, notes, and snippets.

View jbrown's full-sized avatar

Justin Brown jbrown

View GitHub Profile
{% case customer.locale %}
{% when 'fr' %}
Bienvenue!
{% when 'es' %}
¡Bienvenida!
{% when 'ru' %}
Добро пожаловат!
{% else %}
Welcome!
{% endcase %}
@jbrown
jbrown / cordova.sh
Last active December 28, 2015 22:58
Cordova notes
npm install -g cordova
npm install -g plugman
npm install -g ios-sim
npm install -g ios-deploy
cd cordova/
# Run the app in the emulator
cordova emulate ios
@jbrown
jbrown / gist:d88234119a8828df606e
Created April 28, 2015 00:19
Installing Nokogiri on Yosemite
gem install nokogiri -- --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2
@jbrown
jbrown / install.sh
Created March 3, 2015 22:30
Ember deploy
npm install --save-dev ember-deploy-s3
npm install --save-dev ember-deploy-s3-index
@jbrown
jbrown / firebase.json
Created February 26, 2015 17:42
Firebase Ember
{
"firebase": "NAME",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [{
"source": "**",
@jbrown
jbrown / command.sh
Created February 25, 2015 17:30
Re-install node project
npm cache clear && bower cache clean && rm -rf node_modules bower_components && npm install && bower install
@jbrown
jbrown / gist:f8938a9e5396f8ca9f72
Last active August 29, 2015 14:16
ember generate CRUD
ember g resource entities name:string
ember g route entities/show
ember g route entities/index
@jbrown
jbrown / gist:aed77d30d6df00955b83
Created February 12, 2015 21:36
Updating ember-cli
npm cache clear && rm -rf node_modules && npm install && npm test
npm uninstall -g ember-cli && npm link
@jbrown
jbrown / Brocfile.js
Last active August 29, 2015 14:15
New Ember app setup
var Funnel = require('broccoli-funnel');
app.import('bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js');
var bootstrapAssets = new Funnel('bower_components/bootstrap-sass-official/assets/fonts/bootstrap', {
srcDir: '/',
files: ['**/*'],
destDir: '/fonts/bootstrap'
});
module.exports = app.toTree(bootstrapAssets);
R.player.on('change:position', $.proxy(this, 'positionChanged'));