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 cluster = require('cluster'), | |
logger = { | |
debug: function () { | |
return console.log.apply(console, arguments); | |
}, | |
error: function () { | |
return console.log.apply(console, arguments); | |
}, | |
}; |
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 esprima = require("esprima"), | |
estraverse = require("estraverse"); | |
console.log(JSON.stringify(esrange(esprima.parse(esrange.toString(), { | |
range: true | |
})), null, 4)); | |
/* | |
[ | |
{ |
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
// originally from -- https://github.com/admc/wd/blob/311c39ff2a2a3005405bc5872f420b359a5aa397/examples/promise/no-chain.js | |
require('colors'); | |
var chai = require("chai"); | |
chai.should(); | |
var wd; | |
try { | |
wd = require('wd'); | |
} catch( err ) { | |
wd = require('../../lib/main'); |
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-view"> | |
<template> | |
<span>(</span><span>{{id}}</span><span> template)</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
FROM alpine:3.2 | |
RUN apk --update add git perl cmake alpine-sdk linux-headers openssl-dev pcre-dev | |
RUN mkdir /git \ | |
&& git clone --recursive https://github.com/luvit/luvi.git /git/luvi | |
RUN echo '#!/bin/sh' > /usr/bin/entrypoint \ | |
&& echo '# shebang directives mandatory for entrypoint scripts' >> /usr/bin/entrypoint \ | |
&& echo 'LUVI_VERSION=${1} LUVI_MAKE=${2} sh /shared/make_luvi' >> /usr/bin/entrypoint \ | |
&& chmod +x /usr/bin/entrypoint | |
VOLUME ["/shared"] |
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" |
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
/* | |
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", |