Skip to content

Instantly share code, notes, and snippets.

package main
import (
"container/vector"
"os"
"path"
"io/ioutil"
)
type V struct {
package main
import (
"container/vector"
"fmt"
"os"
"path"
)
type V struct {
git clone http://conque.googlecode.com/svn/trunk/ conque
cd conque
#drop --mirror if you want to explict push branches
git remote add --mirror github git@/your/new/github/repo
git push github
#mirror process
git svn fetch
#may not have to do this. but I do have to do it with arch abs
git merge git-svn
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
package gurl
/*
#include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) {
size_t written = fwrite(ptr, size, nmemb, stream);
return written;
package term
const (
Reset = "\x1b[0m"
Bright = "\x1b[1m"
Dim = "\x1b[2m"
Underscore = "\x1b[4m"
Blink = "\x1b[5m"
Reverse = "\x1b[7m"
Hidden = "\x1b[8m"
#!/bin/sh
while true; do
dwn_log=~/.dwm.log
# Log stderror to a file
urax&
chromium&
dwm 2> $dwn_log
# No error logging
#dwm >/dev/null 2>&1
package glfw
import "testing"
import "fmt"
func TestInit(t *testing.T) {
}
func TestGetVersion(t *testing.T) {
Init()
function prompt_colors {
if [ -f /bin/tput ] || [ -f /usr/bin/tput ] ;
then
black=$(tput setaf 0)
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
blue=$(tput setaf 4)
magenta=$(tput setaf 5)
cyan=$(tput setaf 6)
#!/bin/bash
#
# /etc/rc.single: Single-user startup script.
#
. /etc/rc.conf
. /etc/rc.d/functions
run_hook single_start