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

Balint Erdi

Contact details

Speaker bio

balinterdi / app.js
Last active Aug 29, 2015
A tiny Ember "app" to demonstrate property paths on
View app.js
App = Ember.Application.create();
App.User = Ember.Object.extend({
name: ''
var cory = App.User.create({ name: "Cory Filibuster" });
App.Badge = Ember.Object.extend({
name: '',
balinterdi / app.js
Created Apr 30, 2014
Using the no-no __container__.lookup for not knowing better
View app.js
var App = Ember.Application.extend({
reset: function() {
willDestroy: function() {
View gist:00ad17faf5c9e9704f3c
var stuntAnalytics;
moduleFor('controller:song', 'Unit - Song controller', {
needs: [
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');
View gist:23bc5f3008512753f3e0
name: "i18n", // <- this
initialize: function(container, application) {
container.register('i18n:main', i18n);
name: "injectI18n",
balinterdi / route.js
Created Sep 24, 2014
View route.js
function wait(value, timeout) {
return new Ember.RSVP.Promise(function(resolve, _) {
window.setTimeout(function() { {
}, timeout);
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:
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

Keybase proof

I hereby claim:

  • I am balinterdi on github.
  • I am 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 / README
Created Jan 14, 2015
Test my fixes for broccoli-asset-rewrite
$ git clone
$ git checkout fix-broken-composite-paths-on-win remotes/origin/fix-broken-composite-paths-on-win
$ npm i
$ npm test
View gist:68947
describe "Sinatra::MyHelpers" do
describe "sessions" do
before do
mock_app {
set(:sessions => true)
include Sinatra::MyHelpers
get '/login' do
session[:ok] = "Ok."
You can’t perform that action at this time.