Skip to content

Instantly share code, notes, and snippets.

View nossidge's full-sized avatar

Paul Thompson nossidge

View GitHub Profile
@nossidge
nossidge / no_longer_a_place.bash
Created February 3, 2014 16:02
"no longer a place for"
#!/bin/bash
# http://www.independent.co.uk/news/uk/politics/house-of-lords-is-no-longer-a-place-for-fine-dining-peers-gripe-9102580.html
places=(
"House of Lords"
"Angel of the North"
"Jubilee Line"
"Wembley Stadium"
"Canterbury Cathedral"
"Bridge on the River Kwai"
@nossidge
nossidge / bandNameGen.bash
Created March 3, 2014 00:43
Emo band name / album title generator
#!/bin/bash
<<COMMENT1
This is the kind of bullshit I'm going for:
http://en.wikipedia.org/wiki/List_of_songs_recorded_by_My_Chemical_Romance
COMMENT1
############################################################################
@nossidge
nossidge / ScratchyLines
Created April 21, 2014 15:17
Naturalistic cross-hatching effect
// Scratchy rectangle shapes.
// Lines with origin and destination points that are subtly randomised around a point.
// Creates a naturalistic cross-hatching effect.
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
#!/usr/bin/env ruby
#encoding: UTF-8
# http://www.gamefaqs.com/snes/563538-chrono-trigger/faqs/31563
################################################################################
# Input: 'Paris in the Spring '
# Output: 'Paris in the Spring '
class String
@nossidge
nossidge / NoisyCrossesShapedPixelsGlitch
Last active December 13, 2015 20:49
NoisyCrossesShapedPixelsGlitch
// Create a symmetrical diamond shaped (sideways square) "snowflake".
// This can be rotated 45° to make a square.
// Create 1/8th of the shape and reflect that for the remaining 7/8ths.
// Make it a repeatable function with a parameter for the center XY.
// New pattern generated on key press.
// Animated GIF generated and saved on form unload.
// ToDo: Store as class? Then it would be copyable...
// Keys:
@nossidge
nossidge / NoisyCrosses
Last active December 13, 2015 20:49
NoisyCrosses
// Create a symmetrical diamond shaped (sideways square) snowflake.
// Create 1/8th of the shape and reflect that for the remaining 7/8ths.
// Make it a repeatable function with a parameter for the center XY.
// New pattern generated on key press.
// Animated GIF generated and saved on form unload.
// ToDo: Store as class? Then it would be copyable.
// Save as animated GIF
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = true;
// The time between GIF frames
int frameDelay = 60;
@nossidge
nossidge / CrossOfJaggedCircles
Last active December 14, 2015 10:19
CrossOfJaggedCircles
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = false;
// The time between GIF frames
int frameDelay = 60;
@nossidge
nossidge / SpinningJaggedTargets
Created March 6, 2013 17:01
SpinningJaggedTargets
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = false;
// The time between GIF frames
int frameDelay = 60;
@nossidge
nossidge / BlurredWiggleRectangle
Created March 7, 2013 15:11
BlurredWiggleRectangle
// Save as animated GIF
// Requires gifAnimation Processing Library
// http://www.extrapixel.ch/processing/gifAnimation/
import gifAnimation.*;
GifMaker gifExport;
boolean saveToGif = true;
// The time between GIF frames
int frameDelay = 50;