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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
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
(function() { | |
with(this) { | |
(function() { | |
"use strict"; | |
foo = "boo"; | |
console.log(this.foo); | |
}).call(this); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://static.jsbin.com/js/vendor/traceur.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> |
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
import { readFile, readDir } from "fs"; | |
export function mkdir() { | |
// do stuff with readFile & readDir | |
} | |
export var count; | |
for(count = 0; count < 100;) { | |
console.log(count++); // 0...99 |
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
import { odd as local_odd } from "./b"; | |
export var counter = 0; | |
export default function even(n) { | |
console.log("even has run %s times", counter++); | |
return n === 0 || local_odd(n - 1); | |
} |
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
export var counter = 0; | |
function inc_a(cb){ | |
console.log(counter++); | |
if(counter < 100) { | |
setTimeout(inc_a, 0, [ cb ]); | |
} else { | |
cb(); | |
} | |
} |
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
require(traceur.RUNTIME_PATH); | |
function compile() { | |
var tpl = Micro.precompile("ello <%= govna %>") + ""; | |
tpl = [ | |
"(async function() {", | |
tpl.slice(tpl.indexOf("{") + 1, tpl.length - 1), | |
"})();" | |
].join("\n"); |
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
(function(global){ | |
"use strict"; | |
function fnToBlob(fn) { | |
var body = (fn && fn.toString()) || ""; | |
return new Blob([ body.slice(body.indexOf("{") + 1, body.length - 1) ]); | |
} | |
function createWorker(fn) { | |
var blobURL = global.URL.createObjectURL(fnToBlob(fn)), |
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
function createUMEModule(values) { | |
function __ume__() { | |
return typeof values.default !== "function" ? values.default : values.default.apply(this, arguments); | |
} | |
Object.keys(values).forEach(function(name) { | |
Object.defineProperty(__ume__, name, { | |
enumerable: true, | |
configurable: false, | |
get: function() { |
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
module.setters = {}; | |
var __es6__import__ = function(name, setter) { | |
require(name); | |
var resolvedPath = require.resolve(name); | |
require.cache[resolvedPath].dependants.push(module); | |
module.setters[resolvedPath] = setter; | |
}; | |
module.dependants = []; |
OlderNewer