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
/* | |
* Print all permutations of a string, | |
* using a tree-recursive routine. I | |
* bet there are smart algorithms out | |
* there that beat this. I did not look | |
* up an algorithm when writing this. | |
* | |
* Bl0ckeduser | |
* June 26, 2012 | |
*/ |
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
/* | |
* ChromakeyMan v2.1 | |
* by 'Bl0ckeduser' | |
* | |
* A simple chroma-key effect program | |
* | |
* Originally written in METAL Basic | |
* (on Mac OS 9) in 2007-2008 for ad-hoc | |
* use in a little VFX project. | |
* |
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
/* | |
* ChromakeyMan v2.2 | |
* by 'Bl0ckeduser' | |
* | |
* A simple chroma-key effect program | |
* | |
* Originally written in METAL Basic | |
* (on Mac OS 9) in 2007-2008 for ad-hoc | |
* use in a little VFX project. | |
* |
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
/* | |
* Wannabe regex (egrep-style) | |
* Wannabe automatic regex tokenizer | |
* Wannabe egrep command (./a.out --wgr 'pattern') | |
* | |
* The wannabe egrep can make a picture of the compiled NFA | |
* this way: | |
* ./a.out --wgr 'pattern' --pic | pic | troff -ms | |
* | |
* Supported 'special' characters: |
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
/* | |
* August 26, 2012 error fixes: | |
* | |
* Fixed * compilation to work properly with | |
* proper epsilon nodes. Fixed evaluator infinite | |
* loop check to work well with this. | |
* Removed large stack allocation in main(). | |
*/ | |
/* |
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
/* | |
* August 27, 2012 error fixes: | |
* | |
* Fixed + compilation to work properly with | |
* proper epsilon nodes. Fixed evaluator infinite | |
* loop check to work well with this. | |
* Some comments on the new messy (but better-working) | |
* + / * nodes/edges. | |
* (Yeah, I know, it's mostly similar to yesterday). | |
*/ |
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
#lang racket | |
; Prints out perfect numbers < 1000 | |
(define (proper-factors-of n) | |
(filter | |
(lambda (x) (= 0 (modulo n x))) | |
; n is excluded | |
(sequence->list (in-range 1 n)))) |
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
/* | |
* September 6, 2012 | |
* - Fixed $ compilation | |
* - Better pictures | |
*/ | |
/* | |
* August 27, 2012 error fixes: | |
* | |
* Fixed + compilation to work properly with |
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
# Print e, (believed) correct to N decimal places. | |
# | |
# [Not absolutely guaranteed accurate, because | |
# I'm not an expert or professional. Casually | |
# believed to work based on tests with N < 3000 | |
# with some e-decimals sources on the Internet.] | |
# | |
# [e.g. to get identical formatting for comparison | |
# with NASA's "e.2mil", pipe through | |
# sed 's/2\./ 2\./g' | fold -60 |
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
/* | |
* This program gives either "N - 2" terms of the | |
* series for e, or "N" decimal places of e | |
* (in the latter case converting the digit count | |
* to a term count by brute-force) using only C's | |
* built-in integer arithmetic (lots of it and lots | |
* of memory allocation and moving-around stuff). | |
* In both cases, it makes sure to stop giving | |
* you digits once the error margin is reached. | |
* |
OlderNewer