Skip to content

Instantly share code, notes, and snippets.

View bclinkinbeard's full-sized avatar

Ben Clinkinbeard bclinkinbeard

View GitHub Profile
process.env.BROWSERIFYSHIM_DIAGNOSTICS=1
var b = require('browserify')()
b.add('./index.js')
b.bundle(function (err, src) {
if (err) throw err
require('fs').writeFileSync('./bundle.js', src, 'utf8')
})
var spawn = require('child_process').spawn,
path = require('path'),
http = require('http'),
st = require('st'),
colors = require('colors'),
watchify = require('watchify'),
writer = require('write-to-path'),
gaze = require('gaze');
var entry = './example/index.js',
@bclinkinbeard
bclinkinbeard / demo.js
Created April 14, 2014 18:05
webdriverjs_mobile_safari_click_fail
var webdriverjs = require('webdriverjs');
var options = {
desiredCapabilities: {
device: 'iPhone Simulator',
platform: "Mac",
app: "safari",
// version: "6.0",
browserName: "",
newCommandTimeout: 60
},
@bclinkinbeard
bclinkinbeard / index.js
Created May 1, 2014 02:10
requirebin sketch
var domready = require('domready'),
dom = require('domquery')
dom('body').html('<button>This is a button</button>')
@bclinkinbeard
bclinkinbeard / directive.js
Created July 3, 2014 16:05
Browserify with Angular
'use strict';
exports.name = 'header';
exports.component = function () {
return {
restrict: 'E',
template: require('./template.html'),
controller: require('./HeaderController')
var st = require('st')
, http = require('http')
, path = require('path')
, url = require('url')
, fs = require('fs')
, os = require('os')
, js = require('atomify-js')
, css = require('atomify-css')
, cssFiles = require('atomify-css/css')
, open = require('open')
npm WARN package.json bs-tests@1.0.0 No description
npm WARN package.json bs-tests@1.0.0 No repository field.
npm WARN package.json bs-tests@1.0.0 No README data
npm http request GET https://registry.npmjs.org/browser-sync
npm http 304 https://registry.npmjs.org/browser-sync
npm http request GET https://registry.npmjs.org/browser-sync-client
npm http request GET https://registry.npmjs.org/dev-ip
npm http request GET https://registry.npmjs.org/commander
npm http request GET https://registry.npmjs.org/easy-extender
npm http request GET https://registry.npmjs.org/connect
<!DOCTYPE html>
<html ng-app="app">
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style id="jsbin-css">
path {
fill: purple;
fill-opacity: 0.7;
}
@bclinkinbeard
bclinkinbeard / README.md
Last active August 29, 2015 14:20 — forked from mbostock/.block

A dendrogram is a node-link diagram that places leaf nodes of the tree at the same depth. In this example, the classes (leaf nodes) are aligned on the right edge, with the packages (internal nodes) to the left. Data shows the Flare class hierarchy, courtesy Jeff Heer.

Compare to this radial layout. YO DAWG

This is a test of a D3 Gist