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
[ | |
{ | |
id: 1, | |
event_id: 11, | |
neighbours: [ | |
{ | |
id: 2, | |
distance: 5 | |
}, | |
{ |
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
$(".hamb").on("click", function() { | |
$(this).hasClass("open") ? : closeMenu(this), openMenu(this); | |
}); | |
function openMenu(hamb){ | |
$(hamb).addClass("open"); | |
$(hamb).find("i").addClass("cross").removeClass("menubar"); | |
$.Velocity.RunSequence(menuOpen); | |
} |
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
"server": { | |
"tables": { | |
"ImBnHMmOnndxre8XSkl": { | |
"deck": { | |
"QH": { | |
"name": "Quine of hard", | |
"value": 0 | |
} | |
}, | |
"hand": { |
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
h2. Assumptions | |
Text Assumptions | |
h2. Questions | |
Text Questions | |
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.Route.extend({ | |
model: function () { | |
return {}; | |
} | |
firstName: null, | |
lastName: null, | |
fullName: Ember.computed('firstName', 'lastName', function() { | |
return this.get('firstName') + ' ' + this.get('lastName'); |
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
var generator = publishLevel(12, {data: true}) | |
load.call(generator) | |
function* publishLevel(user_id, level_data) { | |
var user = yield getUser(user_id) | |
console.log(user) | |
var can_create = yield canCreate(user) | |
console.log(can_create) | |
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
{ | |
"data": [ | |
{ | |
"category": "Item.News", | |
"item":{ | |
"id": 16, | |
"title": "Grosvenor Fund Management appoints Gaston Brandes", | |
"subtitle": "Gaston Brandes joins from UBS Global Asset Management to bolster Capital Raising team", | |
"date": "2015-09-02T00:00:00", | |
"image": {}, |
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'; | |
var {observer, on} = Ember; | |
export default Ember.Component.extend({ | |
item: null, | |
text: "not updated", | |
update: observer('item', function(){ | |
this.set('text', 'update'); | |
}), | |
update2: on('didInitAttrs', observer('item', function(){ |
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
var EventDispatcher = (function(){ | |
function EventDispatcher(){ | |
this._listeners = {}; | |
} | |
EventDispatcher.prototype.dispatchEvent = function(event, data){ | |
var _this = this; | |
if(!this._listeners || !this._listeners[event]) return; | |
this._listeners[event].forEach(function(callback){ |
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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin theme($themename, $color1, $color2) { | |
.#{$themename} { | |
.button { | |
color: $color1; | |
} |