Skip to content

Instantly share code, notes, and snippets.

@Bwooce
Bwooce / debug.go
Last active January 11, 2016 18:01
Go debug code from Rob Pike. Updated with a Println that works (thanks guelfey from #go-nuts)
const debug debugging = true // or flip to false
type debugging bool
func (d debugging) Println(args ...interface{}) {
if d {
log.Println(append([]interface{}{"DEBUG:"}, args...)...)
}
}
func (d debugging) Printf(format string, args ...interface{}) {
@pciet
pciet / text.pov
Created May 11, 2020 14:21
The source code for the cover of my "Text" electronic music album.
#version 3.7;
global_settings {
assumed_gamma 1.0
ambient_light 0
}
camera {
location <-9,-9,0>
up <0,0,1>