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 Weakling = function iife () { | |
function weakenRef(ref) { | |
if (ref instanceof Object) return ref; // replace with real weak-ref support when available | |
else throw new TypeError("Object expected"); // https://github.com/TooTallNate/node-weak | |
} | |
function strengthenRef(ref, sentinal) { | |
if (ref instanceof Object) return ref; // replace with real weak-ref support when available |
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 sx2Event = (function iife_module () { | |
// API.sx2 == {} || null | |
// API.eventDefinitions == {} | |
// API.uuid == function () { return ""; } | |
// API.uniqueKeyForValue == function (value, release) { return ""; } |
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
// node --harmony --trace_opt --trace_deopt --allow-natives-syntax --trace-inlining tube.js | |
function crankShaft (method) { | |
return %OptimizeFunctionOnNextCall(method); | |
} | |
function printStatus(fn) { | |
switch(%GetOptimizationStatus(fn)) { | |
case 1: console.log("Function is optimized"); break; |
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 bx = (function () { | |
function Box (tree, path, upper, lower, delta) { | |
this._tree = null; | |
this._tree = tree; | |
this._path = null; | |
this._path = path; | |
this._upper = null; | |
this._upper = upper; |
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
/* | |
Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in the |
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
<link rel="import" href="../polymer/polymer.html"> | |
<dom-module id="bower-2"> | |
<template> | |
<div>This is bower-2</div> | |
</template> | |
<script> | |
HTMLImports.whenReady(function() { | |
Polymer({ | |
is: "bower-2", |
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
<link rel="import" href="../polymer/polymer.html"> | |
<dom-module id="bower-1"> | |
<template> | |
<span>This is bower-1</span> | |
</template> | |
<script> | |
HTMLImports.whenReady(function() { | |
Polymer({ | |
is: "bower-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
top tier |
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
<html> | |
<head> | |
<script src="https://rawgit.com/webcomponents/webcomponentsjs/master/webcomponents.js"></script> | |
<link rel="import" href="https://rawgit.com/Polymer/polymer/master/polymer.html"> | |
</head> | |
<body> | |
<dom-module id="x-model"> | |
<template> | |
<span>(</span><span>{{id}}</span><span>)</span> |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"go/ast" | |
"go/token" | |
"log" | |
"strings" |