Skip to content

Instantly share code, notes, and snippets.

👌
Enjoying life, including work.

Balint Erdi balinterdi

👌
Enjoying life, including work.
Block or report user

Report or block balinterdi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
// value: 'Over The Hills'
value: null,
});
@balinterdi
balinterdi / d3-heatmap.html
Created Dec 22, 2015 — forked from nfisher/d3-heatmap.html
Simple D3.js SVG heatmap
View d3-heatmap.html
<!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 {
View environment.js
/* 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'"
};
@balinterdi
balinterdi / abstract.txt
Last active Sep 14, 2015
Talk description for Complex Component Design in Ember.js
View abstract.txt
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.
@balinterdi
balinterdi / README
Created Jan 14, 2015
Test my fixes for broccoli-asset-rewrite
View README
$ 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
View keybase.md

Keybase proof

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:

@balinterdi
balinterdi / api.js
Created Oct 20, 2014
Ember-CLI http proxy config
View api.js
var proxyPath = '/api';
module.exports = function(app) {
// For options, see:
// https://github.com/nodejitsu/node-http-proxy
var proxy = require('http-proxy').createProxyServer({});
var path = require('path');
app.use(proxyPath, function(req, res, next){
// Do not include root path in proxied request
@balinterdi
balinterdi / route.js
Created Sep 24, 2014
delay-model-resolve.js
View route.js
function wait(value, timeout) {
return new Ember.RSVP.Promise(function(resolve, _) {
window.setTimeout(function() {
Ember.run(function() {
resolve(value);
});
}, timeout);
});
}
View gist:23bc5f3008512753f3e0
Ember.Application.initializer({
name: "i18n", // <- this
initialize: function(container, application) {
container.register('i18n:main', i18n);
}
});
Ember.Application.initializer({
name: "injectI18n",
View gist:00ad17faf5c9e9704f3c
var stuntAnalytics;
moduleFor('controller:song', 'Unit - Song controller', {
needs: [
'controller:song'
],
setup: function() {
stuntAnalytics = MockAnalytics.create(); // create with a mock library, like sinon;
this.container.register('service:analytics', stuntAnalytics);
this.container.inject('controller', 'analytics', 'service:analytics');
You can’t perform that action at this time.