This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function atTo$(data) { | |
if (Array.isArray(data)) { | |
return data.map(d => atTo$(d)) | |
} else if (typeof data === 'object' && data != null) { | |
return Object.fromEntries(Object.entries(data).map(d => { | |
d[0] = d[0].replace(/^@/, '$') | |
return atTo$(d) | |
})) | |
} | |
return data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from argparse import ArgumentParser | |
from glob import glob | |
from PyPDF2 import PdfFileReader, PdfFileWriter | |
def PDF_cat(files, output_filename, skipfirstpage, skiplastpage): | |
# First open all the files, then produce the output file, and | |
# finally close the input files. This is necessary because | |
# the data isn't read from the input files until the write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for f in DP2Q*.*; do | |
ts="$(GetFileInfo -d "$f")" | |
e="$(date -j -f "%m/%d/%Y %H:%M:%S" "$ts" +%s)" | |
((o=60*60*24*60-27120)) | |
((e+=o)) | |
nd="$(date -r $e "+%m/%d/%Y %H:%M:%S")" | |
SetFile -m "$nd" "$f" | |
SetFile -d "$nd" "$f" | |
done |
A d3js implementation of weather radials infographics. Data from WU.
The temperatures are represented by bars and the precipitations by circles.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
height: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jahr | Herkunft | Anzahl | |
---|---|---|---|
1901 | Schweizerinnen und Schweizer | 108291 | |
1901 | Ausländerinnen und Ausländer | 42010 | |
1902 | Schweizerinnen und Schweizer | 110707 | |
1902 | Ausländerinnen und Ausländer | 43034 | |
1903 | Schweizerinnen und Schweizer | 112915 | |
1903 | Ausländerinnen und Ausländer | 45804 | |
1904 | Schweizerinnen und Schweizer | 115612 | |
1904 | Ausländerinnen und Ausländer | 48448 | |
1905 | Schweizerinnen und Schweizer | 117236 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script> | |
<style type="text/css"> | |
#map { height: 400px; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script> | |
<style type="text/css"> | |
#map { height: 400px; } |