Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jelmerdemaat's full-sized avatar

Jelmer jelmerdemaat

View GitHub Profile
@jelmerdemaat
jelmerdemaat / customizr-modernizr.js
Created March 8, 2020 13:27
Customizr build Modernizr v3.9.1 - test for adding classes when testing input types
/*!
* modernizr v3.9.1
* Build https://modernizr.com/download?-inputtypes-setclasses-dontmin
*
* Copyright (c)
* Faruk Ates
* Paul Irish
* Alex Sexton
* Ryan Seddon
* Patrick Kettner
html::before,
html::after {
display: none;
}
html::before {
content: to-string($breakpoints);
}
html::after {
@jelmerdemaat
jelmerdemaat / sw.js
Created March 22, 2017 07:41
Service worker example
self.addEventListener('install', function(event) {
event.waitUntil(
caches.open('sw-v1').then(function(cache) {
return cache.addAll([
'./',
'style.css',
'main.js'
]);
})
);
@jelmerdemaat
jelmerdemaat / lijst.md
Last active February 6, 2017 09:22
Vaak gebruikte jQuery methods
@jelmerdemaat
jelmerdemaat / lijst.md
Created February 3, 2017 14:44
Meest gebruikte jQuery stuff
@jelmerdemaat
jelmerdemaat / easing.js
Created June 17, 2016 10:27 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@jelmerdemaat
jelmerdemaat / html.html
Last active April 7, 2016 08:06
Test markdown
<p>
<strong>Bold</strong>
<strong>Bold</strong>
</p>
<p>
<em>Italic</em>
<em>Italic</em>
</p>
<img
src="my-cat.jpg"
srcset="my-cat-1-5x.jpg 1.5x, my-cat-2x.jpg 2x, my-cat-3x.jpg 3x"
alt="My cat in the garden">
events: [
{
day: 5,
month: "december",
events: [
{
title: "Sinterklaas",
metadata: "Leuk feestje bij Netvlies ter onvangst van de Sint"
},
{
@jelmerdemaat
jelmerdemaat / truths.md
Last active November 24, 2015 21:27
The Four Truths ©

Below are my Four Truths ©, derived from the front-end work I've done in the past years. Although presented as “facts”, I recognize the need for (differences in) interpretation and perspective. Please share your comments if you have them.

One

All web pages are by default responsive.

Breaking that is a choice. Example: http://motherfuckingwebsite.com/

Actually, it's strange that “responsive” is the different one. Normal websites are responsive. It's the ones that aren't that should be called non-responsive, or “fixed”. For example, when talking about it in sales.

Two