Skip to content

Instantly share code, notes, and snippets.

View CharlesHolbrow's full-sized avatar

Charles Holbrow CharlesHolbrow

View GitHub Profile
@CharlesHolbrow
CharlesHolbrow / ffmpeg-hls.html
Created September 13, 2018 22:44
Example of ffmpeg for live hls streaming with hls.js
<!DOCTYPE html>
<html lang='`en'>
<head>
<meta charset='utf-8'/>
<title>Audio only stream example</title>
<script src="//cdn.jsdelivr.net/npm/hls.js@latest"></script>
<style>
video {
width: 640px;
height: 360px;
@CharlesHolbrow
CharlesHolbrow / ffmpeg-dash.html
Created September 13, 2018 03:51
Simple example of using live streaming audio video with dash.js and ffmpeg
<!DOCTYPE html>
<html lang='`en'>
<head>
<meta charset='utf-8'/>
<title>Audio only stream example</title>
<script src='https://cdn.dashjs.org/latest/dash.all.min.js'></script>
<style>
video {
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+f",
"command": "settings.action.search",
"when": "inSettingsEditor"
},
{
"key": "ctrl+f",
"command": "-settings.action.search",
@CharlesHolbrow
CharlesHolbrow / bump.sh
Created March 2, 2018 22:10
minimal build version tracking
#!/bin/bash
# This is a simple script that increments the integer in a the 'build-version'
# file, and makes a new commit. The new commit will be tagged with the branch
# and version
#
# You may specify a path. If no path is specified, the working directory will be
# used.
#
# Eventually we might want to replace this with a proper CI pipline, but this
@CharlesHolbrow
CharlesHolbrow / main.go
Created December 18, 2017 18:39
HTTP Server for Recurse Center Interview
package main
import (
"fmt"
"io"
"log"
"net/http"
"net/url"
"sync"
"testing"
@CharlesHolbrow
CharlesHolbrow / HammerNotes.js
Last active August 29, 2015 14:08
Hammer.js notes
var myElement = document.getElementById('myElement');
// manage an element, and its listeners
var mc = new Hammer.Manager(myElement);
// a pan event begins when we exceed the threshold in the direction
// once the pan event has begun, pan events will fire for all directions
var pan = new Hammer.Pan({
direction: Hammer.DIRECTION_LEFT,
threshold: 5 // Minimal pan distance required before recognizing