##Chai Expect
##Language Chains
- to
- be
- been
- is
- that
- and
- have
/* js-truth_table | |
* | |
* file: truth_table.js | |
* | |
* Copyright (c) 2011, Erik Nordstroem <[email protected]> | |
* | |
* Permission to use, copy, modify, and/or distribute this software for any | |
* purpose with or without fee is hereby granted, provided that the above | |
* copyright notice and this permission notice appear in all copies. | |
* |
##Chai Expect
##Language Chains
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
init: () => console.clear() | |
}); |
📈📈📈📈📈📈📈📈📈📈📃💳🚬➗➕🔝🎥🔛🔛🔌🔌🔨🔨💱🔌🔨🎓💣🍢🍢🐗🚬💼🍜⛅⛅⛅⛅⛅⛅⛅⛅😰😰😰
📈📈📈📈📈📈📈📈📈📈📝🐑🎓🔌💱🔨🔌💱🎥🔝🔝🔨🔨🔌🔌🔝🎓🎓🍢🎏🌷🚬🛀🍜⛅⛅⛅⛅⛅⛅⛅😰😰😰😰
📈📈📈📈📈📈📈📈📈📈🎂🎊🎓🔨➗💱🔃🔌🔛🚏🚏🔝🔨🎓🎓🎓🚏🎓🚬🎌🌷🎏🎳🔏😰⛅⛅⛅⛅⛅⛅😰😰😰😰
📈📈📈📈📈📈📈📈📈📃🐶🍢🎓🔌➕🔌💱🔛🔛🎓🎓🎓🔝🎼💣🎓🐗💣🚬🍡🐘🛀🎳⛪💳⛅⛅⛅⛅⛅😰😰😰😰😰
📈📈📈📈📈📈📈📈📈📃⛪🎓🎣🔚🔛🎓🔝🎓🎥🔝🔝🎥🔪🔎🔪🎣🌷🍢🐗🛀💀🛀🎳💀🐶⛅⛅⛅⛅⛅⛅😰⛅😰😰
📈📈📈📈📈📈📈📈📈🎂🛀🎓🎣🔨🔝🎼🚏🎣🎓🔝🔝🔝🔗🔊🎣🎼🎏🎳🌷🎳👟🐰🐰🐰🍲⛅⛅⛅⛅⛅⛅😰😰😰😰
📈📈📈📈📈📈📈📈📃🐚🚬🎓🎣🎓🎣💣🎼🎓🎓🎣🔝🎓🎧🔊🚥🎼🔎💀💀🌷👀🐚🔘👟💴🍜⛅⛅⛅⛅⛅⛅😰😰😰
📈📈📈📈📈📈📈📈📝⛪💣💣🚏💣💣🐗🎼🎓🎓🎣🔝🔝🌷🚬💣💣🚥🎳💀🚽🎳🔘🔘💀⛪🍜😰⛅⛅⛅⛅⛅😰😰😰
📈📈📈📈📈📈📈📈📩🍱💣💣🎓🐡🌷🐗🎣🎣🎓🎣🎓🎓🌷💣🚏🚏🔻🌷🛀🐰💀👀👀💀🐰🍜😰⛅⛅⛅⛅😰😰😰😰
📈📈📈📈📈📈📈📈🐚🌷🎓🎣💣🌷🚬💣🎓🔻🐗🐗💣💣🚬💣💣🐗🔻🐗🌷🌷💀💀💀🐰🐰🍜😰⛅⛅⛅⛅😰🐹😰😰
const MODULE_DIR = /(.*([\/\\]node_modules|\.\.)[\/\\](@[^\/\\]+[\/\\])?[^\/\\]+)([\/\\].*)?$/g; | |
{ | |
loader: 'babel-loader', | |
test: /\.jsx?$/, | |
include(filepath) { | |
if (filepath.split(/[/\\]/).indexOf('node_modules')===-1) return true; | |
let pkg, manifest = path.resolve(filepath.replace(MODULE_DIR, '$1'), 'package.json'); | |
try { pkg = JSON.parse(fs.readFileSync(manifest)); } catch (e) {} | |
return !!(pkg.modules || pkg['jsnext:main']); |
console.log(1); | |
(_ => console.log(2))(); | |
eval('console.log(3);'); | |
console.log.call(null, 4); | |
console.log.apply(null, [5]); | |
new Function('console.log(6)')(); | |
Reflect.apply(console.log, null, [7]) | |
Reflect.construct(function(){console.log(8)}, []); | |
Function.prototype.apply.call(console.log, null, [9]); | |
Function.prototype.call.call(console.log, null, 10); |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
#RxJS 5 Operators By Example
UPDATE: I have moved the contents of this gist plus more to https://github.com/btroncone/learn-rxjs and http://www.learnrxjs.io. For expanded examples, explanations, and resources, please check out this new location!
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
# Thanks to this post: | |
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x | |
$ brew install cabextract | |
$ cd ~/Downloads | |
$ mkdir consolas | |
$ cd consolas | |
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe | |
$ cabextract PowerPointViewer.exe | |
$ cabextract ppviewer.cab |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |