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
## 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
pclass survived name sex age sibsp parch ticket fare cabin embarked boat body home.dest
1 1 Allen, Miss. Elisabeth Walton female 29 0 0 24160 211.3375 B5 S 2 St Louis, MO
1 1 Allison, Master. Hudson Trevor male 0.9167 1 2 113781 151.5500 C22 C26 S 11 Montreal, PQ / Chesterville, ON
1 0 Allison, Miss. Helen Loraine female 2 1 2 113781 151.5500 C22 C26 S Montreal, PQ / Chesterville, ON
1 0 Allison, Mr. Hudson Joshua Creighton male 30 1 2 113781 151.5500 C22 C26 S 135 Montreal, PQ / Chesterville, ON
1 0 Allison, Mrs. Hudson J C (Bessie Waldo Daniels) female 25 1 2 113781 151.5500 C22 C26 S Montreal, PQ / Chesterville, ON
1 1 Anderson, Mr. Harry male 48 0 0 19952 26.5500 E12 S 3 New York, NY
1 1 Andrews, Miss. Kornelia Theodosia female 63 1 0 13502 77.9583 D7 S 10 Hudson, NY
1 0 Andrews, Mr. Thomas Jr male 39 0 0 112050 0.0000 A36 S Belfast, NI
1 1 Appleton, Mrs. Edward Dale (Charlotte Lamson) female 53 2 0 11769 51.4792 C101 S D Bayside, Queens, NY