simple underscore.js projects, walk through, & tutorial


Lottery DataBase Analysis - INPUT SPUR


The sole purpose of this web page is to create an input methodology, transforming an HTML table from the CA Lottery site into a JavaScript JSON object via a cut and paste methodology.


1)  Cut Data from the Lottery Site.
2)  In Kompozer (a web page editing utility) paste the data here, replacing this table with the new one.,

INPUT - CA LOTTERY SCRATCHERS TABLE HERE - (Set for life, sample data)
Prizes Odds 1 in Total # of Winners Prizes Claimed Prizes Available
$3,250,000 2,400,000 17 11 6
$5,000 1,200,000 34 22 12
$1,000 400,000 102 65 37
$500 12,000 3,400 2,239 1,161
$100 645 63,240 41,624 21,616
$40 350 116,620 76,812 39,808
$20 53 765,000 498,167 266,833
$15 40 1,020,000 668,467 351,533
$10 20 2,040,000 1,325,571 714,429
$5 11 3,570,000 2,287,131 1,282,869
Ticket 10 4,080,000 2,524,475 1,555,525
END INPUT

3)  Save altered webpage.
4) Open with a browser.  (I use Firefox.)

JSON Output Data Below

1 Nada Yet

5)  Copy JSON Object
6)  And paste into Javascript where it will be utilized.




_.moreUnderscoreProjects

© Copyright 2013 Brett Paufler



Please Note: I am an idiot.  No seriously.  The odds of my gambling odds calculations being correct are likely on par with my odds of ever winning.  You have been warned.