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
// first byte | |
if (_mod_packets) | |
{ | |
// need to rebuild packet type and window info | |
if (!mode_blockflag) | |
{ | |
throw Parse_error_str("didn't load mode_blockflag"); | |
} |
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
#include <string.h> | |
#define DIRECT 1 | |
#define VERIFY 0 | |
const int out_pins[5] = {3,2,0,1,4}; | |
const int in_pins[5] = {22,21,20,19,18}; | |
void setup_pins() { | |
for (int i = 0; i < 5; i++) { |
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
# $Id$ | |
# Maintainer: Balló György <ballogyor+arch at gmail dot com> | |
# Contributor: Bartłomiej Piotrowski | |
# Contributor: Brad Fanella <[email protected]> | |
# Contributor: Allan McRae <[email protected]> | |
# Contributor: Tomas A. Schertel <[email protected]> | |
# Contributor: Adam Gashlin <[email protected]> | |
pkgname=cherrytree | |
pkgver=0.33.4 |
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/python2 | |
# Adam Gashlin | |
# compute number of possible canonical Huffman trees | |
from math import log, pow, factorial, ceil | |
from sys import argv | |
def f(n): | |
return sum(map(lambda i: g(n, i), range(2,n+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
diff -r -u xmash08/xma_rebuild.c xmash08-mod/xma_rebuild.c | |
--- xmash08/xma_rebuild.c 2011-03-11 09:37:38.000000000 -0500 | |
+++ xmash08-mod/xma_rebuild.c 2015-01-22 03:06:44.643157479 -0500 | |
@@ -36,6 +36,44 @@ | |
static long parse_frames(struct bitstream_reader *ibs, unsigned int frame_count, bool known_frame_count, unsigned int * total_bits_p, unsigned int max_bits, bool stereo, bool strict, bool verbose); | |
static int packetize(struct bitstream_reader *ibs, struct bitstream_writer *obs, struct xma_build_context * ctx, unsigned int frame_count, bool strict, bool last); | |
+uint8_t *make_wav_header(uint32_t srate, uint32_t size, int channels) | |
+{ | |
+ uint8_t *h = malloc(wav_header_size); |
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
-- output PGM (greyscale) image representation of NES CHR-ROM pattern tables | |
-- usage: NES0A smb.nes [bank to use, default 0] | |
-- This represents my first attempt at Haskell, please forgive me. | |
module Main where | |
import qualified Data.ByteString.Lazy as BL | |
import Data.Binary.Get | |
import Data.Bits | |
import Data.Word |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
title Time Loop wip | |
author Adam Gashlin | |
homepage gashlin.net | |
key_repeat_interval 0.25 | |
======== | |
OBJECTS | |
======== |
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
title Net | |
( | |
An implementation of Simon Tatham's "Net" [0] | |
Simon says [1] "I originally saw this in the form of a Flash game called | |
FreeNet [2], written by Pavils Jurjans; there are several other | |
implementations under the name NetWalk." | |
This PuzzleScript port is by Adam Gashlin. |
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
title Add Man 3: Heavy Math (wip) | |
author Adam Gashlin | |
homepage gashlin.net | |
key_repeat_interval 0.25 | |
noaction | |
run_rules_on_level_start | |
======== | |
OBJECTS |
OlderNewer