Skip to content

Instantly share code, notes, and snippets.

@beesandbombs
beesandbombs / chequeredWaves.pde
Created July 11, 2017 22:48
chequered waves
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
@aparrish
aparrish / tracery-with-data.ipynb
Last active June 9, 2024 20:47
Tracery and Python. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / csv-intro.ipynb
Last active July 18, 2023 20:00
Quick intro to CSVs. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
anonymous
anonymous / cubes.pde
Created April 25, 2017 22:48
spinning cubes
// by dave whyte :) @beesandbombs
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active June 17, 2026 10:31
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rjurney
rjurney / colorPalette.js
Created June 17, 2016 02:33
Kelly's 22 Colours of Maximum Contrast
var colorPalette = [“#fdfdfd”, “#1d1d1d”, “#ebce2b”, “#702c8c”, “#db6917”, “#96cde6”, “#ba1c30”, “#c0bd7f”, “#7f7e80”, “#5fa641”, “#d485b2”, “#4277b6”, “#df8461”, “#463397”, “#e1a11a”, “#91218c”, “#e8e948”, “#7e1510”, “#92ae31”, “#6f340d”, “#d32b1e”, “#2b3514”];