Skip to content

Instantly share code, notes, and snippets.

View neufeldtech's full-sized avatar

Jordan Neufeld neufeldtech

View GitHub Profile

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@neufeldtech
neufeldtech / sample-test-1.js
Created July 4, 2016 23:55 — forked from jedwood/sample-test-1.js
API Testing Example - Part 1
describe('Authentication', function() {
it('errors if wrong basic auth', function(done) {
api.get('/blog')
.set('x-api-key', '123myapikey')
.auth('incorrect', 'credentials')
.expect(401, done)
});
it('errors if bad x-api-key header', function(done) {
@neufeldtech
neufeldtech / ExcelToJsDate.js
Last active September 11, 2015 03:42 — forked from christopherscott/ExcelToJsDate.js
Convert Excel date values to JavaScript date objects
// Convert Excel dates into JS date objects
//
// @param excelDate {Number}
// @return {Date}
function getJsDateFromExcel(excelDate) {
// JavaScript dates can be constructed by passing milliseconds
// since the Unix epoch (January 1, 1970) example: new Date(12312512312);