Skip to content

Instantly share code, notes, and snippets.

View grosshei's full-sized avatar

Mike Grossheim grosshei

  • Minneapolis, MN
View GitHub Profile
### Keybase proof
I hereby claim:
* I am grosshei on github.
* I am grosshei (https://keybase.io/grosshei) on keybase.
* I have a public key ASAeDPzb8QuFmhbC_wC9BfW_71x0KnZztTEarOAfOh1WXAo
To claim this, I am signing this object:
#include <stdio.h>
int main() {
char a[] = {0b01101001, 0b01101101, 0b01100001, 0b01100111,
0b01101001, 0b01101110, 0b01100101, 0};
char b[] = {0b01101001, 0b01101110, 0b01110110, 0b01100101,
0b01101110, 0b01110100, 0};
@grosshei
grosshei / macports_patch.sh
Created February 10, 2015 18:21
dwarf fortress mac osx
# sudo port -v install libsdl_image-framework libsdl_ttf-framework
# sudo port -v install libsdl-framework
install_name_tool -change "@executable_path/../Frameworks/SDL.framework/Versions/A/SDL" "/opt/local/Library/Frameworks/SDL.framework/Versions/A/SDL" dwarfort.exe
install_name_tool -change @executable_path/../Frameworks/SDL_image.framework/Versions/A/SDL_image /opt/local/Library/Frameworks/SDL_image.framework/Versions/A/SDL_image dwarfort.exe
install_name_tool -change @executable_path/../Frameworks/SDL_ttf.framework/Versions/A/SDL_ttf /opt/local/Library/Frameworks/SDL_ttf.framework/Versions/A/SDL_ttf dwarfort.exe
CC=i386-elf-gcc
LD=i386-elf-ld
QEMU=qemu-system-i386
all: kernel
kasm.o: kernel.asm
nasm -f elf32 $< -o $@
kc.o: kernel.c
@grosshei
grosshei / Makefile
Last active December 19, 2015 15:58
C port of A "Hello World!" Genetic Algorithm Example - generation5.org http://www.generation5.org/content/2003/data/gahelloworld.cpp
CFLAGS+=-g
all: gahelloworld
@grosshei
grosshei / Makefile
Created January 25, 2012 16:16
A example of trigraphs in C
trigraph: trigraph.c
gcc -trigraphs -o trigraph trigraph.c