Skip to content

Instantly share code, notes, and snippets.

@Sinled
Sinled / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Sinled
Sinled / tooltip.jquery.coffee
Created March 26, 2015 09:28
jquery coffee tooltip
# A class-based template for jQuery plugins in Coffeescript
#
# requirements: uderscore, jquery, modernizer
#
# $('.target').tooltip();
# $('.target').tooltip({containerElem: '.wrapper'});
#
(($, window) ->
DEBUG = window.DEBUG || false
@Sinled
Sinled / controllers.application.js
Created August 2, 2015 11:34
Loading bubbling example
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@Sinled
Sinled / application.route.js
Created August 2, 2015 14:36
loading resolver
import Ember from 'ember';
export default Ember.Route.extend({
actions: {
loading() {
console.log('loading');
}
}
});
@Sinled
Sinled / application.controller.js
Created February 2, 2016 13:33
checkbox-not-working
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@Sinled
Sinled / controllers.application.js
Last active April 27, 2016 19:46
qp-array-regression
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@Sinled
Sinled / controllers.application.js
Last active June 20, 2016 08:38
test-delete-poly-record-with-relations
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
deleteRecord(item) {
item.deleteRecord();
alert('delete');
},
@Sinled
Sinled / component-a.component.js
Created August 2, 2016 11:33
test closure actions in components
import Ember from 'ember';
export default Ember.Component.extend({
});
@Sinled
Sinled / controllers.application.js
Created September 6, 2016 15:57
ember-cp-validations-test-empty-buildValidations
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
setArray () {
this.set('array', [4, 5]);
this.sendAction('performTransition');
},
setNumber () {