Skip to content

Instantly share code, notes, and snippets.

View lennerd's full-sized avatar
🤓

Lennart Hildebrandt lennerd

🤓
View GitHub Profile
@stoimen
stoimen / uniq.js
Created May 4, 2015 13:16
JavaScript Array Unique
array.filter(function(elem, index, self) {
return self.indexOf(elem) === index;
});
@RubaXa
RubaXa / jquery.event.scroll.js
Last active December 17, 2015 06:58
jQuery extension, add support `scrollstart` and `scrollend` events.
/**
* jQuery extension, add support `scrollstart` and `scrollend` events.
*
* @author RubaXa <trash@rubaxa.org>
* @github https://gist.github.com/RubaXa/5568964
* @license MIT
*
*
* @settings
* $.special.scrollend.delay = 300; // default ms
@domenic
domenic / di-in-requirejs.js
Created October 10, 2011 04:05
Dependency injection sample with RequireJS
// EntryPoint.js
define(function () {
return function EntryPoint(model1, model2) {
// stuff
};
});
// Model1.js
define(function () {
return function Model1() {
@marijn
marijn / README.markdown
Last active July 12, 2024 16:18
List of countries in YAML, CSV and TXT format