Instantly share code, notes, and snippets.

View npm-5-8-0-macos-debug.log
16008 silly decomposeActions build css-color-function@1.3.3
16009 silly decomposeActions install css-color-function@1.3.3
16010 silly decomposeActions postinstall css-color-function@1.3.3
16011 silly decomposeActions finalize css-color-function@1.3.3
16012 silly decomposeActions refresh-package-json css-color-function@1.3.3
16013 silly decomposeActions fetch right-align@0.1.3
16014 silly decomposeActions extract right-align@0.1.3
16015 silly decomposeActions preinstall right-align@0.1.3
16016 silly decomposeActions build right-align@0.1.3
16017 silly decomposeActions install right-align@0.1.3
View npm-5-8-0-windows-10-debug.log
This file has been truncated, but you can view the full file.
22011 silly decomposeActions preinstall yargs@3.27.0
22012 silly decomposeActions build yargs@3.27.0
22013 silly decomposeActions install yargs@3.27.0
22014 silly decomposeActions postinstall yargs@3.27.0
22015 silly decomposeActions finalize yargs@3.27.0
22016 silly decomposeActions refresh-package-json yargs@3.27.0
22017 silly decomposeActions fetch defs@1.1.1
22018 silly decomposeActions extract defs@1.1.1
22019 silly decomposeActions preinstall defs@1.1.1

When using a small frequency value with analogWrite(pinString, dutyCycle, frequencyHz, callback), the following error can be thrown.

var b = require('bonescript');
b.pinMode('P9_14', b.OUTPUT);
b.analogWrite('P9_14', 0.5, 10, function(res) { console.log(JSON.stringify(res)); });
View streaming-endpoint-with-progress.js
const express = require('express');
const logger = require('morgan');
const app = express();
app.get('/', function (req, res) {
View docker-start-test-container-on-windows.bat
REM Share your host `~/.ssh` directory to `/root/.ssh-from-host`
REM You can use `ssh-add ~/.ssh-from-host/github_rsa` now
echo off
setlocal enableDelayedExpansion
set SSH_CERT_DIR=%userprofile:\=/%
View express-serve-targz-of-directory.js
const Promise = require('bluebird');
const path = require('path');
const fs = require('fs-extra');
const stat = Promise.promisify(fs.stat);
const glob = Promise.promisify(require('glob'));
const tarstream = require('tar-stream');
const zlib = require('zlib');
const express = require('express');
function targzGlobStream(globString, options) {
View express-serve-zip-of-directory.js
const Promise = require('bluebird');
const path = require('path');
const glob = Promise.promisify(require('glob'));
// Adds to express
const express = require('express');
const app = express();
app.get('/', function (req, res) {
View # Docker container with basic nginx server exposing ports -- Window

Docker container with basic nginx server that has exposed ports on Windows Guide/Tutorial


Windows 10 with Anniversary update

Using Docker Toolbox (uses boot2docker VirtualBox machines)

View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/mlm/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See