Skip to content

Instantly share code, notes, and snippets.

@kcsluis
kcsluis / earth_moons.csv
Last active October 23, 2019 22:44
Moons of the Solar System
period planet_radius semimajor_axis planet_name
27.321 3.474 1 Moon
@kcsluis
kcsluis / index.html
Created November 1, 2015 21:19
Bar Graph
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
body {
font-family: sans-serif;
}
.barPositive {
@kcsluis
kcsluis / index.html
Created November 1, 2015 23:52
Line Graph, Two Ways
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
body {
font-family: sans-serif;
font-size: 10px;
@kcsluis
kcsluis / ans_quart.tsv
Created November 14, 2015 16:19
Enter, Update, Exit
group x y
I 10 8.04
I 8 6.95
I 13 7.58
I 9 8.81
I 11 8.33
I 14 9.96
I 6 7.24
I 4 4.26
I 12 10.84
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 12 columns, instead of 2 in line 8.
city venue_id venue_name address lat lon category tip_count users_count checkins_count rating rating_signals
New York, NY 4a8cc1d4f964a520130f20e3 Strand Bookstore 828 Broadway 40.7332 -73.99096 Bookstore 568 36129 72329 9.6 4218
Portland, OR 4a06431ff964a520dc721fe3 Powell's City of Books 1005 W Burnside St 45.52341 -122.68152 Bookstore 457 41161 69916 9.6 3517
New York, NY 43fe1ba4f964a520f82f1fe3 Barnes & Noble 33 E 17th St 40.73703 -73.98954 Bookstore 286 31158 69345 8.9 1969
New York, NY 49e63a33f964a52023641fe3 McNally Jackson Books 52 Prince St 40.72337 -73.99602 Bookstore 301 12619 28528 9.5 1829
New York, NY 4b0ff4a0f964a520b16623e3 Barnes & Noble 555 5th Ave 40.75574 -73.97894 Bookstore 138 16323 24723 8.8 1567
Washington, DC 40b3de00f964a5202b001fe3 Kramerbooks & Afterwords Cafe 1517 Connecticut Ave NW 38.9108 -77.0437 Bookstore 323 16591 29010 9.1 1431
Los Angeles, CA 4dee93a0d4c019425301dd4e The Last Bookstore 453 S Spring St 34.04762 -118.24985 Bookstore 157 9757 13939 9.5 1175
Boston, MA 4150c0
rank area venue_name rating rating_signals
1 New York, NY Strand Bookstore 9.6 4218
2 Portland, OR Powell's City of Books 9.6 3517
3 New York, NY Barnes & Noble 8.9 1969
4 New York, NY McNally Jackson Books 9.5 1829
5 New York, NY Barnes & Noble 8.8 1567
6 Washington, DC Kramerbooks & Afterwords Cafe 9.1 1431
7 Los Angeles, CA The Last Bookstore 9.5 1175
8 Boston, MA Trident Booksellers & Cafe 9.1 1114
9 New York, NY Books Kinokuniya 9.5 1109
area venue_name rating rating_signals
New York, NY Strand Bookstore 9.6 4218
Portland, OR Powell's City of Books 9.6 3517
Seattle, WA Elliott Bay Book Company 9.6 745
San Francisco, CA Green Apple Books 9.6 516
San Francisco, CA Dog Eared Books 9.6 493
Brooklyn, NY Greenlight Bookstore 9.6 435
New York, NY McNally Jackson Books 9.5 1829
Los Angeles, CA The Last Bookstore 9.5 1175
New York, NY Books Kinokuniya 9.5 1109
http://favobooks.com/enterpreneurs/110-Larry-Page-books-that-stimulate-your-mind.html
http://favobooks.com/enterpreneurs/47-steve-jobs.html
http://favobooks.com/enterpreneurs/60-jeff-bezos.html
https://en.wikipedia.org/wiki/Mark_Zuckerberg_book_club
We can't make this file beautiful and searchable because it's too large.
name_of_satellite_and_alternate_names,country_org_of_un_registry,country_of_operator_owner,operator_owner,users,purpose,detailed_purpose,class_of_orbit,type_of_orbit,longitude_of_geo_degrees,perigee_km,apogee_km,eccentricity,inclination_degrees,period_minutes,launch_mass_kg,dry_mass_kg,power_watts,date_of_launch,date_of_launch_unparsed,expected_lifetime,contractor,country_of_contractor,launch_site,launch_vehicle,cospar_number,norad_number,comments,source_used_for_orbital_data,source,source_2,source_3,source_4,source_5,source_6
Aalto-1,Finland,Finland,University of Aalto,Civil,Technology Development,,LEO,,0,497,517,0.0014541224371092047011611025908450756105594336986541748046875,97.4500000000000028421709430404007434844970703125,94.7,4.5,,4.5,2017-06-23T00:00:00,2017-06-23 00:00:00-04:00,2.0,University of Aalto,Finland,Satish Dhawan Space Centre,PSLV,2017-036L,42775.0,Technology development and education.,JMSatcat/10_17,https://directory.eoportal.org/web/eoportal/satellite-missions/a/aalto-1,http://www.planet458
// rename ki image
// set iX and iY values to the dimensions of the image
int iX = 500;
int iY = 300;
float sY = 3.0;
// larger sY value = less vertical displacement
import processing.svg.*;
float[][] imageArray;