Skip to content

Instantly share code, notes, and snippets.

View MikeAski's full-sized avatar

Mike Andrzejewski MikeAski

View GitHub Profile
@gutenye
gutenye / ember-with-middleman.md
Last active December 10, 2015 01:58
Write Ember.js App With Middleman

I. Create a Middleman project with middleman-ember-template

$ middleman init hello --template=ember

II. Install ember.js package

$ bower install ember
@jhs
jhs / rant.md
Last active December 10, 2015 09:18
Rant about Node.js library logging

What I want for library logging

I write Node.js libraries, and I want logging. Why is this so problematic?

Note, I am despairing about how library authors log stuff not how application builders decide on a logging framework.

Hopefully this document can become a spec or feature list for code I will write some day.

The antipattern

// If you're using an off-the-shelf adapter:
DS.RESTAdapter.map('Links.List', {
urls: { embedded: 'load' }
});
// Otherwise:
App.MyAdapter = DS.RESTAdapter.extend({
// ...
@wycats
wycats / ideas.md
Last active December 10, 2015 19:08

Router

// blogs.handlebars (and blogs/index.handlebars)
match("/blogs").to("blogs", function(match) {
  // blogs/starred.handlebars
  match("/starred").to("starred");
  // blog.handlebars (and blog/index.handlebars)
  match("/:blog_id").to("blog", function(match) {
    // posts.handlebars (and posts/index.handlebars)
@ivanvanderbyl
ivanvanderbyl / account_routes.js
Last active January 31, 2016 17:55
Using Ember initializers and injections to setup the `currentUser` within your app.
App.AccountEditRoute = Ember.Route.extend({
setupController: function(controller) {
controller.set('content', this.get('currentUser'));
}
});

This document aims to help aggregate issues and solutions around the defaultContainer deprecation.

The Error Message:

Using the defaultContainer is no longer supported. [defaultContainer#lookup]

breaux, where's my defaultContainer?

Well it is still there, and will continue to work for some time. Likely it will be gone by 1.0.0 final

@machty
machty / new-router-examples.md
Last active April 16, 2020 22:03
How to do cool stuff with the new Router API
QUnit.config.testTimeout = 4000;
/*global $ App*/
Ember.onLoad('application', function(application) {
//application.deferReadiness();
});
Ember.onLoad('Ember.Application', function(Application) {
Application.initializer({
name: 'tests',
@kamal
kamal / gist:6026760
Created July 18, 2013 04:42
within helper for ember-test
Ember.Test.registerHelper('within', function(app, withinContext, callback){
var originalFind = window.find;
window.find = function(selector, context) {
return originalFind.call(app, selector, withinContext);
};
callback.call();
window.find = originalFind;
});
visit('/')
@rxaviers
rxaviers / gist:7360908
Last active July 17, 2025 00:41
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: