Fairly minimalistic loader in pure css. Everything is pretty much customizable; check the less var source.
This file contains 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
#!/usr/bin/python | |
# import modules used here | |
import zipfile | |
import os | |
import shutil | |
import sys | |
import subprocess | |
import datetime | |
import pysftp as sftp |
This file contains 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 DS from "ember-data"; | |
var attribute = DS.attr; | |
export default DS.Model.extend({ | |
name: attribute({ | |
first: attribute('string'), | |
last: attribute('string') | |
}), | |
time_stamp: attribute('string', { |
This file contains 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'; | |
// This mixin binds callbacks to events. | |
export default Ember.Mixin.create({ | |
/* | |
Mixin setup | |
NOTE: Must be implemented on init, didTransition, or didInsertElement hooks | |
*/ | |
setupWindowBindings: function () { |
This file contains 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
export default { | |
name: 'session', | |
after: 'store', | |
initialize: function (container, app) { | |
app.deferReadiness(); | |
var store = container.lookup('store:main'); | |
store.find('session', { active: true }).then(function (ses) { | |
container.lookup('controller:session').set('content', ses); | |
container.typeInjection('controller', 'session', 'controller:session'); |
This file contains 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'; | |
/* | |
App Initialized Session Controller | |
*/ | |
export default Ember.Controller.extend({ | |
logout: function () { | |
// Find the session | |
var ses = this.store.find('session', this.get('content').get('id')); |
This file contains 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
/* | |
Quick and dirty JSON to HTML table parser | |
--- | |
Designed for use debugging in node.js | |
*/ | |
function jsonToHtml ( json, limit ) { | |
var data = json, | |
dataKeys = []; |
This file contains 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
export default Ember.View.extend({ | |
didInsertElement: function () { | |
this.$().on('scroll', { emEl: this }, this._updatePosition); | |
}, | |
_updatePosition: function ( ev ) { | |
Ember.run.throttle(ev.data.emEl, function () { | |
this.set('scrollY', ev.currentTarget.scrollY); | |
}, 250); | |
} |
This file contains 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 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'); |
OlderNewer