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
'use strict'; | |
const fs = require('fs'); | |
const col1 = [190, 281, 1020, 32, 1007, 1090, 812, 123, 1298, 1006, 927, 1092, 946, 1426, 1003, 1226, 164, 671, 382, 285, 1628, 1037, 535, 295, 574, 1005, 401, 862, 1171, 1068, 544, 1066, 1172, 511, 754, 658, 810, 234, 885, 124, 424, 115, 928, 545, 368, 582, 246, 779, 1022, 853, 40, 821, 1170, 740, 1023, 880, 531, 304, 879, 1240, 477, 683, 284, 921, 1173, 999, 280, 618, 1000, 882, 207, 156, 1393, 1341, 1340, 947, 527, 1347, 1004, 362]; | |
const col2 = [114, 281, 848, 1453, 1108, 1049, 1400, 1447, 1191, 1177, 1186, 1054, 521, 370, 679, 55, 30, 1440, 1488, 451, 193, 619, 73, 101, 903, 1481, 1130, 1438, 104, 708, 1298, 480, 235, 1228, 94, 1039, 518, 1850, 942, 1131, 951, 218, 430, 1225, 426, 1712, 889, 254, 1139, 468, 226, 782, 1363, 237, 1218, 694, 1739, 1031, 1426, 1193, 500, 488, 790, 1487, 1107, 1252, 1220, 612, 490, 671, 382, 1856, 285, 1046, 1863, 1344, 219, 1123, 61, 1124, 336, 483, 869, 923, 1435, 1037, 535, 739, 918, 1102, 295, 722, 255, 558, 904, 1129, 1653, 839, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
/* remove any browser margin around the p5js sketch */ | |
padding: 0; | |
margin: 0; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> body {padding: 0; margin: 0;} canvas {vertical-align: top;} </style> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.22/p5.min.js"></script> | |
<script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Colors</title> | |
<style> body {padding: 0; margin: 0;} canvas {vertical-align: top;} </style> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.22/p5.min.js"></script> | |
<script> |
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 python | |
#coding=utf-8 | |
# | |
# massive-flipper.py | |
# | |
# Massive flipping of multiple URLs into a Flipboard magazine. | |
# | |
# Created by Raphael Schaad on 2014-09. | |
# This is free and unencumbered software released into the public domain. | |
# |
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 python | |
#coding=utf-8 | |
# | |
# imsg-cleaner.py | |
# | |
# Renames CSV files of iMessages extracted with iExplorer from iTunes backup and prints start and end date of conversations. | |
# | |
# Created by Raphael Schaad on 2013-12. | |
# This is free and unencumbered software released into the public domain. | |
# |
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
// | |
// processing_meteormap.pde | |
// | |
// Processing sketch visualizing a large set of meteorite strikes as a map for learning purposes. | |
// To run, extract xdata.zip because GitHub Gist doesn't allow folders but Processing expects external resources in ./data. | |
// https://www.skillshare.com/classes/design/Data-Visualization-Designing-Maps-with-Processing-and-Illustrator/1063775924 | |
// | |
// Created by Raphael Schaad on 2016-01-23. | |
// This is free and unencumbered software released into the public domain. | |
// |
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
// | |
// processing_basics.pde | |
// | |
// Processing sketch with a basic structure for learning purposes. | |
// | |
// Created by Raphael Schaad on 2016-01-23. | |
// This is free and unencumbered software released into the public domain. | |
// | |
// Define global vars/consts (all typed), and import libs |
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
// | |
// cocoon_embedded.ino | |
// | |
// Created by Raphael Schaad on 2015-12-12. | |
// This is free and unencumbered software released into the public domain. | |
// | |
// Right motor breakout board (looking at it from the front) | |
const int R_BTN1 = 3; // left (cocoon down); PD3; Arduino Uno use pin 3; hello.arduino use pin 7 | |
const int R_BTN2 = 4; // right (cocoon up); PD4; Arduino Uno use pin 4; hello.arduino use pin 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
// | |
// att45_schaad1.c | |
// | |
// Created by Raphael Schaad on 2015-11-16. | |
// This is free and unencumbered software released into the public domain. | |
// | |
// Import headers installed with CrossPack-AVR (/usr/local/CrossPack-AVR/) | |
#include "stdbool.h" // So we have 'true' and 'false' instead of 1 and 0 (might have memory implications) -- lib/gcc/avr/4.8.1/include/ | |
#include <avr/io.h> // Umbrella header including e.g. iotn45.h for our chip, defining PORTB/DDRB/PBn -- avr/include/avr/ |
NewerOlder