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
"use strict"; | |
require = (function e(t, n, r) { | |
function s(o, u) { | |
if (!n[o]) { | |
if (!t[o]) { | |
var a = typeof require == "function" && require;if (!u && a) return a(o, !0);if (i) return i(o, !0);throw new Error("Cannot find module '" + o + "'"); | |
}var f = n[o] = { exports: {} };t[o][0].call(f.exports, function (e) { | |
var n = t[o][1][e];return s(n ? n : e); | |
}, f, f.exports, e, t, n, r); |
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
/** | |
* Copyright (c) 2014, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An | |
* additional grant of patent rights can be found in the PATENTS file in | |
* the same directory. | |
*/ |
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
(function (global) { | |
var to5Runtime = global.to5Runtime = {}; | |
to5Runtime.extends = function (child, parent) { | |
child.prototype = Object.create(parent.prototype, { | |
constructor: { | |
value: child, | |
enumerable: false, | |
writable: true, | |
configurable: true | |
} |
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
/** | |
* Copyright (c) 2014, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An | |
* additional grant of patent rights can be found in the PATENTS file in | |
* the same directory. | |
*/ |
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 express = require('express'); | |
var Promise = require("bluebird"); | |
var fs = Promise.promisifyAll(require('fs')); | |
var app = express(); | |
function pipe() { | |
return [].reduce.call(arguments, function(red, p) { | |
return red.then(p); | |
} | |
} |
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
xs.unshift(0).zip(xs.push(1)).map ([a, b]) -> ... | |
vs. | |
(->> (zip (cons 0 xs) | |
(conj xs 1)) | |
(map (fn [[a, b]] ...))) |
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
def geometry_mat(self, b_obj, b_mat): | |
bpy.ops.object.material_slot_add() | |
b_obj.material_slots[0].link = 'OBJECT' | |
b_obj.material_slots[0].material = b_mat |
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
;; CLJ | |
(defn browser-repl [] | |
(let [repl-env (weasel/repl-env :ip "0.0.0.0" :port 9001)] | |
(piggieback/cljs-repl :repl-env repl-env) | |
(piggieback/cljs-eval {} repl-env '(in-ns 'sketcher.core) {}))) | |
;; CLJS | |
(weasel/connect "ws://localhost:9001" :verbose true :print #{:repl :console}) | |
;; project.clj |
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
function start(){ | |
// save the context state | |
ctx.save(); | |
// draw the overlay | |
ctx.drawImage(overlay,150,35); | |
// change composite mode to source-in | |
// any new drawing will only overwrite existing pixels |
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
cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped = (function run_state_machine_wrapped(state){ | |
try{return cljs.core.async.impl.ioc_helpers.run_state_machine.call(null,state); | |
}catch (e25988){if((e25988 instanceof Object)){ | |
var ex = e25988; | |
cljs.core.async.impl.protocols.close_BANG_.call(null,cljs.core.async.impl.ioc_helpers.aget_object.call(null,state,cljs.core.async.impl.ioc_helpers.USER_START_IDX)); | |
console.error(ex); // <--- | |
throw ex; | |
} else { | |
throw e25988; |