Skip to content

Instantly share code, notes, and snippets.

View haydendavenport's full-sized avatar

Hayden Davenport haydendavenport

View GitHub Profile
@itfrombit
itfrombit / sampletextfield.m
Created March 6, 2019 19:18
Programmatically creating an NSTextField with label
NSTextField* xxxUIControlCreateTextField(NSStackView* parent, const char* label, const char* default_value, u32 tag, float preferred_width, float view_width)
{
NSStackView* stack = [[NSStackView alloc] init];
stack.translatesAutoresizingMaskIntoConstraints = NO;
stack.orientation = NSUserInterfaceLayoutOrientationHorizontal;
stack.spacing = 4;
NSTextField* tf_label = nil;
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no