Skip to content

Instantly share code, notes, and snippets.

View davewadestein's full-sized avatar

Dave Wade-Stein davewadestein

  • DevelopIntelligence
  • Boulder, CO
View GitHub Profile
TWO roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveler, long I stood
And looked down one as far as I could
To where it bent in the undergrowth;
Then took the other, as just as fair,
And having perhaps the better claim,
Because it was grassy and wanted wear;
Though as for that the passing there
## List Lab: Sieve of Eratosthenes
* create a list of the integers from 2 to 100
* start from 2, and remove all of its multiples
* next, remove all multiples of 3, 5, etc.
* when you're done, only primes will remain
* when to stop?
The Tragedy of Hamlet, Prince of Denmark
Shakespeare homepage | Hamlet | Entire play
ACT I
SCENE I. Elsinore. A platform before the castle.
FRANCISCO at his post. Enter to him BERNARDO
BERNARDO
Hey, you're now looking at one of my gists!
user_id|age|sex|occupation|zip_code
1|24|M|technician|85711
2|53|F|other|94043
3|23|M|writer|32067
4|24|M|technician|43537
5|33|F|other|15213
6|42|M|executive|98101
7|57|M|administrator|91344
8|36|M|administrator|05201
9|29|M|student|01002
country beer_servings spirit_servings wine_servings total_litres_of_pure_alcohol continent
Afghanistan 0 0 0 0.0 AS
Albania 89 132 54 4.9 EU
Algeria 25 0 14 0.7 AF
Andorra 245 138 312 12.4 EU
Angola 217 57 45 5.9 AF
Antigua & Barbuda 102 128 45 4.9 NA
Argentina 193 25 221 8.3 SA
Armenia 21 179 11 3.8 EU
Australia 261 72 212 10.4 OC
This file has been truncated, but you can view the full file.
City,Colors Reported,Shape Reported,State,Time
Ithaca,,TRIANGLE,NY,6/1/1930 22:00
Willingboro,,OTHER,NJ,6/30/1930 20:00
Holyoke,,OVAL,CO,2/15/1931 14:00
Abilene,,DISK,KS,6/1/1931 13:00
New York Worlds Fair,,LIGHT,NY,4/18/1933 19:00
Valley City,,DISK,ND,9/15/1934 15:30
Crater Lake,,CIRCLE,CA,6/15/1935 0:00
Alma,,DISK,MI,7/15/1936 0:00
Eklutna,,CIGAR,AK,10/15/1936 17:00
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 1 column, instead of 2. in line 8.
State Lat Mort Ocean Long
Alabama 33.0 219 1 87.0
Arizona 34.5 160 0 112.0
Arkansas 35.0 170 0 92.5
California 37.5 182 1 119.5
Colorado 39.0 149 0 105.5
Connecticut 41.8 159 1 72.8
Delaware 39.0 200 1 75.5
Wash,D.C. 39.0 177 0 77.0
Florida 28.0 197 1 82.0
cylinders displacement horsepower weight accel year model mpg
8.0 307.0 130.0 3504.0 12.0 70 chevrolet chevelle malibu 15.0
8.0 350.0 165.0 3693.0 11.5 70 buick skylark 320 15.0
8.0 318.0 150.0 3436.0 11.0 70 plymouth satellite 18.0
8.0 304.0 150.0 3433.0 12.0 70 amc rebel sst 16.0
8.0 302.0 140.0 3449.0 10.5 70 ford torino 17.0
8.0 429.0 198.0 4341.0 10.0 70 ford galaxie 500 15.0
8.0 454.0 220.0 4354.0 9.0 70 chevrolet impala 14.0
8.0 440.0 215.0 4312.0 8.5 70 plymouth fury iii 14.0
8.0 455.0 225.0 4425.0 10.0 70 pontiac catalina 14.0
id Clump Thickness Cell Size Cell Shape Adhesion Epithelial Nuclei Chromatin Nucleoli Mitoses Diag
1000025 5 1 1 1 2 1 3 1 1 0
1002945 5 4 4 5 7 10 3 2 1 0
1015425 3 1 1 1 2 2 3 1 1 0
1016277 6 8 8 1 3 4 3 7 1 0
1017023 4 1 1 3 2 1 3 1 1 0
1017122 8 10 10 8 7 10 9 7 1 2
1018099 1 1 1 1 2 10 3 1 1 0
1018561 2 1 2 1 2 1 3 1 1 0
1033078 2 1 1 1 2 1 1 1 5 0