I hereby claim:
- I am balinterdi on github.
- I am balint (https://keybase.io/balint) on keybase.
- I have a public key whose fingerprint is 0C1B 0498 F427 03DB 1960 C034 66CC 2C76 BF64 5B44
To claim this, I am signing this object:
model(params) { | |
return this.store.findRecord('person', params.person_id) | |
.then((person) => { | |
return { | |
friendships: person.get('friendships', { include: 'friender,friended' }), | |
person | |
}}); | |
}, |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
$.domReady(function(){ | |
// Fire an event so that GA doesn't count it as a "bounce" | |
// http://blog.popcornmetrics.com/why-your-google-analytics-bounce-rate-is-wrong-and-how-to-fix-it/ | |
function readPage() { | |
ga('send', { | |
'hitType': 'event', | |
'eventCategory': 'engagement', | |
'eventAction': 'read' | |
}); | |
} |
body { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} | |
.bordered { | |
border: 1px solid blue; | |
height: 100px; | |
} |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
// value: 'Over The Hills' | |
value: null, | |
}); |
<!doctype HTML> | |
<title>D3 Test</title> | |
<script src="d3.v3.min.js" charset="utf-8"></script> | |
<style type="text/css"> | |
body { | |
margin:0 auto; | |
position:relative; | |
width:958px; | |
} | |
.chart rect { |
/* jshint node: true */ | |
const contentSecurityPolicy = { | |
'default-src': "'none'", | |
'script-src': "'self'", | |
'font-src': "'self'", | |
'connect-src': "'self' localhost:*", | |
'img-src': "'self'", | |
'style-src': "'self' 'unsafe-inline'", | |
'media-src': "'self'" | |
}; |
Designing component hierarchies in Ember had historically somewhat | |
tortuous but with the arrival of block parameters (1.10) and closure | |
actions (1.12), the difficulties have been vastly mitigated. I take a | |
slightly complex example, that of an autocomplete input, and show how to | |
go about implementing a nested component hierarchy in Ember and how the | |
aforementioned features and others help us pull it off. |
$ git clone https://github.com/balinterdi/broccoli-asset-rewrite.git | |
$ git checkout fix-broken-composite-paths-on-win remotes/origin/fix-broken-composite-paths-on-win | |
$ npm i | |
$ npm test |
I hereby claim:
To claim this, I am signing this object: