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
{ | |
"user": { | |
"id": "dfd07d91-5244-482b-ab0b-1fd9fa92ab30", | |
"userId": "joachim@haagen.name", | |
"fullName": "Joachim Haagen Skeie", | |
"company": "Haagen Software AS", | |
"phone": "41415805", | |
"dietaryRequirements": "", | |
"countryOfResidence": "Norway", | |
"yearOfBirth": "1981", |
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
Emberfest.ProfileRoute = Ember.Route.extend({ | |
model: function() { | |
var uuidToken = this.controllerFor('user').readCookie('uuidToken'); | |
console.log('ProfileRoute uuidToken: ' + uuidToken); | |
return this.store.find('user', uuidToken); | |
} | |
}); |
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
[mc5@mc5 kvm_imgs]$ sudo qemu-img create -f qcow2 rethinkdb.qcow 20G | |
[mc5@mc5 kvm_imgs]$ sudo qemu-img info rethinkdb.qcow | |
image: rethinkdb.qcow | |
file format: qcow2 | |
virtual size: 20G (21474836480 bytes) | |
disk size: 136K | |
cluster_size: 65536 |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | |
<meta name="author" content="Joachim Haagen Skeie"> | |
<title>Ember Data</title> |
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
Embriak.BucketLiView = Ember.View.extend({ | |
tagName: 'li', | |
template: Ember.Handlebars.compile('{{#linkTo keys this}}{{id}}{{/linkTo}}'), | |
classNameBinding: 'active', | |
active: function() { | |
console.log("this.get('content.id') === this.get('controller.controllers.keys.content.id'): '" + this.get('content.id') + "' ::: '" + this.get('controller.controllers.keys.content.id') + "'"); | |
console.log("this.get('content.id') === this.get('controller.controllers.keys.content.id'): " + this.get('content.id') === this.get('controller.controllers.keys.content.id')); | |
return this.get('content.id') === this.get('controller.controllers.keys.content.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
Montric.ChartView = Ember.View.extend({ | |
classNames: ['eurekajChart'], | |
resizeHandler: null, | |
nvd3Chart: null, | |
contentObserver: function() { | |
console.log('ChartView contentObserver!'); | |
var elementId = this.get('elementId'); | |
var series = this.get('chart.series'); | |
console.log('series: ' + series); |
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
auto eth0 | |
iface eth0 inet static | |
address 192.168.1.202 | |
netmask 255.255.255.0 | |
gateway 192.168.1.1 | |
#auto br0 | |
#iface br0 inet static | |
# address 192.168.1.202 | |
# netmask 255.255.255.0 |
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
contentArrayContains: function(id, type) { | |
var contains = null; | |
Ember.get(type, 'collection').forEach(function(item) { | |
if (item.get('id') === id) { | |
contains = item; | |
} | |
}); | |
return contains; |
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 alertAdminController; | |
module("EurekaJ.AdministrationAlertsController", { | |
setup: function() { | |
this.server = sinon.fakeServer.create(); | |
Ember.run(function() { | |
alertAdminController = EurekaJ.__container__.lookup("controller:administrationAlerts"); | |
}); |
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 alertAdminController; | |
module("EurekaJ.AdministrationAlertsController", { | |
setup: function() { | |
this.server = sinon.fakeServer.create(); | |
Ember.run(function() { | |
alertAdminController = EurekaJ.__container__.lookup("controller:administrationAlerts"); | |
}); |