Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hpfast
hpfast / server_simple.js
Created April 4, 2019 08:54 — forked from johnschimmel/server_simple.js
Simple NodeJS web server example
/************************************************
FILENAME
server_simple.js
DESCRIPTION
creates a simple web server that
displays translations of requested words
HOW TO START SERVER:
1) from terminal run 'node simple_server.js'
(function (exports) {
'use strict';
function unwrapExports (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
@hpfast
hpfast / .block
Last active February 8, 2018 14:40
Canvas tutorial - Turn SVG scatterplot into Canvas - Normal level
license: mit
@hpfast
hpfast / .block
Last active February 8, 2018 13:26
fresh block
license: mit
@hpfast
hpfast / .block
Last active February 8, 2018 13:15
Aardbevingen NL - DatavizFest
license: mit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A basic map with MapboxGL.js</title>
<!--add MapboxGLjs CSS-->
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.0/mapbox-gl.css' rel='stylesheet' />
<!--our own style rules-->
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>VISdata - PDOK</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="img/pdok_favicon.ico">
<link rel="stylesheet" href="css/mapbox-gl.css">
<link rel="stylesheet" href="css/main.css">
@hpfast
hpfast / index.html
Last active February 6, 2018 16:19
simple mapbox-gl viewer
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>VISdata - PDOK</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="img/pdok_favicon.ico">
<link rel="stylesheet" href="css/mapbox-gl.css">
<link rel="stylesheet" href="css/main.css">