Skip to content

Instantly share code, notes, and snippets.

@feklee
feklee / remap_all.js
Last active August 29, 2015 14:09
For remapping frames of a timelapse created with the Ricoh Theta
// Tested with Node.js 0.10 and with "nona" from Hugin 2013.
//
// Used to create: <https://vine.co/v/O5DI55QZnii>
//
// Original images from the Theta need to be in the sub directory `raw_frames`.
//
// Remaped images go into the sub directory `frames`.
//
// Remapping is parameterized, see the function `createPtoFile`.
//
@feklee
feklee / app.js
Last active August 29, 2015 14:14
Hierarchical error objects in Node.js (example for prototypal inheritance)
// Tested with Node.js v0.10.35.
/*jslint node: true, maxerr: 50, maxlen: 80 */
'use strict';
var customErrors = require('./custom_errors'), test;
test = function () {
console.log(customErrors.isbnError);
@feklee
feklee / does_not_start
Created September 29, 2012 13:54
Does not start
[09/29 15:20:32 GMT+0200] Express server listening on port 3000
[09/29 11:37:11 GMT+0200] node.js
[09/29 11:37:11 GMT+0200] :536
[09/29 11:37:11 GMT+0200]
[09/29 11:37:11 GMT+0200] ^
[09/29 11:37:11 GMT+0200] var cwd = process.cwd();
@feklee
feklee / 2012-10-22+02_b2g_build_attempt
Created October 22, 2012 15:09
Attempt to build B2G on Ubuntu 12.10/32 on Amazon EC2 on 2012-10-22 CEST
$ cat .mozconfig
mk_add_options MOZ_OBJDIR=../build
mk_add_options MOZ_MAKE_FLAGS="-j9 -s"
ac_add_options --enable-application=b2g
ac_add_options --disable-libjpeg-turbo
# This option is required if you want to be able to run Gaia's tests
ac_add_options --enable-tests
@feklee
feklee / 2012-10-23+02_b2g_build_attempt
Created October 23, 2012 12:54
Attempt to build B2G on Ubuntu 12.04/64 on Amazon EC2 on 2012-10-23 CEST
$ cat .mozconfig
mk_add_options MOZ_OBJDIR=../build
mk_add_options MOZ_MAKE_FLAGS="-j9 -s"
ac_add_options --enable-application=b2g
ac_add_options --disable-libjpeg-turbo
# This option is required if you want to be able to run Gaia's tests
#ac_add_options --enable-tests
@feklee
feklee / README.md
Created November 4, 2012 23:11
Markdown bug on GitHub
  1. a

    • b
  2. c

Referenced from:

@feklee
feklee / README.md
Last active July 12, 2017 15:02
How to make long messages be sent as concatenated SMS on the Fx0

With the original Japanese firmware on the Fx0, messages with more than 160 characters are sent as MMS. See instructions below concerning how to make long messages be sent as concatenated SMS.

  1. Stop SMS app on device.

  2. Create backup of app:

    $ adb root
    

restarting adbd as root

Keybase proof

I hereby claim:

  • I am feklee on github.
  • I am feklee (https://keybase.io/feklee) on keybase.
  • I have a public key whose fingerprint is 5EF8 B601 7F66 8171 2599 45D6 BEF6 EFD3 8FE8 DCA0

To claim this, I am signing this object:

@feklee
feklee / geometry.png
Last active January 7, 2019 17:52
SAN
geometry.png
@feklee
feklee / README.md
Last active April 24, 2019 16:38
Notes and experiments concerning HTML5 streaming, with an emphasis on live streaming

Introduction

Collection of solutions for streaming via DASH, Dynamic Adaptive Streaming over HTTP, as of November 2014.

Recommended client: Chrome 38

Tool used for encoding live streams: FFmpeg