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
{ | |
"diameter": 28.5, | |
"dial_fill": "#000", | |
"default_fill": "#fff", | |
"rings": [ | |
{ | |
"features": [ | |
{ | |
"type": "radial", | |
"diameter": 23, |
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.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); | |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ['schedule-grid'], |
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
#!/bin/sh | |
chown www-data:www-data . | |
chown -R www-data:www-data * | |
find . -type f -not -name "fix-permissions.sh" | xargs chmod 664 | |
find ./bin -type f | xargs chmod 775 | |
find . -type d | xargs chmod 775 | |
find . -type d | xargs chmod +s | |
umask 0002 |
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
def rotate_vector_cython_fast(np.ndarray[np.float64_t, ndim=1] vector, | |
np.ndarray[np.float64_t, ndim=1] axis, | |
float angle): | |
""" | |
Uses Rodrigues rotation formula | |
axis must be a normal vector | |
Implements: | |
v_rot = (v * np.cos(angle) + np.cross(k, v) * np.sin(angle) + | |
k * (np.dot(k, v)) * (1 - np.cos(angle))) |
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'; | |
export default DS.Model.extend({ | |
name: DS.attr('string'), | |
start: DS.attr('date'), | |
finish: DS.attr('date'), | |
places: DS.hasMany('places'), | |
events: DS.hasMany('event') | |
}); |
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
var DropboxOnlineAdapter = DS.Adapter.extend({ | |
find: function(store, type, id, snapshot) { | |
var dropbox = this.container.lookup('service:dropbox'); | |
var path = this.filename(type, id); | |
return dropbox.files(path).then((result) => { | |
var data = { | |
id: id, | |
text: result |
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'; | |
var gDrive = Ember.Object.extend({ | |
clientId: '937974467154-23re9rr70mnlkmuddvpp325abth5u51k.apps.googleusercontent.com', | |
scopes: ['https://www.googleapis.com/auth/drive', 'email'], | |
authed: false, | |
ready: false, | |
init: function() { | |
window.handleClientLoad = this.handleClientLoad.bind(this); |
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 ApplicationAdapter from './application'; | |
export default ApplicationAdapter.extend({ | |
findAll: function(store, type, sinceToken) { | |
return new Promise(function(resolve, reject) { | |
$.post('http://localhost/wsibd/tasks.php', { | |
file: '/home/lsimons/workspace/wsibd/test_files/test.mpp', | |
resourceName: 'LCS' | |
}, function(result) { |