Skip to content

Instantly share code, notes, and snippets.

Scott Ferguson scottferg

Block or report user

Report or block scottferg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am scottferg on github.
  • I am scottferg ( on keybase.
  • I have a public key whose fingerprint is AFDD 6827 72B3 7955 FC19 BB83 66CE A617 94A1 E241

To claim this, I am signing this object:

View upstart.conf
# build
sudo docker build -t pokerap .
# run
sudo docker run -v /dev/log:/dev/log pokerap /go/bin/gokerap
# check syslog
sudo tail /var/log/syslog
# here are the cool lines I like
View gist:6734162
export GOROOT=~/Documents/goandroid/go
export GOPATH=~/Documents/goandroid/goandroid/hello-gl2/
export NDK_ROOT=~/Documents/android-ndk/build/tools/ndk-toolchain
View gist:6626558
submission := func() {
for {
switch message := psc.Receive().(type) {
case redis.Message:
return db.Loads(message.Data)
case error:
log.Println(colors.Red("Failed to pubsub on trading session! %e", message.Error))
break label
View minimal_nes_main.go
package main
import (
View controller.go
package main
import (
func GetKey(ev interface{}) int {
if k, ok := ev.(sdl.KeyboardEvent); ok {
switch k.Keysym.Sym {
case sdl.K_z: // A
package com.ferg.fergboy.memory;
import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.util.Log;
import java.nio.IntBuffer;
scottferg / gbrom.txt
Created Oct 13, 2012
Gameboy ROM header info
View gbrom.txt
Gameboy ROM Header Info :: SephirothBCH :: v1.01 :: 2000/11/28
\\\ After the release of this document, I am temporarily \\\
\\\ leaving the coding and emulation scene. The last few \\\
\\\ weeks of my life have been especially rough, mainly \\\
\\\ brought on by the death of my uncle, Roy Colbert. \\\
\\\ I would like to dedicate this doc, as well as any \\\
\\\ other progs I make to his memory. \\\
View gist:3854544
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x7fff949b0af4]
goroutine 1 [running]:
goroutine 2 [syscall]:
created by runtime.main
goroutine 3 [syscall]:
scottferg / mmc1.go
Created Sep 26, 2012
NES PPU and MMC1 mapper
View mmc1.go
package main
import (
const (
BankUpper = iota
You can’t perform that action at this time.