Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am speg on github.
  • I am speg (https://keybase.io/speg) on keybase.
  • I have a public key whose fingerprint is B28A 9492 AE2D 28D4 77CD 9C9D 4248 7177 4777 D27E

To claim this, I am signing this object:

@speg
speg / .gitconfig
Created April 15, 2015 17:47
gitconfig
[user]
name = Steve
email = hiemsts@navcanada.ca
[push]
default = simple
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[core]
@speg
speg / a.coffee
Created June 13, 2012 01:12
Laying Down the Index
Batman.config.minificationErrors = false
class Super extends Batman.App
@root 'hero#index'
class Super.HeroController extends Batman.Controller
index: ->
console.log 'Superheroes ready!'
window.Super = Super
@speg
speg / writeTest.js
Last active November 1, 2015 22:14
fs = require('fs')
var bufferA = new Buffer(1e+8)
bufferA.fill(0)
var bufferB = new Buffer(1e+0)
bufferB.fill(0)
var fileA = fs.openSync('fileA', 'w')
var fileB = fs.openSync('fileB', 'w')
@speg
speg / server.py
Last active March 2, 2016 20:45
Simple Python
#!/usr/local/bin/python3
"""
Image capture command:
imagesnap -w 5 -t 120
fswatch -0 -d -Ee "\.jpg.+" --event Created . | xargs -0 -n 1 -I {} sips --resampleHeight 250 {} --out processed
"""
import http.server
import socketserver
@speg
speg / .vimrc
Last active April 1, 2021 14:21
tabs with shift
syntax enable
set expandtab
set shiftwidth=4
set tabstop=4
set showmode
set showcmd
set wildmenu "Enhanced command line completion
set ruler
set autoindent
set nowrap