Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
gifguide2code /
Last active Apr 8, 2018
A function to automate setting shape keys for a mouth on a mesh in Blender.
import bpy
import random
def chat(speech, speed):
slist = list(speech)
mouth =['Mouth']
face =['Face']
f = 1
for x in slist:
if (x=="a") or (x=="e") or (x=="i") or (x=="o") or (x=="u") or (x=="y"):
gifguide2code / Script-Scraper
Created Apr 15, 2018
A VBA web scraper to bulk copy the HTML from
View Script-Scraper
Sub Scrape()
'Create an array of movie names
Dim Movies()
Movies = Array("Alien", "Avatar", "Blade-Runner", "Gattaca", "Ghostbusters", "Jurassic-Park", "Looper", "Lost-in-Space", "Sphere", "Signs", "Spider-Man", "Terminator", "V-for-Vendetta")
'Loop through each item in the movie array
For x = LBound(Movies) To UBound(Movies)
gifguide2code / Timeline.pde
Created May 5, 2018
A sketch to get a timeline that moves forward and backward when you move the mouse.
View Timeline.pde
int year = 0;
int y = 0;
int spacing = 50;
void setup(){
for (int i = year; i<2018; i=i+25){
gifguide2code / Static-DeCipherer.pde
Created May 13, 2018
This sketch pulls out messages hidden by the Static-Cipher.pde.
View Static-DeCipherer.pde
void setup() {
PImage Garbled = loadImage("Message.png");
PImage Message = createImage(width,height,ARGB);
for (int x = 0; x<width;x++) {
for (int y = 0; y <height; y++) {
int loc = x + y*width;
float r = red(Garbled.pixels[loc]);
float g = green(Garbled.pixels[loc]);
gifguide2code / Static-Cipher.pde
Last active May 13, 2018
This sketch hides messages in images of static.
View Static-Cipher.pde
void setup() {
int step = 2;
int imgx = 0;
int imgy = 0;
int rand = 0;
PImage Poltergeist = loadImage("Poltergeist.png");
PImage Img = createImage(width,height,ARGB);
for (int x = 0; x<width;x++) {
gifguide2code / History_In_Images.pde
Created May 20, 2018
A sketch incorporating images saved in the sketch folder into a vertical timeline.
View History_In_Images.pde
int year = 0;
int y = 0;
int spacing = 50;
PImage[] imgs = new PImage[11];
String[] dates= new String[11];
String[] desc = new String [11];
void setup(){
String path = sketchPath();
String[] filenames = listFileNames(path);
gifguide2code /
Created Jun 10, 2018
A Python script to filter out pixels with a red value higher than 30.
from PIL import Image
im ='C:\\Users\\Desktop\\HexTest.png')
pix = im.load()
width = im.size[0]
height = im.size[1]
new_im ='RGB', (width,height), "white")
new_pix = new_im.load()
gifguide2code /
Created Jul 1, 2018
This Blender function will go through a folder, pull all the jpg's inside, and map them to planes in Blender along the Z axis.
import bpy
import os
def imageLoad(imgpath):
files = os.listdir(imgpath)
#Get the names of the files in the provided folder
for x in range(len(files)):
imagename = files[x][0:20]
if files[x].endswith('.jpg'):
gifguide2code / ImageEncoder
Created Jul 9, 2018
A Processing sketch to hide messages in images. It assigns letters to numbers which are then used to change the red values in a .png copy of the original.
View ImageEncoder
IntList numbers;
void setup () {
numbers = new IntList();
String abc = ". abcdefghijklmnopqrstuvwxyz";
String message = "there is a place where the sidewalk ends and before the street begins and there the grass grows soft and white and there the sun burns crimson bright and there the moon bird rests from his flight to cool in the peppermint wind";
int n = 0;
for (int i=0; i<message.length();i++) {
String letter = str(message.charAt(i));
gifguide2code / ImageDecoder
Created Jul 9, 2018
A Processing sketch to pull messages out of pngs encoded with the ImageEncoder at
View ImageDecoder
IntList numbers;
void setup () {
numbers = new IntList();
size(400, 317);
PImage Original = loadImage("Starry Night.jpg");
PImage Encoded = loadImage("Encoded.png");
for (int x=0; x<width;x++) {
for (int y=0;y<height;y++) {
You can’t perform that action at this time.