Blah blah blah! asgasg
This file contains hidden or 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
const spawnFetch = assign({ | |
fetchService: () => spawn(false, "fetch") | |
}); | |
const toCurrent = () => send({type:"get"}, {to: "fetch"}); | |
const update = assign((ctx, {data}) => ({ | |
...ctx, | |
...data | |
})); |
This file contains hidden or 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 gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var source = require('vinyl-source-stream'); | |
var libs = ["underscore", "jquery"]; | |
gulp.task("vendor", function () { | |
var b = browserify(); | |
libs.forEach(function (lib) { |
This file contains hidden or 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
// Important: You must serve your pages as XHTML for this shim to work, | |
// otherwise namespaced attributes and elements will get messed up. | |
Object.defineProperty(SVGElement.prototype, 'innerHTML', { | |
get: function() { | |
var $child, $node, $temp, _i, _len, _ref; | |
$temp = document.createElement('div'); | |
$node = this.cloneNode(true); | |
_ref = $node.children; | |
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | |
$child = _ref[_i]; |
This file contains hidden or 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
/* | |
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
so it's better encapsulated. Now you can have multiple random number generators | |
and they won't stomp all over eachother's state. | |
If you want to use this as a substitute for Math.random(), use the random() | |
method like so: | |
var m = new MersenneTwister(); |