Skip to content

Instantly share code, notes, and snippets.

@joshuaflanagan
joshuaflanagan / meme.sh
Last active October 5, 2022 23:08 — forked from tzermias/meme.sh
Meme Generator using ImageMagick
#!/bin/bash
# meme.sh
# https://gist.github.com/joshuaflanagan/77f31411d137aec9b9c1b79b42d339f8
# Meme generator with ImageMagick
# https://www.it-cooking.com/technology/digital-image/image-processing/meme-generator-imagemagick/
usage() {
echo "Usage: $0 [ -t TOP_MSG ] [ -b BOTTOM_MSG ] [ -s FONTSIZE=80] [ -a TOP_FONTSIZE=80 ] [ -z BOTTOM_FONTSIZE=80 ] SRC DST"
@joshuaflanagan
joshuaflanagan / xml_parser.rb
Created January 9, 2012 02:22 — forked from kmile/xml_parser.rb
A small nokogiri xml reader DSL.
# A small DSL for helping parsing documents using Nokogiri::XML::Reader. The
# XML Reader is a good way to move a cursor through a (large) XML document fast,
# but is not as cumbersome as writing a full SAX document handler. Read about
# it here: http://nokogiri.org/Nokogiri/XML/Reader.html
#
# Just pass the reader in this parser and specificy the nodes that you are interested
# in in a block. You can just parse every node or only look inside certain nodes.
#
# A small example:
#