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 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() {
package main
// our first concern is to keep a good state of all the objects in the ui
// to do it quickly we need to control how objects are inserted, moved, and resized
type Monitor struct {
size_x int
size_y int
widgets []Widget
}
local array = {1,2,0,0,3,1,2}
function swap(a, b, table)
if table[a] == nil or table[b] == nil then
return false
end
if table[a] > table[b] then
table[a], table[b] = table[b], table[a]
typedef char* itch_msg; // message content only
typedef void (*itch_handler)(itch_msg); // message handler func type
typedef itch_handler itch_map[122]; // map of message name and func ptr
// emit looks up the data in itch_map and calls appropriate function
void itch_emit(itch_map* m, char* data);
// Handlers
#define MSG_SYSTEM_EVENT 'S'