Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# terrible word search generator
# inspired by http://cnlohr.blogspot.com/2014/02/to-make-terrible-wordsearches.html
if ARGV.length != 3
STDERR.puts "usage: #$0 WIDTH HEIGHT WORD"
exit 1
end
$word = ARGV[2].upcase
@hellocatfood
hellocatfood / sparkle.sh
Last active August 29, 2015 14:02
Tiles a gif and then overlays it over a static image.
#!/bin/bash
#tiles a gif and then overlays it over a static image. Only tested with jpgs and pngs on Ubuntu 14.04
#usage: ./sparkle.sh sparklegif.gif /directory/of/images/ (use the full location path)
sparklegif=$1
imagedirectory=$2
#create a large tile of the looping gif. It needs to be larger than the input static image, so "-scale" the $sparklegif if necessary or change the viewport value
@hellocatfood
hellocatfood / overlaytext.sh
Last active August 29, 2015 14:02
Overlay each line of a text file onto sequentially named image files
#!/bin/bash
#Developed for a very specific case. Your image files must be named 1.jpg, 2.jpg, 3.jpg etc. Place this script, the images files and the text file in the same folder. Then run ./overlaytext.sh. It'll overwrite the original files, so make a backup.
no=1
#change 40 to however many files you have
while [ $no -le 40 ]
#change textfile to whatever text file you have
@hellocatfood
hellocatfood / colourchart.sh
Last active August 29, 2015 14:02
Reduces the colour count of an image and then overlays those colours as cubes onto the image
#!/bin/bash
#Reduces the colour count of an image and then overlays those colours as cubes onto the image
#Developed for Post-Modern Plant Life: An [RHP] CDRs Artist Laboratory https://www.facebook.com/events/1452413868331145/
for file in *.JPG
do
colors=$1
@hellocatfood
hellocatfood / License
Last active August 29, 2015 14:06
Combine two images
We couldn’t find that file to show.
@hellocatfood
hellocatfood / LICENSE
Last active August 29, 2015 14:07
Moviecutter
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@hellocatfood
hellocatfood / gif-to-video.sh
Created January 4, 2015 20:01
gif to video
#!/bin/bash
for file in *.gif
do
# get filename minus extension
file1=$(basename "$file")
filename="${file1%.*}"
# convert to individual frames with green screen
@hellocatfood
hellocatfood / emojify.sh
Last active August 29, 2015 14:12
Emojify an image
#!/bin/bash
emojis=(/home/hellocatfood/Desktop/twemoji/16x16/*)
# get filename minus extension
file=$(basename "$1")
filename="${file%.*}"
# pick random emoji for gifs
file1=$(printf "%s\n" "${emojis[RANDOM % ${#emojis[@]}]}")
@hellocatfood
hellocatfood / gist:46dec37ed533c57e4519
Created January 8, 2015 18:50
Installation instructions for Flext and Py ext
Installation instructions for Flext and pyext on Ubuntu 14.10 (64 Bit) on a Dell XPS 13
Download the Pure Data source code
git clone git://git.code.sf.net/p/pure-data/pure-data/
Checkout flext
svn co https://svn.grrrr.org/ext/trunk/flext/
cd into flext
@hellocatfood
hellocatfood / gist:ad1da963d5b37b43d542
Last active August 29, 2015 14:13
#artsdigital bingo
Technology
Technologies
Content
Wearable
Media
Future
Virtual
Disruption
Disruptive
Big Data