Skip to content

Instantly share code, notes, and snippets.

View willscripted's full-sized avatar

Will O'Brien willscripted

View GitHub Profile
@willscripted
willscripted / README.md
Created November 27, 2012 15:44
Horizontal Graph

Following the D3.js bar chart example, throwing in error bars and a transition just for kicks.

@willscripted
willscripted / detail.css
Created November 27, 2012 19:53
Time Series Example - Rickshaw
.rickshaw_graph .detail {
pointer-events: none;
position: absolute;
top: 0;
z-index: 2;
background: rgba(0, 0, 0, 0.1);
bottom: 0;
width: 1px;
transition: opacity 0.25s linear;
-moz-transition: opacity 0.25s linear;
@willscripted
willscripted / scrap_vms.sh
Created January 11, 2013 02:20
Script to kill and replace practice vms
#!/bin/bash
for i in `seq 1 8`;
do
name="userv-00$i"
echo $name
# Remove old
vboxmanage controlvm $name poweroff
vboxmanage storageattach $name --storagectl SATA\ Controller --port 0 --type hdd --device 0 --medium none
@willscripted
willscripted / index.coffee
Created March 13, 2013 12:59
Collection Loading
# Could do this as part of our initializer file
Blacklead = {
Collections: {}
Models: {}
Views: {}
Routers: {}
}
Blacklead.Collections.getAlerts = do ->
alerts = new Blacklead.Collections.AlertsCollection
# ./selector
define ["marrow"], (Marrow) ->
class SelectorView extends Marrow.View
initialize: ->
@DetailView = @options.detailView
return SelectorView
# ./pages/advertise
define [
"pages/placements/detail/segment_form"
"squire"
"marrow"
"dashboard"
"handlebars"
], (SegmentForm, Squire, Marrow, Dashboard, Handlebars) ->
perms = { canSetTestOffer: -> throw "stub" }
@willscripted
willscripted / thing.coffee
Last active December 28, 2015 16:19
Coffee - adventure with private method binding
class Thang
class Thing extends Thang
# isPrivate must exist above use in initialize
isPrivate = ->
return @things
initialize: ->
@things = true
@willscripted
willscripted / gist:9352818
Created March 4, 2014 18:41
install node
# Node in apt is 0.6.X we want 0.10.X
sudo -E apt-get install -y python-software-properties python g++ make
sudo -E add-apt-repository -y ppa:chris-lea/node.js
sudo -E apt-get update
sudo -E apt-get install -y nodejs
@willscripted
willscripted / kernel
Created March 27, 2014 11:56
Because sometimes in business, your goals are tied to fiscal quarters
Linux - elitist attitude - only considers patche of real-world problems. Marketing bullets or one-off requests, such as pageable kernel memory, have received no consideration
Kernel Development
Introduction
==============
History
-----------