Skip to content

Instantly share code, notes, and snippets.

Avatar

Charles Holbrow CharlesHolbrow

View GitHub Profile
View keybindings.linux.json
// 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 / ffmpeg-hls.html
Created Sep 13, 2018
Example of ffmpeg for live hls streaming with hls.js
View ffmpeg-hls.html
<!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 Sep 13, 2018
Simple example of using live streaming audio video with dash.js and ffmpeg
View ffmpeg-dash.html
<!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 {
@CharlesHolbrow
CharlesHolbrow / bump.sh
Created Mar 2, 2018
minimal build version tracking
View bump.sh
#!/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 Dec 18, 2017
HTTP Server for Recurse Center Interview
View main.go
package main
import (
"fmt"
"io"
"log"
"net/http"
"net/url"
"sync"
"testing"
View HammerNotes.js
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
You can’t perform that action at this time.