Skip to content

Instantly share code, notes, and snippets.

View codeNgJon's full-sized avatar
👣

Jonathan Ng codeNgJon

👣
  • Silicon Valley, CA
View GitHub Profile
@codeNgJon
codeNgJon / controllers.application.js
Last active March 28, 2016 22:19
Brace Expansions
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
obj: { foo: 'FOO', bar: 'BAR' },
something: Ember.computed('obj.{foo,bar}', function() {
return this.get('obj.foo') + this.get('obj.bar');
})
});
@codeNgJon
codeNgJon / Scss file
Created September 23, 2014 00:52
Variable color changes
// a flag to toggle asset pipeline / compass integration
// defaults to true if twbs-font-path function is present (no function => twbs-font-path('') parsed as string == right side)
// in Sass 3.3 this can be improved with: function-exists(twbs-font-path)
$bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")')) !default;
//
// Variables
// --------------------------------------------------
//== Colors