CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: Mike Fast
#! /usr/bin/perl
 
# This script is made freely available for non-commerical use by Mike Fast
# September 2011
# http://fastballs.wordpress.com/
# Attribution is appreciated but not required.
#
# This script uses portions of Joseph Adler's code from hack_28_parser.pl
# as published by O'Reilly Media in the book Baseball Hacks, copyright 2006
# ISBN 0-596-00942-9, available at http://www.oreilly.com/catalog/baseballhks/
by Mike Fast   September 14, 2011 @ 8:16pm
Tags:
204 Views
no comments
 
SQL
CREATE TABLE IF NOT EXISTS `atbats` (
  `ab_id` mediumint(9) unsigned NOT NULL AUTO_INCREMENT,
  `game_id` smallint(6) unsigned NOT NULL,
  `inning` tinyint(2) unsigned NOT NULL,
  `half` tinyint(1) unsigned DEFAULT '0',
  `num` tinyint(3) unsigned NOT NULL,
  `ball` tinyint(1) unsigned NOT NULL,
  `strike` tinyint(1) unsigned NOT NULL,
  `outs` tinyint(1) unsigned NOT NULL,
  `batter` mediumint(6) unsigned NOT NULL,
by Mike Fast   September 14, 2011 @ 8:12pm
Tags:
166 Views
no comments
 
#! /usr/bin/perl
 
# This script is made freely available for non-commerical use by Mike Fast
# September 2011
# http://fastballs.wordpress.com/
# Attribution is appreciated but not required.
#
# This script uses portions of Joseph Adler's code from hack_28_parser.pl
# as published by O'Reilly Media in the book Baseball Hacks, copyright 2006
# ISBN 0-596-00942-9, available at http://www.oreilly.com/catalog/baseballhks/
by Mike Fast   September 14, 2011 @ 8:05pm
Tags:
139 Views
no comments
 
#! /usr/bin/perl
 
# This script is made freely available for non-commerical use by Mike Fast
# August 2007
# http://fastballs.wordpress.com/
# Attribution is appreciated but not required.
#
# This script uses portions of Joseph Adler's code from hack_28_parser.pl
# as published by O'Reilly Media in the book Baseball Hacks, copyright 2006
# ISBN 0-596-00942-9, available at http://www.oreilly.com/catalog/baseballhks/
by Mike Fast   September 02, 2009 @ 9:35am
Tags:
252 Views
no comments
 
#! /usr/bin/perl
 
# This script is made freely available for non-commerical use by Mike Fast
# February 2008
# http://fastballs.wordpress.com/
# Attribution is appreciated but not required.
 
# MySQL database connection statement
use DBI;
$dbh = DBI->connect("DBI:mysql:database=pbp;host=localhost", 'root', 'package') 
by Mike Fast   August 26, 2009 @ 1:54am
Tags:
591 Views
no comments
 
SQL
-- phpMyAdmin SQL Dump
-- version 2.6.2-pl1
-- http://www.phpmyadmin.net
-- 
-- Host: localhost:3306
-- Generation Time: Aug 26, 2009 at 03:49 AM
-- Server version: 5.0.41
-- PHP Version: 5.2.3
-- 
-- Database: `pbp`
by Mike Fast   August 26, 2009 @ 1:51am
Tags:
717 Views
no comments
 
#! /usr/bin/perl
 
# This script is made freely available for non-commerical use by Mike Fast
# August 2007
# http://fastballs.wordpress.com/
# Attribution is appreciated but not required.
#
# This script uses portions of Joseph Adler's code from hack_28_parser.pl
# as published by O'Reilly Media in the book Baseball Hacks, copyright 2006
# ISBN 0-596-00942-9, available at http://www.oreilly.com/catalog/baseballhks/
by Mike Fast   August 26, 2009 @ 1:45am
Tags:
1149 Views
no comments
 
#! /usr/bin/perl
 
use LWP;
my $browser = LWP::UserAgent->new;
$baseurl = "http://gd2.mlb.com/components/game/mlb";
$outputdir = "./games";
 
use Time::Local;
 
sub extractDate($) {
by Mike Fast   August 26, 2009 @ 1:43am
Tags:
668 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate