Fairly minimalistic loader in pure css. Everything is pretty much customizable; check the less var source.
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didInsertElement: function () { | |
this._draw(); | |
}, | |
dataset: function () { | |
// Calulate dataset | |
return dataset; |
This file contains hidden or 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
// router.js | |
Router.map(function () { | |
this.resource('employee', { path: 'employees/:id' }, function () { | |
this.route('index', { path: '/' }); | |
this.route('edit'); | |
}); | |
this.resource('employee.dependent', { path: 'employees/:employeeid/dependents/:dependentid' }, function () { | |
this.route('index', { path: '/' }); | |
this.route('edit'); |
This file contains hidden or 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
function runAlongFolks ( init, iter, deviation ) { | |
var n = init || 150, | |
arr = []; | |
for ( var i = 0; i < iter; i++ ) { | |
var a = Math.floor(Math.random() * (deviation - (-deviation) + 1)) - deviation; | |
arr.push(n); | |
n += a; | |
} |
Each config gets called with:
var mod = require(conf.directory);
if ( conf.crud ) {
methodMixins(mod, conf);
}
app.use(mount('/api/v1', Resource(conf.name, mod).middleware()));
This file contains hidden or 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
✓ should POST new records | |
mocha:runner run suite Acceptance :: Resource :: Payment Method GET /payment-methods/:id +1ms | |
GET /payment-methods/:id | |
koa:application use responseTime +0ms | |
koa:application use compress +0ms | |
koa:application use bodyParser +0ms | |
koa:application use - +0ms | |
koa:application use dispatch +0ms | |
koa:application use - +0ms | |
debug: routes: bt |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
updates: Ember.A(), | |
didReceiveAttrs () { | |
this._super(...arguments); | |
this.get('updates').pushObject('didReceiveAttrs ' + new Date()); | |
}, | |
This file contains hidden or 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
let currentTurn = 3; | |
const players = [ | |
'you', | |
'someone', | |
'me' | |
]; | |
function logCurrentPlayer () { | |
return players[(currentTurn % players.length) - 1]; | |
} |
OlderNewer