Skip to content

Instantly share code, notes, and snippets.

View reuven's full-sized avatar
💭
Teaching Python and data science around the world

Reuven M. Lerner reuven

💭
Teaching Python and data science around the world
View GitHub Profile
67.218.116.165 - - [30/Jan/2010:00:03:18 +0200] "GET /robots.txt HTTP/1.0" 200 99 "-" "Mozilla/5.0 (Twiceler-0.9 http://www.cuil.com/twiceler/robot.html)"
66.249.71.65 - - [30/Jan/2010:00:12:06 +0200] "GET /browse/one_node/1557 HTTP/1.1" 200 39208 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
65.55.106.183 - - [30/Jan/2010:01:29:23 +0200] "GET /robots.txt HTTP/1.1" 200 99 "-" "msnbot/2.0b (+http://search.msn.com/msnbot.htm)"
65.55.106.183 - - [30/Jan/2010:01:30:06 +0200] "GET /browse/one_model/2162 HTTP/1.1" 200 2181 "-" "msnbot/2.0b (+http://search.msn.com/msnbot.htm)"
66.249.71.65 - - [30/Jan/2010:02:07:14 +0200] "GET /browse/browse_applet_tab/2593 HTTP/1.1" 200 10305 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.71.65 - - [30/Jan/2010:02:10:39 +0200] "GET /browse/browse_files_tab/2499?tab=true HTTP/1.1" 200 446 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.65.12 - - [30/Jan/2010:03:13:34 +0200]
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1.63
0.46
0.87
2.13
1.4
1.4
1.8
11.9
1.27
0.6
@reuven
reuven / gist:2233782ba99e412efe79e0ccacfbe9bc
Created August 9, 2023 10:20
CSV of US economic indicators, from Wikipedia
Year GDP (in Bil. US$PPP) GDP per capita (in US$ PPP) GDP (in Bil. US$nominal) GDP per capita (in US$ nominal) GDP growth (real) Inflation rate (in Percent) Unemployment (in Percent) Government debt (in % of GDP)
1980 2857.3 12552.9 2857.3 12552.9 -0.3% 13.5% 7.2%
1981 3207.0 13948.7 3207.0 13948.7 2.5% 10.4% 7.6%
1982 3343.8 14405.0 3343.8 14405.0 -1.8% 6.2% 9.7%
1983 3634.0 15513.7 3634.0 15513.7 4.6% 3.2% 9.6%
1984 4037.7 17086.4 4037.7 17086.4 7.2% 4.4% 7.5%
1985 4339.0 18199.3 4339.0 18199.3 4.2% 3.5% 7.2%
1986 4579.6 19034.8 4579.6 19034.8 3.5% 1.9% 7.0%
1987 4855.3 20001.0 4855.3 20001.0 3.5% 3.6% 6.2%
1988 5236.4 21376.0 5236.4 21376.0 4.2% 4.1% 5.5%
Date,Open,High,Low,Close,Adj Close,Volume
2018-06-22,46.529999,46.537498,46.174999,46.230000,44.180878,108801600
2018-06-25,45.849998,46.230000,45.182499,45.542500,43.523846,126652400
2018-06-26,45.747501,46.632500,45.634998,46.107498,44.063797,98276800
2018-06-27,46.307499,46.820000,46.007500,46.040001,43.999287,101141200
2018-06-28,46.025002,46.552502,45.950001,46.375000,44.319439,69460800
2018-06-29,46.572498,46.797501,45.727501,46.277500,44.226257,90950800
2018-07-02,45.955002,46.825001,45.855000,46.794998,44.720829,70925200
2018-07-03,46.947498,46.987499,45.884998,45.980000,43.941952,55819200
2018-07-05,46.314999,46.602501,46.070000,46.349998,44.295551,66416800
a=1
b=2
c=3
d=/etc/passwd
@reuven
reuven / cities.json
Created July 24, 2017 18:54 — forked from Miserlou/cities.json
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
##
# User Database
#
# Note that this file is consulted directly only when the system is running
# in single-user mode. At other times this information is provided by
# Open Directory.
#
# See the opendirectoryd(8) man page for additional information about
# Open Directory.
##
@reuven
reuven / CSCO.csv
Created January 22, 2018 16:05
Cisco stock prices, in CSV format
Date Open High Low Close Adj Close Volume
2017-12-22 38.520000 38.740002 38.470001 38.549999 38.264591 11441600
2017-12-26 38.549999 38.680000 38.360001 38.480000 38.195110 8186100
2017-12-27 38.540001 38.650002 38.450001 38.560001 38.274517 10543000
2017-12-28 38.730000 38.730000 38.450001 38.590000 38.304295 8807700
2017-12-29 38.410000 38.619999 38.299999 38.299999 38.016441 12583600
2018-01-02 38.669998 38.950001 38.430000 38.860001 38.572296 20135700
2018-01-03 38.720001 39.279999 38.529999 39.169998 38.879997 29536000
2018-01-04 39.049999 39.540001 38.930000 38.990002 38.990002 20731400
2018-01-05 39.549999 39.880001 39.369999 39.529999 39.529999 24588200
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1
1
1
1
1
1
1
4
1
This is a test file.
It contains 28 words and 20 different words.
It also contains 165 characters.
It also contains 11 lines.
It is also self-referential.