Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am benelsen on github.
  • I am benelsen (https://keybase.io/benelsen) on keybase.
  • I have a public key whose fingerprint is 9524 7B66 F323 49CA FFD2 701C E3FD 2168 3BDA 2FC1

To claim this, I am signing this object:

We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 13 columns, instead of 5. in line 5.
"commune","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2012","2011"
"Dippach",1.87454938716655,1.56695156695157,2.33676975945017,3.5883547731889,3.45285524568393,4.14507772020725,3.27763496143959,4.14540816326531,5.12345679012346,4.15902140672783,4.43293033966609,5.14184397163121
"Garnich",1.65016501650165,1.35363790186125,2.33333333333333,2.42718446601942,2.91858678955453,2.60736196319018,2.42057488653555,2.37037037037037,2.42424242424242,2.88808664259928,2.86368843069874,2.70588235294118
"Hobscheid",1.74537987679671,2.75590551181102,2.71790065604499,4.52930728241563,3.46921075455334,4.51882845188285,3.29052969502408,3.39110776186888,4.64944649446494,3.80747126436782,4.23497267759563,3.49406009783368
"Käerjeng",2.16585921915076,2.38683127572016,2.61224489795918,3.45285524568393,4.08006158583526,4.01218892839005,3.55266449837378,3.8423645320197,5.33172496984318,5.16912815626489,5.6221198156682,5.40856942168111
"Kehlen",1.49418926397344,2.37175951461666,2.45499181669394,2.683843263553
@benelsen
benelsen / goce.csv
Created October 23, 2013 20:28
GOCE orbit altitude since 2009
date T a apoapsis periapsis
1237320576406 5408.6 281.556 290.458 272.655
1237325988792 5408.6 281.521 290.315 272.727
1237331401175 5408.6 281.488 290.218 272.758
1237353050380 5408.4 281.354 290.228 272.480
1237380111540 5408.5 281.470 290.415 272.525
1237412585511 5408.4 281.331 290.280 272.383
1237417997452 5408.3 281.290 290.222 272.359
1237439645619 5408.2 281.223 290.199 272.247
1237461293541 5408.2 281.178 290.257 272.099
[
{
"COMMENT": "GENERATED VIA SPACETRACK.ORG API",
"ORIGINATOR": "JSPOC",
"NORAD_CAT_ID": "34602",
"OBJECT_NAME": "GOCE",
"OBJECT_TYPE": "PAYLOAD",
"CLASSIFICATION_TYPE": "U",
"INTLDES": "09013A",
"EPOCH": "2013-10-20 03:07:28",
#!/usr/bin/env zsh
tempfile=/tmp/${${2##*/}%.*}.temp.tiff
# pi=3.1415926536
# h=35785831.00 # default
# h=35939462.66
h=35862958.67 # <- correct
# r_a=35000.0
@benelsen
benelsen / proj.rb
Last active May 16, 2017 20:41
Winkel-Tripel with GDAL2

Requires gdal2:

brew install osgeo/osgeo4mac/gdal2
export PATH="/usr/local/opt/gdal2/bin:$PATH" # or just use /usr/local/opt/gdal2/bin/gdalwarp

And a build of bleeding-edge version of proj:

brew reinstall proj.rb --HEAD
### Keybase proof
I hereby claim:
* I am benelsen on github.
* I am benelsen (https://keybase.io/benelsen) on keybase.
* I have a public key ASD2VcS5bOcmuU3tTZqB2p3qrkbnb9nRn5zW8FO_I4Facgo
To claim this, I am signing this object:
# setup
# import Pkg;
# Pkg.pkg"add Makie#master PlotUtils GeoInterface GeoJSON"
using Makie
using GeoInterface, GeoJSON
using PlotUtils
using Proj4
states = download("https://raw.githubusercontent.com/PublicaMundi/MappingAPI/master/data/geojson/us-states.json")
@benelsen
benelsen / venues.csv
Created October 15, 2019 15:16
Baseball Venues
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 16 columns, instead of 1. in line 9.
venue,venue_id,venue_w_chan_loc,location,home_team_name,home_team_id,home_code,home_division,home_league_id,home_name_abbrev,home_sport_code,roof,longitude,latitude,altitude,direction
Tokyo Dome,2397,JAXX0085,"Tokyo, JP",,,,,,,,dome,139.751892,35.705588,8,
Nationals Park,3309,USDC0001,"Washington, DC",Nationals,120,was,E,104,WSH,mlb,open,-77.007716,38.872576,2,29
Yankee Stadium,3313,USNY0172,"Bronx, NY",Yankees,147,nya,E,103,NYY,mlb,open,-73.926949,40.829489,4,75
Miller Park,32,USWI0455,"Milwaukee, WI",Brewers,158,mil,C,104,MIL,mlb,roof,-87.971642,43.028436,188,130
Citizens Bank Park,2681,USPA1276,"Philadelphia, PA",Phillies,143,phi,E,104,PHI,mlb,open,-75.166592,39.905584,-2,9
Rogers Centre,14,CAXX0504,"Toronto, ON",Blue Jays,141,tor,E,103,TOR,mlb,roof,-79.389181,43.641682,83,
Tropicana Field,12,USFL0438,"St. Petersburg, FL",Rays,139,tba,E,103,TB,mlb,dome,-82.653453,27.768110,14,
Globe Life Park in Arlington,13,USTX0045,"Arlington, TX",Rangers,140,tex,W,103,TEX,mlb,open,-97.082997,32.751593,165,135
Oakland Co
@benelsen
benelsen / block.txt
Last active December 22, 2019 16:30
Let's block it
# Comments
tageblatt.lu###comments
wort.lu###wort-comments
rtl.lu###comments
rtl.lu##.article--comments
rtl.lu##.card__comments
lessentiel.lu###talkback