Skip to content

Instantly share code, notes, and snippets.

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
22020 silly decomposeActions build defs@1.1.1

Video editing

Properties

Change start/end frame to match video

Place the green playback cursor line in the sequencer where you want the start/end frame to be. Hover your mouse cursor over the bottom timeline(not where the clips are which is the video sequencer) and press start or end.

Video Sequencer Editor (VSE)

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)); });
@MadLittleMods
MadLittleMods / streaming-endpoint-with-progress.js
Last active September 25, 2018 11:38
Barebones Express app for essentially multiple responses from one request (progress)
const express = require('express');
const logger = require('morgan');
const app = express();
app.use(logger('dev'));
app.get('/', function (req, res) {
res.status(200).send(`
@MadLittleMods
MadLittleMods / docker-start-test-container-on-windows.bat
Last active October 7, 2017 07:18
`ssh-add ~/.ssh-from-host/github_rsa`
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:\=/%
set SSH_CERT_DIR=%SSH_CERT_DIR:C:/=//c/%
set SSH_CERT_DIR=%SSH_CERT_DIR%/.ssh/
REM echo %SSH_CERT_DIR%
@MadLittleMods
MadLittleMods / express-serve-targz-of-directory.js
Last active November 20, 2018 12:07
Stream .tar.gz of some glob (directory, etc). See .zip equivalent, https://gist.github.com/MadLittleMods/72bc11761e05a2658d0be13fa8c27fef
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) {
@MadLittleMods
MadLittleMods / express-serve-zip-of-directory.js
Last active October 4, 2017 06:32
Stream .zip of some glob (directory, etc). See .tar.gz equivalent: https://gist.github.com/MadLittleMods/7eedb4001c52acec104e91dbd80618b5
const Promise = require('bluebird');
const path = require('path');
const glob = Promise.promisify(require('glob'));
// Adds res.zip to express
require('express-zip');
const express = require('express');
const app = express();
app.get('/logs.zip', function (req, res) {

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

Environment

Windows 10 with Anniversary update

Using Docker Toolbox (uses boot2docker VirtualBox machines)

const fs = require('fs');
const PDFDocument = require('pdfkit');
// Create a document
const doc = new PDFDocument({
margin: 0,
size: [612, 1595]
});
// Pipe its output somewhere, like to a file or HTTP response