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
def filecolor(filename): | |
colors = ("#f15501", "#f15501", "#f3ca0a", "#199c4b", | |
"#0298c3", "#ca2afe", "#6e4a7e", "#701516", | |
"#6594b9", "#0d3c6e", "#3ebc27", "#a9188d", | |
"#f15501", "#543978", "#37775b", "#0579aa",) | |
# if the filename has an extension, use it for the hash | |
if "." in filename: | |
filename = filename.split(".")[1] |
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
from PIL import Image | |
import turtle | |
import os | |
def make_image(imagename, imagetype, imagesize): | |
""" | |
Creates a new square RGB image. | |
""" | |
size = (imagesize, imagesize) |
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
// Sonic Screw Driver | |
// CONSTANTS AND VARIABLES | |
const int button2 = 2; | |
const int button3 = 3; | |
const int speaker = 4; | |
const int inputVoltagePin = 6; | |
const int IREMITTER = 7; | |
const int IRRECEIVER = 8; | |
const int LED = 9; |