Skip to content

Instantly share code, notes, and snippets.

View willscripted's full-sized avatar

Will O'Brien willscripted

View GitHub Profile
# ./selector
define ["marrow"], (Marrow) ->
class SelectorView extends Marrow.View
initialize: ->
@DetailView = @options.detailView
return SelectorView
# ./pages/advertise
@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
@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 / 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 / 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.