Skip to content

Instantly share code, notes, and snippets.

View scottferg's full-sized avatar

Scott Ferguson scottferg

  • Numerator/InfoScout
  • Chicago, IL
View GitHub Profile
@scottferg
scottferg / gbrom.txt
Created October 13, 2012 23:35
Gameboy ROM header info
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. \\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
@scottferg
scottferg / ppu.go
Created September 5, 2012 22:16
Partial NES PPU/nametable viewer written in Go
package main
const (
StatusSpriteOverflow = iota
StatusSprite0Hit
StatusVblankStarted
MirroringVertical
MirroringHorizontal
@scottferg
scottferg / LinuxMultitouch.py
Created August 24, 2010 02:13
Hard coded multitouch desktop gestures for Ubuntu/GNOME. To use it, enable the Dbus/Scale/Rotate plugins in Compiz.
from pymt import *
import sys, dbus, subprocess, os
import time
class Tracer(MTWidget):
SWIPE_X_THRESHOLD = 220
SWIPE_Y_THRESHOLD = 100
LEFT_SWIPE, RIGHT_SWIPE = range(2)
block = False
@scottferg
scottferg / ppu.go
Created September 9, 2012 21:58
Fubar PPU
package main
import (
"math"
)
const (
StatusSpriteOverflow = iota
StatusSprite0Hit
export GOROOT=~/Documents/goandroid/go
export GOPATH=~/Documents/goandroid/goandroid/hello-gl2/
export NDK_ROOT=~/Documents/android-ndk/build/tools/ndk-toolchain
submission := func() {
label:
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
}
package main
import (
"flag"
"fmt"
"github.com/scottferg/Fergulator/nes"
"os"
"runtime"
"runtime/pprof"
)
package main
import (
"github.com/scottferg/Go-SDL/sdl"
)
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;
import java.io.*;
import org.apache.commons.io.IOUtils;

Keybase proof

I hereby claim:

  • I am scottferg on github.
  • I am scottferg (https://keybase.io/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: