I hereby claim:
- I am jkempff on github.
- I am jkempff (https://keybase.io/jkempff) on keybase.
- I have a public key ASDh5BGIDyJlv3-XDUjNxGPZENNpe8qfHYLEjbc6w2orpwo
To claim this, I am signing this object:
function schonfinkelize (fn) { | |
var slice = Array.prototype.slice, | |
defaults = slice.call(arguments,1); | |
return function () { | |
var new_args = slice.call(arguments), | |
args = defaults.concat(new_args); | |
return fn.apply(null,args); | |
} | |
} |
/*global jQuery: false, setInterval: false*/ | |
(function ($) { | |
"use strict"; | |
setInterval(function () { | |
$('blink').each(function () { | |
$(this).css('visibility', ($(this).css('visibility') === 'hidden' ? 'visible' : 'hidden')); | |
}); | |
}, 250); | |
}(jQuery)); |
/*doc | |
--- | |
title: Grid System | |
name: grid | |
category: base | |
--- | |
A very basic grid system that supports **2-, 3-, 4- and 5-column** layouts. | |
Inspired by [oocss](http://oocss.org/). |
--- | |
Name: my-config | |
After: | |
- 'framework/*' | |
- 'cms/*' # this is optional | |
--- | |
# Simply set the `AdminRootController`s `default_panel` | |
# to your own controller or ModelAdmin | |
AdminRootController: | |
default_panel: 'MyModelAdmin' |
var fetchWithCache = (function () { | |
var cache = {}; | |
const doFetch = (url, options) => { | |
return cache[url] ? cache[url] : cache[url] = fetch(url, options) | |
.then(response => response.json()); | |
}; | |
doFetch.flush = () => (cache = {}, true); | |
return doFetch; | |
}()); |
I hereby claim:
To claim this, I am signing this object:
/** | |
* EventRecorder | |
* @class | |
* @classdesc An EventRecorder can record and replay any event on any DOM node | |
* @param {string} [eventName=click] - Name of the events to record | |
* @param {class} [EventClass=MouseEvent] - The class that should be used to recreate the events | |
* @param {object} [context=self] - The context DOM element, the events should be fetched from | |
* @example | |
* // Create a recorder for click events | |
* const clickRecorder = new EventRecorder('click', MouseEvent, window); |
derkonzert community | |
View Concerts | |
add-new -> Add Concert | |
Add Concert | |
Enter Name | |
enter-name -> Enhance Concert Data | |
enter-existing-name -> Concert might already be present | |
Enhance Concert Data | |
enhance-concert-data -> Enhance Concert Data |
async function* eventIterator(element, eventName, subscribed) { | |
while(true) { | |
yield new Promise(resolve => { | |
const listener = e => { | |
element.removeEventListener(eventName, listener); | |
resolve(e); | |
}; | |
element.addEventListener(eventName, listener); | |
}) |