Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
Hi there! Do you need help with JavaScript?

Robin Wieruch rwieruch

👋
Hi there! Do you need help with JavaScript?
View GitHub Profile
@rwieruch
rwieruch / example.com
Created May 25, 2019
HTTP Static Website
View example.com
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 / {
@rwieruch
rwieruch / example.com
Created May 25, 2019
HTTPS Static Website
View example.com
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
~image/ max;
}
server {
@rwieruch
rwieruch / gist:a8c42602fc4e21c7081f83d492f14714
Created Jun 5, 2018
Upgrade Hugo on Ubuntu Digital Ocean
View gist:a8c42602fc4e21c7081f83d492f14714
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 / index.html
Created Apr 3, 2015
D3 on Angular: Reusable Components (click and drag to brush, click to remove brush)
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 12px sans-serif;
}
.background {
fill: url(#background-gradient);
@rwieruch
rwieruch / index.html
Last active Aug 29, 2015
D3 on Angular: Small Multiples with Brushing (click to undo brush)
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 12px sans-serif;
}
.background {
fill: url(#background-gradient);
@rwieruch
rwieruch / data.tsv
Created Dec 31, 2014
Apple Health Bar Chart
View data.tsv
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
Last active Jan 23, 2017
Apple Health Line Chart
View data.tsv
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