Skip to content

Instantly share code, notes, and snippets.

@pix0r
pix0r / shared_followers.rb
Created February 23, 2010 19:52 — forked from damon/shared_followers.rb
find shared twitter followers, then print all usernames
#!/usr/bin/env ruby
# Author: Damon Clinkscales
# Modified 2010-02-23 by Mike Matz
# Loop through all shared follower IDs to expose usernames.
# Not recommended for people with a lot of followers!
require 'rubygems'
require 'hpricot'
require 'net/http'
@pix0r
pix0r / split-3200x1200-image.sh
Created January 29, 2010 19:41
split a 3200x1200 image into left and right parts
#!/bin/sh
IMAGE=$1
EXT=`echo $IMAGE | sed -e 's/.*\(\.[A-Za-z0-9]*\)$/\1/'`
BASE=`echo $IMAGE | sed -e 's/^\(.*\)\(\.[A-Za-z0-9]*\)$/\1/'`
LEFT_IMAGE="$BASE-left$EXT"
RIGHT_IMAGE="$BASE-right$EXT"
if [ "$IMAGE" = "" ]; then
echo "Usage: $0 image.jpg"