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
HS.router = Ember.Router.create({ | |
enableLogging: true, | |
//location: 'history', | |
root: Ember.Route.extend({ | |
enter: function() { | |
//HS.router.get('blogPostsListController').set('content', HS.store.findAll(HS.BlogPost)); | |
console.log('enter root state'); | |
HS.store.findAll(HS.PageModel); | |
}, |
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
init: function() { | |
var view = this; | |
var resizeHandler = function() { | |
view.rerender(); | |
}; | |
this.set('resizeHandler', resizeHandler); | |
$(window).bind('resize', this.get('resizeHandler')); | |
}, |
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
POST /upload HTTP/1.1 | |
Host: localhost:8991 | |
Connection: keep-alive | |
Content-Length: 4914 | |
Accept: application/json, text/plain, */* | |
Origin: https://create.arduino.cc | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 | |
Content-Type: application/json;charset=UTF-8 | |
Referer: https://create.arduino.cc/editor/joachimhs/92bdba23-c0da-4097-b133-94a3d72eb87a | |
Accept-Encoding: gzip, deflate, br |
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
App.Router.map(function() { | |
this.resource('index', {path: '/'}, function() { | |
this.resource('people', { path: '/people' }, function() { | |
this.route('active'); | |
this.route('completed'); | |
}); | |
this.resource('places', {path: '/places'}, function() {}); | |
this.resource('things', {path: '/things'}, 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
Ember.TEMPLATES["application"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { | |
this.compilerInfo = [4,'>= 1.0.0']; | |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; | |
var buffer = '', stack1, helper, options, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; | |
data.buffer.push(escapeExpression((helper = helpers.render || (depth0 && depth0.render),options={hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data},helper ? helper.call(depth0, "header", options) : helperMissing.call(depth0, "render", "header", options)))); | |
data.buffer.push("\n<div id=\"mainArea\">\n "); | |
stack1 = helpers._triageMustache.call(depth0, "outlet", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); | |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
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'); |
NewerOlder