- see https://gist.github.com/machty/5723945 for the latest API (unlikely to change from now on)
- latest Ember build: https://machty.s3.amazonaws.com/ember/ember-async-routing-10.js
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
parseFloat( 'Infinity' ) // returns Infinity | |
Number( 'Infinity' ) // returns Infinity | |
parseInt( 'Infinity' ) // returns NaN | |
//This happens even when we pass any radix. |
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
//create a object | |
var Person = {name:'Adi'}; | |
//create another empty object | |
var apk = {}; | |
apk.__proto__ === apk.prototype | |
//returns false | |
//just FYI prototype is available for functions | |
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
var ajaxPromise = function(url, options){ | |
return Ember.RSVP.Promise(function(resolve, reject) { | |
var options = options || {}; | |
options.success = function(data){ | |
resolve(data); | |
}; | |
options.error = function(jqXHR, status, error){ |
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
/*****************************************************************************/ | |
/* Zero-Dark-Matrix | |
/* Optimized for Chrome Stable Channel v32 | |
/* https://github.com/mauricecruz/zero-base-themes | |
/*************************************************************************/ | |
#-blink-dev-tools .panel.sources .split-view-vertical .split-view-contents { | |
-webkit-transition: right 0.5s ease-in-out; | |
} | |
#-blink-dev-tools .panel.sources .split-view-contents-second.split-view-sidebar { |
These are all the JSConf 2014 slides, codes, and notes I was able to cull together from twitter. Thanks to the speakers who posted them and thanks to @chantastic for posting his wonderful notes.
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
// {{compare unicorns ponies operator="<"}} | |
// I knew it, unicorns are just low-quality ponies! | |
// {{/compare}} | |
// | |
// (defaults to == if operator omitted) | |
// | |
// {{equal unicorns ponies }} | |
// That's amazing, unicorns are actually undercover ponies | |
// {{/equal}} | |
// (from http://doginthehat.com.au/2012/02/comparison-block-helper-for-handlebars-templates/) |
Command line args:
--js-flags="--stack-trace-limit 20"
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
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
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
OlderNewer