Skip to content

Instantly share code, notes, and snippets.

View jelmerdemaat's full-sized avatar

Jelmer jelmerdemaat

View GitHub Profile
@jelmerdemaat
jelmerdemaat / README.md
Last active October 10, 2024 08:40
Custom drush command to find project specific drush binary inside vendor folder

Install instructions

  1. Create file: sudo touch /usr/local/bin/drush
  2. Make file executable: sudo chmod +x /usr/local/bin/drush
  3. Open the file, and copy and paste the script to it, save it.
@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"
},
{