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
# baseline | |
FROM debian:8.2 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update | |
RUN apt-get install -y curl sudo | |
# node | |
RUN curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash - | |
RUN apt-get install -y nodejs |
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 trs = [].slice.call(document.querySelectorAll('tr[itemprop]')) | |
trs.map(function(tr) { return +tr.id.substring(6) }).join() |
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('http-proxy').createProxyServer({ target: 'http://REMOTESERVER:REMOTEPORT' }).listen(LOCALPORT) |
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 sylvester = require('sylvester') | |
function multipleRegression(x, y) { | |
var X = $M(x) | |
, Y = $M(y) | |
, Xt = X.transpose() | |
, regression = Xt.multiply(X).inverse().multiply(Xt).multiply(Y) | |
return regression |
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
/* | |
Live.js - One script closer to Designing in the Browser | |
Written for Handcraft.com by Martin Kool (@mrtnkl). | |
Version 4a. | |
Recent change: Add time stamp in head requests to circumvent caching. | |
Recent change: Made stylesheet and mimetype checks case insensitive. | |
http://livejs.com | |
http://livejs.com/license (MIT) |