Skip to content

Instantly share code, notes, and snippets.

@msgtn
msgtn / bwbd.py
Created July 17, 2023 02:36
Raw code for generating 'I am me' matted image montage
#%%
# import cv
from PIL import Image, ImageOps, ImageChops, ImageDraw, ImageFont
import glob
import numpy as np
import moviepy
from moviepy import *
from moviepy.editor import *
import cv2 as cv
import random
@msgtn
msgtn / gist:9c41163290fde3af6b0c
Created March 12, 2015 21:22
Etch-a-sketch IEEE (Inline)
/*
Stepper Motor Control - one revolution <<<<<<<<<<<<<<<<<<<<< Modified
This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 - 11 of the Arduino.
The motor should revolve one revolution in one direction, then
one revolution in the other direction.
@msgtn
msgtn / gist:4b448301c15ab0e39627
Last active August 29, 2015 14:16
Etch-a-sketch IEEE (diagonal)
/*
Stepper Motor Control - one revolution <<<<<<<<<<<<<<<<<<<<< Modified
This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 - 11 of the Arduino.
The motor should revolve one revolution in one direction, then
one revolution in the other direction.