Skip to content

Instantly share code, notes, and snippets.

title city longitude latitude timezone dx dy
Laurence Rennes -1.6833 48.0833 Europe/Paris -15 30
Michael London -0.127758 51.507351 Europe/London -150 0
Richard Newcastle -1.617780 54.978252 Europe/London 40 -20
Gregor Hong Kong 114.109497 22.396427 Asia/Hong_Kong 50 -5
Anirvan Bengaluru 77.594566 12.971599 Asia/Calcutta -20 10
Krithika Bangkok 100.501762 13.756331 Asia/Bangkok 5 30
Jason Seoul 126.977966 37.566536 Asia/Seoul -10 -30
@laurencedorman
laurencedorman / file.liquid
Created September 3, 2019 13:42 — forked from veganista/file.liquid
Debugging Objects in Shopify Templates
<script>console.log({{ product | json }});</script>
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
ID;Région;2007;2008;2009;2010;2011
AT11;Burgenland (AT);1.60;-0.10;1.60;-0.10;1.60
AT12;Niederösterreich;1.20;-0.10;1.20;-0.10;1.20
AT13;Wien;2.00;-0.10;2.00;-0.10;2.00
AT21;Kärnten;1.20;-0.20;1.20;-0.20;1.20
AT22;Steiermark;1.00;-0.20;1.00;-0.20;1.00
AT31;Oberösterreich;1.00;-0.30;1.00;-0.30;1.00
AT32;Salzburg;-0.10;-0.30;-0.10;-0.30;-0.10
AT33;Tirol;0.50;-0.30;0.50;-0.30;0.50
AT34;Vorarlberg;-0.70;-0.30;-0.70;-0.30;-0.70
NUTS_ID_2 Régions 2018/2008
BE10 Région de Bruxelles-Capitale 14.97%
BE21 Prov. Antwerpen 7.80%
BE22 Prov. Limburg (BE) 5.57%
BE23 Prov. Oost-Vlaanderen 6.94%
BE24 Prov. Vlaams-Brabant 7.39%
BE25 Prov. West-Vlaanderen 3.63%
BE31 Prov. Brabant Wallon 7.50%
BE32 Prov. Hainaut 3.36%
BE33 Prov. Liège 5.19%
ID Région Taux de chômage, différence entre 2016 et 2007 (en points de %)
AT11 Burgenland (AT) 1.60
AT12 Niederösterreich 1.20
AT13 Wien 2.00
AT21 Kärnten 1.20
AT22 Steiermark 1.00
AT31 Oberösterreich 1.00
AT32 Salzburg -0.10
AT33 Tirol 0.50
AT34 Vorarlberg -0.70
@laurencedorman
laurencedorman / factory-function-for-mixin-composition.js
Created February 15, 2019 08:32
Factory Functions for Mixin Composition
// See https://medium.com/javascript-scene/javascript-factory-functions-with-es6-4d224591a8b1
const pipe = (...fns) => x => fns.reduce((y, f) => f(y), x);
const withConstructor = constructor => o => ({
// create the delegate [[Prototype]]
__proto__: {
// add the constructor prop to the new [[Prototype]]
constructor
},
@laurencedorman
laurencedorman / event-emitter-mixin.js
Created November 22, 2018 09:06 — forked from ericelliott/event-emitter-mixin.js
Event emitter mixin for ES6
import Events from 'eventemitter3';
const object = {};
Object.assign(object, Events.prototype);
object.on('event', payload => console.log(payload));
object.emit('event', 'some data'); // 'some data'
@laurencedorman
laurencedorman / index.html
Last active November 7, 2018 09:45
Dorling Circle
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>les-habitants-des-departements-ruraux-sont-les-mieux-dotes</title>
<link rel="stylesheet" href="https://data.alternatives-economiques.fr/assets/css/style.css">
<style>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
@laurencedorman
laurencedorman / drupal-debug-backtrace.php
Last active November 15, 2017 09:38
Drupal stack trace debug
<?php
variable_set('error_level', 1);
dpm(ddebug_backtrace(TRUE));
variable_set('error_level', 0);