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
;; weasel | |
(def TARGET "ME THINKS IT IS LIKE A WEASEL") | |
(def ALPHABET "ABCDEFGHIJKLMNOPQRSTUVWXYZ ") | |
(def RATE 0.05) | |
(def rand-seed | |
"Generate a random seed as long as the target." | |
(take (count TARGET) (repeatedly #(rand-nth ALPHABET)))) |
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/env python | |
# | |
# Copyright (c) 2001 Vivake Gupta (vivakeATomniscia.org). All rights reserved. | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2 of the | |
# License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
# get platform | |
uname_ans=$(shell uname) | |
ifeq ($(uname_ans), Darwin) | |
# on a Mac, can use clang/llvm | |
# much better diagnostics, slightly slower code | |
cc=clang | |
else | |
# fall back to gcc | |
cc=gcc |