free software resistance

 the cost of computing freedom is eternal vigilance

### printall.py *original date:* aug 2012 *orginally posted:* sep 2024 all the files from 2012 say theyre from august- i suspect this is the date of a file transfer rather than the date they were created, some may actually be from 2012 though. the patterns created by trig functions mapped to 2d output are cool, this is a relatively early example of that with python: ``` #!/usr/bin/env python #public domain def color(f, b): n = "0" if f > 7: n = "1" ; f = f - 8 if f == 1: f = 4 elif f == 4: f = 1 if f==3: f = 6 elif f == 6: f = 3 if b > 7: b = b - 8 if b == 1: b = 4 elif b == 4: b = 1 if b == 3: b = 6 elif b == 6: b = 3 print "\x1b[" + n + ";" + str(30+f) + ";" + str(40+b) + "m\x08", def locate(l, c): print "\x1b[" + str(l) + ";" + str(c) + "H", def cls(): print "\x1b[2J\x1b[1;1H", import time #from math import sin, cos #print "\x1b[?25l", cls() try: while 1: for z in range (1, 15 + 1): for y in range (2, 23 + 1): for x in range (3, 78 + 1): color ((1 + (z + (y * x) % 15) % 15), 0) locate (y, x) print u"\x08\u2588", time.sleep(.01) except KeyboardInterrupt: color(7, 0) cls() ``` license: 0-clause bsd ``` # 2012 mn # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ``` => https://freesoftwareresistance.neocities.org