Skip to content

Instantly share code, notes, and snippets.

View erikhoward's full-sized avatar

Erik Howard erikhoward

View GitHub Profile
@harlow
harlow / golang_job_queue.md
Last active August 23, 2025 04:12
Job queues in Golang
@clausecker
clausecker / golang.nanorc
Last active March 29, 2017 14:18
nanorc file for go
syntax "go" "\.go$"
# types
color green "\<(bool|u?int(8|16|32|64)?|float(32|64)|complex(64|128)|byte|rune|uintptr|string|error)\>"
color green "\<((<-[[:space:]]*)chan|chan[[:space:]]*<-|const|func|interface|map|struct|type|var)\>"
# predefined functions
color blue "\<(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)\>"
# control flow
@cespare
cespare / log.go
Created October 31, 2012 06:51
Golang apache logging
type ApacheLogRecord struct {
http.ResponseWriter
ip string
time time.Time
method, uri, protocol string
status int
responseBytes int64
elapsedTime time.Duration
}
@indexzero
indexzero / load-all-routes.js
Created October 4, 2011 13:20
Simple example of loading routes from multiple modules in node.js
var fs = require('fs'),
path = require('path'),
journey = require('journey');
exports.loadAllRoutes = function () {
var router = new (journey.Router)({
strict: false,
strictUrls: false,
api: 'basic'