This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger ([email protected]) | |
| ;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 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <cstring> // memcpy | |
| #include <type_traits> // is_trivially_copyable | |
| // http://src.chromium.org/viewvc/chrome/trunk/src/base/basictypes.h?view=markup | |
| // bit_cast<Dest,Source> is a template function that implements the | |
| // equivalent of "*reinterpret_cast<Dest*>(&source)". We need this in | |
| // very low-level functions like the protobuf library and fast math | |
| // support. | |
| // | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # Watch paths (given as arguments), automatically build when something changes. | |
| # The script does a couple opinionated things to make my life easier: | |
| # | |
| # * Terminal scrollbuffer is reset before each iteration, simplifying scrolling. | |
| # * I use a filter script to colorize gcc output (clang errors would be nicer). | |
| # * Output is copied to a log file (/tmp/build.log). | |
| # - I open this file in Sublime or vim, which reloads the file on change (each build). | |
| # | |
| # Usage: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| ptr_inspect.c | |
| Demonstration code; shows how to trace the system calls in a child | |
| process with ptrace. Only works on 64-bit x86 Linux for now, I'm | |
| afraid. (Even worse, it's only tested on Linux 2.6....) | |
| The callname() function looks clunky and machine-generated because it | |
| *is* clunky and machine-generated. | 
NewerOlder