Skip to content

Instantly share code, notes, and snippets.

View rwieruch's full-sized avatar
👋
Hi there!

Robin Wieruch rwieruch

👋
Hi there!
View GitHub Profile
@rwieruch
rwieruch / data.tsv
Last active October 16, 2022 16:32
Apple Health Line Chart
date rate
1-Jan-15 210.73
1-Dec-14 196.97
1-Nov-14 189.31
1-Oct-14 180.86
1-Sep-14 165.30
1-Aug-14 166.43
1-Jul-14 142.83
1-Jun-14 139.35
1-May-14 127.24
@rwieruch
rwieruch / data.tsv
Created December 31, 2014 13:14
Apple Health Bar Chart
date rate
1-Jan-15 210.73
1-Dec-14 196.97
1-Nov-14 189.31
1-Oct-14 180.86
1-Sep-14 165.30
1-Aug-14 166.43
1-Jul-14 142.83
1-Jun-14 139.35
1-May-14 127.24
@rwieruch
rwieruch / index.html
Last active August 29, 2015 14:12
D3 on Angular: Small Multiples with Brushing (click to undo brush)
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 12px sans-serif;
}
.background {
fill: url(#background-gradient);
@rwieruch
rwieruch / index.html
Created April 3, 2015 14:54
D3 on Angular: Reusable Components (click and drag to brush, click to remove brush)
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 12px sans-serif;
}
.background {
fill: url(#background-gradient);
@rwieruch
rwieruch / gist:a8c42602fc4e21c7081f83d492f14714
Created June 5, 2018 08:22
Upgrade Hugo on Ubuntu Digital Ocean
hugo version
sudo apt-get remove hugo
wget https://github.com/gohugoio/hugo/releases/download/v0.41/hugo_0.41_Linux-64bit.deb
sudo dpkg -i hugo*.deb
hugo version
@rwieruch
rwieruch / example.com
Created May 25, 2019 11:57
HTTPS Static Website
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
~image/ max;
}
server {
@rwieruch
rwieruch / example.com
Created May 25, 2019 11:57
HTTP Static Website
server {
listen 80;
listen [::]:80;
root /var/www/example.com/html/production;
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
location / {
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" />
</svg>