Skip to content

Instantly share code, notes, and snippets.

View DamonOehlman's full-sized avatar

Damon Oehlman DamonOehlman

View GitHub Profile
@DamonOehlman
DamonOehlman / README.md
Created June 12, 2013 05:03
Discussion regarding the merits of using Vagrant for experimenting with and sharing tech experiments

As part of the work I'm doing now with NICTA there is a strong focus on providing a technical "leg-up" with things like WebRTC.

Most of the work that I'll be doing will be making use of node, and while NPM does a fantastic job of providing an elegant entry point for working with libraries and even demos, I'm wondering whether we should also be providing Vagrant boxes or a simply provisionable Vagrantfile to help get people started.

It seems to me that using this approach could reacher a broader base of developers (i.e. not only those who work with / use node). It does, however, require that people have Vagrant installed, running and enough memory on their machines to run up a VM.

Thoughts?

@DamonOehlman
DamonOehlman / README.md
Created June 25, 2013 21:50
Ubuntu 13.04 Dell XPS 13 Hacks - Things you occassionally need to do to keep your Ubuntu installation on a Dell XPS happy.

Brightess Fix

When brightness controls stop responding manually trigger a brightness update. Once this is done brightness controls seem to respond again. Not sure if the lspci command is required, when my linux foo is stronger I'm sure I'll know...

lspci -nn | grep VGA
echo 3500 | sudo tee /sys/class/backlight/intel_backlight/brightness
@DamonOehlman
DamonOehlman / README.md
Created July 23, 2013 02:26
A comparison of programming terms vs english language definitions. This is an attempt to identify road blocks between understanding what particular elements of code do vs what you think they might do from reading code without sufficient exposure to the jargon.

Higher Order Functions

Filter

http://en.wikipedia.org/wiki/Filter_(higher-order_function)

When using a filter function you are typically creating a subset of an original list, array, etc based on elements that satisfy a particular condition. This is probably quite different to the common language definition whereby "to filter" would likely mean to remove.

@DamonOehlman
DamonOehlman / index.js
Last active December 20, 2015 05:09
requirebin sketch
var detect = require('feature/detect');
var raf = detect('requestAnimationFrame');
if (raf) {
raf(function() {
console.log('hi');
});
}
@DamonOehlman
DamonOehlman / index.js
Created July 25, 2013 13:12
requirebin sketch
var console = require('demo-console');
var defaults = require('cog/defaults');
var extend = require('cog/extend');
// extend performs a shallow copy and override operation for objects
// similar to the way jquery, underscore, etc, do things
console.log(extend({ a: 1, b: 2 }, { c: 3 }, { d: 4 }, { b: 5 }));
// defaults is similar but will not override values
console.log(defaults({ a: 1, b: 2 }, { c: 3 }, { d: 4 }, { b: 5 }));
@DamonOehlman
DamonOehlman / index.js
Created July 26, 2013 01:57
Simple rtc-media demo
// require the media capture helper from rtc.io
var media = require('rtc-media');
// capture video and render it to the document body
media().render(document.body);
@DamonOehlman
DamonOehlman / index.js
Last active December 20, 2015 08:39
Simple Peer 2 Peer Video Connectivity Example
var signaller = require('rtc/signaller')({ channel: 'test', host: 'http://rtc.io' });
var media = require('rtc/media');
var crel = require('crel');
var localMedia;
var commandInput;
var messageList;
var localMedia;
// capture the local video and audio from this machine
localMedia = media();
@DamonOehlman
DamonOehlman / Makefile
Last active December 21, 2015 08:19
On a quest to get better at using makefiles. This is a simple example using [blockdown](https://github.com/DamonOehlman/blockdown) to generate a series of output html files based on input Markdown files and a pure HTML template.
STEP_SOURCES=$(wildcard src/steps/*.md)
default: clean build
clean:
@rm public/*.html
build:
@for inputfile in $(STEP_SOURCES); \
do \
@DamonOehlman
DamonOehlman / README.md
Last active June 12, 2022 18:59
Video Loopback on Ubuntu 13.04
@DamonOehlman
DamonOehlman / topo.json
Created September 26, 2013 01:41
Um, wow, github detects GeoJSON (specifically [TopoJSON](https://github.com/mbostock/topojson/)) snippets and creates a leaflet map display... again, wow. This is the topography data supplied for the nytimes americas cup visualization: http://www.nytimes.com/interactive/2013/09/25/sports/americas-cup-course.html?_r=0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.