Skip to content

Instantly share code, notes, and snippets.

View jhixson's full-sized avatar
👨‍💻

Jesse Hixson jhixson

👨‍💻
View GitHub Profile
@jhixson
jhixson / videos.md
Last active May 18, 2018 07:54
Converting videos with ffmpeg

First we need to install ffmpeg and add a bunch of codecs

brew install ffmpeg --with-libass --with-openssl --with-libvorbis --with-libvpx --with-theora

Converting mp4 => ogv

ffmpeg -i input.mp4 -q:v 10 -c:v libtheora -c:a libvorbis output.ogv

Converting mp4 => webm

@jhixson
jhixson / twelvedays.js
Last active December 14, 2015 15:38
Pretty straightforward twelve days of Christmas implementation in JS with a few ES6 bits.
const gifts = ['partridge in a pear tree', 'turtle doves', 'french hens', 'calling birds', 'GOLDEN RINGS', 'geese-a-laying', 'swans-a-swimming', 'maids-a-milking', 'ladies dancing', 'lords-a-leaping', 'pipers piping', 'drummers drumming'];
const ordinals = ['first','second','third','fourth','fifth','sixth','seventh','eighth','ninth','tenth','eleventh','twelfth'];
const numbersToWords = ['One','Two','Three','Four','FIVE','Six','Seven','Eight','Nine','Ten','Eleven','Twelve'];
function twelveDays() {
for(var i = 0; i < gifts.length; i++) {
console.log(`On the ${ordinals[i]} day of Christmas,\nMy true love gave to me,`);
if(i == 0) {
console.log(`a ${gifts[0]}.\n`);
}
@jhixson
jhixson / table.html
Created November 5, 2012 19:00
Heading and first row...
<table class="stylish">
<tbody>
<tr>
<th class="first">&nbsp;</th>
<td class="left" colspan="2">Day</td>
<td class="left dark" colspan="2">Night</td>
</tr>
<tr>
<th class="first">&nbsp;</th>
<th>Adult</th>