Example result:
- Add your background images into a ‘background folder’
- Copy the code in an .html file next to this folder, and start a web server here.
#!/bin/bash | |
FILE=$(echo pingstats-$(date '+%Y-%m-%d-%H-%M').csv) | |
echo "datetime,min,avg,max,stddev" > ${FILE} | |
while true | |
do | |
NOW=$(date -u +"%Y-%m-%d %H:%M:%S") | |
# retrieve data from ping: min,avg,max,stddev | |
VALUES=$(ping -c 4 steren.fr | tail -1 | awk '{print $4}' | sed 's/\//,/g') | |
echo "${NOW},${VALUES}" >> ${FILE} |
I really liked how Duminda Perera showcased her colors in "Minimalist Color Palettes 2015" https://www.behance.net/gallery/32154055/Minimalist-Color-Palettes-2015. I decided to use this palette showcase technique to with the theme of my wedding.
public class Application extends Controller { | |
@Catch(value={Exception.class}) | |
public static void onException(Exception ex) { | |
StringWriter exceptionWriter = new StringWriter(); | |
ex.printStackTrace(new PrintWriter(exceptionWriter)); | |
Map<String, Object> payload = new HashMap<String, Object>(); | |
payload.put("message", exceptionWriter.toString()); | |
Map<String,String> serviceContextData = new HashMap<String, String>(); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Steren Giannini, portfolio</title> | |
<meta name="description" content="Hello, WebVR! - A-Frame"> | |
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script> | |
</head> | |
<body> | |
<a-scene> | |
<a-assets> |
# Analyse impact of https://github.com/golang/go/issues/21463 | |
# using BigQuery GitHub public dataset. | |
# To run on the entire GitHub corpus, | |
# remove the `sample_` prefix from the table names. | |
# Warning: This query processes ~2.2 TB of data, which is above BigQuery free quota. | |
SELECT | |
applies, | |
COUNT(*) AS cnt |
{ | |
"name": "web-thumbnails", | |
"version": "1.0.0", | |
"engines": { | |
"node": "^8.4.0" | |
}, | |
"description": "Generate thumbnails of web pages", | |
"main": "server.js", | |
"scripts": { | |
"start": "node server.js", |
runtime: nodejs8 |
const express = require('express'); | |
const app = express(); | |
const bunyan = require('bunyan'); | |
const {LoggingBunyan} = require('@google-cloud/logging-bunyan'); | |
const loggingBunyan = new LoggingBunyan(); | |
const project = 'steren-test'; |