Skip to content

Instantly share code, notes, and snippets.

View DamonOehlman's full-sized avatar

Damon Oehlman DamonOehlman

View GitHub Profile
@DamonOehlman
DamonOehlman / color.js
Created June 25, 2012 04:44
Example using interleave to produce a CJS packaged version of a browser based lib
//= github://Wolfy87/Color/color
@DamonOehlman
DamonOehlman / interleave-and-test.sublime-build
Created August 8, 2012 00:28
Interleave and Test Build System for Sublime Text
{
"cmd": ["interleave build src/*.js --wrap && mocha --reporter dot"],
"working_dir": "${project_path:${folder}}",
"shell": true
}
@DamonOehlman
DamonOehlman / gist:3753033
Created September 19, 2012 23:34
Test Gist File Naming
This is a test gist with no filename to determine the name of the file given to the gist.
@DamonOehlman
DamonOehlman / testrest.yaml
Created September 26, 2012 22:24
testrest yaml file fornat
opts:
baseUrl: http://localhost:3000
tests:
- it: returns Hi for /
get: /
expect:
status: 2xx
body: Hi
@DamonOehlman
DamonOehlman / gist:3825048
Created October 3, 2012 04:44
piping from getit, via zlib and untarring
out('!{grey}retrieving recipes from !{grey,underline}{0}', target);
getit(target)
.on('end', out.bind(null, '!{grey}extracting recipes'))
.pipe(zlib.Gunzip())
.pipe(tar.Parse({ path: opts.bakery }))
.on('entry', function(entry) {
if (reLibrary.test(entry.path) && entry.type == 'File') {
promises.push(extractEntry(entry));
}
})
@DamonOehlman
DamonOehlman / gist:3840144
Created October 5, 2012 14:37 — forked from schacon/gist:1
the meaning of gist
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
@DamonOehlman
DamonOehlman / convert.js
Created October 20, 2012 12:57
image conversion to latlon
var image = new Image(),
canvas, context, landSquares = [],
landPixelCount = 0,
rounding = 10^2;
function errorHandler() {
console.log(arguments)
}
function writeData() {
@DamonOehlman
DamonOehlman / README.md
Created February 18, 2013 07:35
BB10 WebWorks Dev Tools Linux Installation Helper

At this stage Blackberry only release binaries for Webworks for Windows and MacOS, so if you are a linux user then you are on your own. It's not that you can't use the tools though, but you do need to do a little more legwork to get things going.

Step 1: Install the NDK

While there is no binaries available for linux, the NDK it would seem does have an installer, so head on over to http://developer.blackberry.com/native/download/ and install it.

Step 2: Clone the WebWorks Repo and Build

TBC

@DamonOehlman
DamonOehlman / README.md
Last active December 18, 2015 02:39
Installation of Erizo on Ubuntu based system

Erizo is an MCU that is part of the licode stack. It is written in C++ and a node API is provided, so I personally find that pretty exciting.

Prequesites

To build erizo you are going to need both cmake and various boost libaries. These can be installed on a debian based system with the following command:

sudo apt-get install cmake libboost-dev libboost-system-dev libboost-thread-dev libboost-regex-dev libnice-dev
@DamonOehlman
DamonOehlman / README.md
Last active June 12, 2022 19:01
Provisioning of node + nginx designed for use with vagrant shell provisioner. No need for chef, puppet.

This is a simple shell script that is designed to provision both nginx and node on your machine. I primarily wrote it for use with Vagrant and an example Vagrantfile is included in the Gist as well.