Skip to content

Instantly share code, notes, and snippets.

Avatar

Kees de Kooter kdekooter

View GitHub Profile
View gist:b0c8fbf0a8df768dde614ed6f36a6db2
### Keybase proof
I hereby claim:
* I am kdekooter on github.
* I am keesdekooter (https://keybase.io/keesdekooter) on keybase.
* I have a public key ASD0vD-Z96r9YPZ1m9k-nvKEyrwrnv-70FSQzz0IBYE_vAo
To claim this, I am signing this object:
View hotjar-question.js
const Gender = Object.freeze({MALE: 'male', FEMALE: 'female'})
let people = [
{name: 'Bob', gender: Gender.MALE, age: 34},
{name: 'Maria', gender: Gender.FEMALE, age: 34}
]
function getMales30to40(source) {
return source.filter(person => person.gender === Gender.MALE && person.age >= 30 && person.age <= 40)
}
View test.html
<html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.15/proj4.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<script type="text/javascript">
var firstProjection = 'WGS84';
// See http://www.spatialreference.org/ref/epsg/28992/proj4/
var secondProjection = '+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs';
View gist:44933e12500f0c0f3a32d875b7031e1f
Verifying that +kdekooter is my blockchain ID. https://onename.com/kdekooter