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
#!/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 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
# $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 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 <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 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
// 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"); | |
} |
NewerOlder