Skip to content

Instantly share code, notes, and snippets.

@elib
elib / broken_vhs.pde
Created October 1, 2014 14:42
"Broken VHS" effect for static image
float sidepercent = 6;
//10-20 -> amazing horizontals
//100 -> painterly
float initialChanceOfChunkGrab = 15;
float chanceOfChunkGrab;
float chanceOfChunkGrabChange = 10;
@elib
elib / haiku_bot_example.rb
Last active December 24, 2015 00:19
A simple bot that manually retweets haikus directed at it. Uses the Twitter gem. You will need to provide the appropriate API tokens.
require 'rubygems'
require 'twitter'
require 'time'
@blacklist = []
def log text
@logfile.write( "\r\n" + Time.new.to_s + ": " + text.to_s())
end