Skip to content

Instantly share code, notes, and snippets.

View nerik's full-sized avatar
🤩

Erik Escoffier nerik

🤩
View GitHub Profile
year gdp lifeExpectancy population
1951 1170 27.878 7571542
1952 1189 28.361 7667534
1953 1240 28.852 7764549
1954 1245 29.35 7864289
1955 1246 29.854 7971933
1956 1278 30.365 8087730
1957 1253 30.882 8210207
1958 1298 31.403 8333827
1959 1307 31.925 8468220
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nerik
nerik / index.html
Last active March 27, 2020 14:55
PoqXzZJ
hello!
HELLO!
var path = require('path')
var express = require('express')
var app = express()
var cors = require('cors')
const PORT = 9090
console.log(`on port ${PORT}`)
app.use(cors())
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"workspace": {
"map": {
"center": [
10.026,
12.62
],
"zoom": 4,
"layers": [
{
// ES6 allows multiline strings with backticks, and it is natively available on all browsers except IE
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
// just changing the docs to promote using ES6 by default (with an ES5 fallback) would already help a great deal
var countriesStyle = new carto.style.CartoCSS(`
#layer {
polygon-fill: #333333;
}
`);