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
%!PS | |
100 500 translate | |
0 0 1 setrgbcolor | |
/N 10 def | |
/STEP 15 def | |
1 1 N { | |
STEP mul /r exch def |
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/env python3 | |
# https://twitter.com/nst021/status/1570047611989540865 | |
# https://seriot.ch/visualization/circles.png | |
import cairo | |
import math | |
N = 10 | |
STEP = 20 |
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/env python3 | |
# Nicolas Seriot | |
# 2022-06-14 | |
# https://seriot.ch/visualization/truchet_2.png | |
# loosely inspired by https://www.fxhash.xyz/gentk/slug/dirty-interlaced-truchet-tiles-18 | |
import cairo | |
import math | |
import random |
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/env python3 | |
# Nicolas Seriot | |
# 2022-06-10 | |
# https://seriot.ch/visualization/truchet_simple.png | |
import cairo | |
import math | |
import random | |
NB_COLS = 8 |
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/env python3 | |
# Nicolas Seriot | |
# 2022-06-09 | |
# Reproducing Roni Kaufman's art | |
# https://twitter.com/KaufmanRoni/status/1520372880156073984 | |
# Sample output: https://seriot.ch/visualization/truchet.png | |
import cairo | |
import math | |
import random |
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/env python3 | |
# 2021-10-09 | |
# Emilien & Nicolas Seriot | |
# https://seriot.ch/visualization/lines_2.png | |
import cairo | |
import random | |
WIDTH = 800 | |
HEIGHT = 600 |
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/env python3 | |
# 2021-10-09 | |
# Emilien & Nicolas Seriot | |
# https://seriot.ch/visualization/lines_1.png | |
import cairo | |
import random | |
WIDTH = 800 | |
HEIGHT = 600 |
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
# Nicolas Seriot | |
# 2021-09-24 | |
# | |
# https://gist.github.com/nst/1cfb01d0b78993f7ffe2df7c101b586c | |
# Thread: https://twitter.com/nst021/status/1437889678947110912 | |
# Typical output: https://seriot.ch/visualization/iso7.gif | |
import cairo | |
import random | |
import numpy as np |
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/env python3 | |
# Nicolas Seriot | |
# 2021-09-22 | |
# https://gist.github.com/nst/6703da0b26f796fd2429310c7dda13cf | |
# - Upload some local directoy contents to a remote FTP directory. | |
# - Upload only files modified since last upload. | |
# - Touch a local file to remember timestamp of last upload. | |
# - Plays well with Mowgli https://github.com/nst/Mowgli | |
# - Eg. python3 mowgli.py -m && python3 kaa.py |
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
# Nicolas Seriot | |
# 2021-09-19 | |
# https://gist.github.com/nst/070dda2056925eec07446c5f3f3c67df | |
# Thread: https://twitter.com/nst021/status/1437889678947110912 | |
# Typical output: https://seriot.ch/visualization/iso6.gif | |
import cairo | |
import random | |
import numpy as np |