Skip to content

Instantly share code, notes, and snippets.

View jeffreywescott's full-sized avatar

Jeffrey Wescott jeffreywescott

View GitHub Profile
@jeffreywescott
jeffreywescott / keen-timezone.js
Last active August 28, 2015 19:44
client-side module to get Keen.io-compatible timezone string
var keenTimezone = function() {
var
jan = new Date(now.getFullYear(), 0, 1),
jul = new Date(now.getFullYear(), 6, 1),
now = new Date(),
tzOffset = Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset()) * -1 / 60,
dstTzOffset= now.getTimezoneOffset() * -1 / 60,
offsetsAre = function(expTzOffset, expDstTzOffset) {
if (tzOffset === expTzOffset && dstTzOffset === expDstTzOffset) {
return true

Keybase proof

I hereby claim:

  • I am jeffreywescott on github.
  • I am jeffreywescott (https://keybase.io/jeffreywescott) on keybase.
  • I have a public key whose fingerprint is 9999 772D 5D50 6F85 BC1F 3328 8833 91EB 7E91 16FE

To claim this, I am signing this object:

@jeffreywescott
jeffreywescott / ubuntu-build-ffmpeg.md
Created August 11, 2014 23:04
Use pre-built Ubuntu packages for a lot of the dependent libraries when building ffmpeg.

How to Build FFmpeg on Ubuntu

There is an official guide out there, but it ignores the fact that it's possible to use pre-build packages for a lot of the dependent libraries (rather than compiling them). This set of instructions aims to fix that.

Procedure