This setup will allow you to assemble the NES projects I've got up on GitHub.
This file contains 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
syntax on | |
filetype on | |
filetype indent on | |
filetype plugin on | |
set autochdir | |
set autoindent | |
set backspace=2 | |
set backspace=indent,eol,start | |
set expandtab |
This file contains 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
;; cmp word [ball_x], WIDTH - BALL_WIDTH | |
ref_x: cmp word 30, WIDTH - BALL_WIDTH | |
;; the "+ 1" here is the size of the "cmp word" opcode | |
;; ball_x will point to the memory address of "30" above | |
%define ball_x (ref_x + 1) |
This file contains 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
package main | |
import ( | |
"flag" | |
"fmt" | |
"strconv" | |
"time" | |
"github.com/gorilla/websocket" | |
) |
I hereby claim:
- I am zorchenhimer on github.
- I am zorchenhimer (https://keybase.io/zorchenhimer) on keybase.
- I have a public key ASDAk1nnUuzAbuJFNEEfA3oJ-fb1a8JApMxJiYeBystavAo
To claim this, I am signing this object:
This file contains 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
@echo off | |
AT > NUL | |
if %ERRORLEVEL% EQU 1 ( | |
echo Error: Not running as administrator. | |
echo Please right click the batch file and select 'Run as Administrator' | |
exit /b 1 | |
) | |
echo Uninstalling bad updates... |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Pack and unpack COBOL's COMP-3 numbers. | |
Cobol stores most numbers as strings. There are times that they are stored in a | |
packed format ("Computational numbers"). Comp numbers are not stored like | |
traditional numbers (16-bit, 32-bit, 64-bit, etc), but in a bit length that is | |
four times the number of digits in the stored value plus four bits. For a |
This file contains 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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
use Pod::Usage; | |
use Digest::CRC; | |
# Disable output buffer | |
$|++; |
This file contains 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
#!/usr/bin/python | |
""" | |
Bogo Sort is best sort. | |
""" | |
import random | |
import time | |
import copy | |
def check_sort(lst): |