This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Photo Mosaic builder | |
// Author: Robbie Harjes | |
// Date: 6/9/2011 | |
// Notes: Free for non-commercial projects. This notice must | |
// remain intact if you use this code. | |
// 1. Image library (directory) is loaded from first command-line argument | |
// This argument needs to end with: \* to work correctly. | |
// Images need to be 50x50 pixels. | |
// 2. This will only work on Windows (directory searching) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
$count = 0 | |
def to_the_end(agent) | |
# Check if we have bottomed out (no more sub-category links) | |
if agent.page.at("#sections/div[@class='acw apm']/span[@class='mfss fcg']").nil? | |
# Find the unique identifier (a friend's name), which we'll use to find their profile links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################################### | |
# Simplified Facebook interactions/navigation via Ruby/Mechanize. # | |
# Author: Robbie Harjes # | |
# Date: 6/8/2011 # | |
# Notes: Not liable for misuse; free for non-commercial projects.# | |
# This notice must remain intact if you use this code. # | |
##################################################################### |