Skip to content

Instantly share code, notes, and snippets.

@matchew
matchew / index.js
Created February 16, 2015 20:40
why undefined?
var Person = require('./person')
, bob = new Person('bob')
, express = require('express')
, app = express()
;
bob.sayName();
app.get('/person', bob.getName)
@matchew
matchew / gist:a8de5c0ab939d19f0a12
Last active November 13, 2018 04:15
toggle focus with mouse in BSPWM
#!/usr/bin/bash
##
# Purpose: toggle focus with mouse. Needs to be disabled for wonky java stuff
################
toggle=$(bspc config focus_follows_pointer | \
awk -vtoggle="true" \
'{ if ($1 == "true") \
toggle="false"; \