Skip to content

Instantly share code, notes, and snippets.

View hoffoo's full-sized avatar

Marin hoffoo

  • UserVoice
  • Oakland, CA
View GitHub Profile
/* See LICENSE file for copyright and license details. */
/* appearance */
//static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
//static const char font[] = "-misc-fixed-medium-r-semicondensed-*-13-120-75-75-c-60-iso8859-1";
static const char *fonts[] = {
"monospace:size=10"
};
static const char dmenufont[] = "monospace:size=10";
--- config.mk.orig 2016-08-14 11:00:41.844224417 -0700
+++ config.mk 2016-08-14 11:03:35.479651748 -0700
@@ -18,7 +18,7 @@
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD (uncomment)
-FREETYPEINC = ${X11INC}/freetype2
+# FREETYPEINC = ${X11INC}/freetype2
# includes and libs
package togo
import (
"bufio"
"encoding/gob"
"io"
"time"
)
type Task struct {
@hoffoo
hoffoo / gist:7418135
Created November 11, 2013 18:42
get mailman emails per list
import os
import pickle
for d in os.walk("./"):
if len(d[2]) < 3:
continue
root = d[0]
conf = d[2][1]
f = open(root + "/" + conf)
@hoffoo
hoffoo / gist:7285657
Last active December 27, 2015 06:59
check for corrupt image files
package main
import (
"image"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
"os"
"fmt"
)
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
)
func main() {
set backspace=indent,eol,start
set laststatus=2
set shell=/bin/bash
set scrolloff=5
set nocompatible
set noswapfile
set number
"set relativenumber
set wrapmargin=0
set hlsearch

Keybase proof

I hereby claim:

  • I am hoffoo on github.
  • I am stayke (https://keybase.io/stayke) on keybase.
  • I have a public key whose fingerprint is D52C A1B9 4D0C 288E 8CEF E078 1E6D 408D DA07 7CEB

To claim this, I am signing this object:

function! Rrun()
echo "WTF"
call system("./envR", join(getline(a:firstline, a:lastline), "\n"))
endfunction
com! -range=% -nargs=0 Rrun :'<,'>call Rrun()
package main
import (
"fmt"
"math"
"math/rand"
"time"
)
func main() {