Skip to content

Instantly share code, notes, and snippets.

@breckenedge
breckenedge / download_urls_from_osti
Created March 29, 2011 15:19
used to download pdfs from the OSTI.GOV information bridge
require 'rubygems'
require 'mechanize'
require 'progressbar'
docs = File.readlines('URLS.txt')
pb = ProgressBar.new('downloading', docs.length)
docs.each do |line|
url = line.strip
if !File.exist?(File.basename(url))
@breckenedge
breckenedge / mainbox_rotator.tpl
Created March 19, 2011 03:47
mainbox rotator
{if $anchor}
<a name="{$anchor}"></a>
{/if}
<script type="text/javascript">
{literal}
<script type="text/javascript">
$(document).ready(function(){
$('div.rotating_banner').bxSlider({