Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hartley Brody's Adventure Blog</title>
<meta name="description" content="When I'm not building software, I'm an avid outdoorsman and amateur adventurer.
">
@bentomas
bentomas / keybase.md
Created April 2, 2015 05:03
keybase.md

Keybase proof

I hereby claim:

  • I am bentomas on github.
  • I am bentomas (https://keybase.io/bentomas) on keybase.
  • I have a public key whose fingerprint is 8E9F 5D44 36EC 8999 F090 5588 1556 A6D0 86F1 70EF

To claim this, I am signing this object:

tests['video'] = function() {
var elem = document.createElement('video'),
bool = false;
// IE9 Running on Windows Server SKU can cause an exception to be thrown, bug #224
try {
if ( bool = !!elem.canPlayType ) {
bool = new Boolean(bool);
bool.ogg = elem.canPlayType('video/ogg; codecs="theora"');
/*
* Daemon.node: A node.JS addon that allows creating Unix/Linux Daemons in pure Javascript.
*
* Copyright 2010 (c) <arthur@norgic.com>
* Modified By: Pedro Teixeira 2010
* Modified By: James Haliday 2010
* Modified By: Charlie Robbins 2010
* Modified By: Zak Taylor 2010
* Modified By: Daniel Bartlett 2011
* Modified By: Charlie Robbins 2011
############### SETTINGS ###############
# make it so there is no delay after hitting 'esc' to wait for a meta key.
# This makes vim bearable
set-option -s escape-time 0
# allow both Ctrl+b and Option+b to get to tmux command mode
set -g prefix C-b,M-b
# 256 colors
diff --git a/site/assets/javascript/polymaps.js b/site/assets/javascript/polymaps.js
index 1424d82..8b88b68 100644
--- a/site/assets/javascript/polymaps.js
+++ b/site/assets/javascript/polymaps.js
@@ -372,6 +372,7 @@ po.map = function() {
zoomFraction = 0,
zoomFactor = 1, // Math.pow(2, zoomFraction)
zoomRange = [1, 18],
+ loadNewTiles = true,
angle = 0,
exports.runFile = function(modulepath, options) {
options = options || {};
if (options.testName && !Array.isArray(options.testName)) {
options.testName = [options.testName];
}
var child = spawn(process.execPath, [ __dirname+'/child.js'
, modulepath
, JSON.stringify(options.parallel || false)
root/
C.js
folder1/
C.js
folder2/
A.js
B.js
folder3/
C.js
folder4 --> /root/folder1/folder2
@bentomas
bentomas / flow-raw.js
Created November 1, 2010 01:14
script for verifying the output of running a test
// This test suite is for making sure that all the right functions are called
// in the right order. We keep track of when everything is ran and then
// output it all at the end.
//
// As such, you have to manually look at the quite cryptic output to make sure
// it is doing what you want.
if (module == require.main) {
return require('../../lib/async_testing').run(process.ARGV, function() {/* do nothing */});
}
var numTests = 0
, callback
, check = function() {
if (numTests == 3 && callback) {
callback();
}
}
;
module.exports = {