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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> | |
Wu! | |
</title> | |
</head> | |
<body> | |
<div id="wutang_bangers" style="height:500px; width:900px;"> | |
<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.0','packages':['corechart']}]}"></script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Live election parser using Google Spreadsheets</title> | |
<!-- Adapted from a Michelle Minkoff joint: http://michelleminkoff.com/2010/11/22/using-google-spreadsheets-as-your-database/ --> | |
<link rel="stylesheet" type="text/css" href="http://dataomaha.com/media/base.css" /> | |
<link rel="stylesheet" type="text/css" href="http://dataomaha.com/media/super-styles.css"> | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
} | |
ul { |
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
<!doctype html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<style> | |
.container { |
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
""" | |
Scrapin' the Nebraska Game and Parks Big Game Trophy database. | |
""" | |
from mechanize import Browser | |
from bs4 import * | |
from time import * | |
import re | |
# Crank up a browser |
We can't make this file beautiful and searchable because it's too large.
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
2013 156 Whitetail Deer Firearm Typical HOWARD Brandon Watson DANNEBROG, NE http://outdoornebraska.ne.gov/trophy/Home/Details?trophyID=6326 | |
2012 131 7/8 Whitetail Deer Archery Typical GAGE Jeff Rudder BEATRICE, NE http://outdoornebraska.ne.gov/trophy/Home/Details?trophyID=6272 | |
2012 360 5/8 Elk Firearm Typical LINCOLN Rex Davis NORTH PLATTE, NE http://outdoornebraska.ne.gov/trophy/Home/Details?trophyID=6161 | |
2012 77 4/8 Pronghorn Archery N/A DAWES Craig Raymer HAY SPRINGS, NE http://outdoornebraska.ne.gov/trophy/Home/Details?trophyID=6375 | |
2012 65 4/8 Pronghorn Archery N/A DAWES Nick Smith ALLIANCE, NE http://outdoornebraska.ne.gov/trophy/Home/Details?trophyID=6249 | |
2012 66 6/8 Pronghorn Archery N/A HOOKER Bryan Crisp MULLEN, NE http://outdoornebraska.ne.gov/trophy/Home/Details?trophyID=6251 | |
2012 337 Elk Firearm Typical SHERIDAN Joseph Krotz RUSHVILLE, NE http://outdoornebraska.ne.gov/trophy/Home/Details?trophyID=6256 | |
2012 134 Whitetail Deer Archery Typical SALINE Dusty Schelbitzki HALLAM, NE http://outdoornebra |
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
// add <p> tags to a textarea input | |
function addGrafs() { | |
var dt = document.getElementsByTagName("textarea")[0]; | |
dt.value = '<p>' + dt.value.replace(/\n/g, '</p>\n\n<p>').replace(/\n\n<p><\/p>/g, '') + '</p>' | |
} |
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
// rounds off decimals, so there's that | |
function toAp(num) { | |
// handle strings and commas and parens and currency | |
if (typeof(num) != "string") | |
{ numstripped = parseInt(num) } | |
else { | |
numstring = num.replace(/,|$|€|¥|%|(|)/g,''); | |
numstripped = parseInt(numstring); |
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
apmonths = ["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."] |
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
Rep. David Anderson http://legis.sd.gov/img/Legislators/andersonD.jpg | |
Rep. Julie Bartling http://legis.sd.gov/img/Legislators/bartlingJ.jpg | |
Rep. Jim Bolin http://legis.sd.gov/img/Legislators/Bolin.jpg | |
Rep. Gary Cammack http://legis.sd.gov/img/Legislators/cammackG.jpg | |
Rep. Blaine Campbell http://legis.sd.gov/img/Legislators/campbellB.jpg | |
Rep. Lance Carson http://legis.sd.gov/img/Legislators/carson.jpg | |
Rep. Kristin Conzet http://legis.sd.gov/img/Legislators/Conzet.jpg | |
Rep. Scott Craig http://legis.sd.gov/img/Legislators/craigS.jpg | |
Rep. Justin Cronin http://legis.sd.gov/img/Legislators/Cronin.jpg | |
Rep. Dan Dryden http://legis.sd.gov/img/Legislators/dryden.jpg |
OlderNewer