Skip to content

Instantly share code, notes, and snippets.

Jacob Groß kurtextrem

Block or report user

Report or block kurtextrem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kurtextrem
kurtextrem / debounce.js
Created Oct 5, 2016
Simple and small Throttle & debounce functions
View debounce.js
// no leading call, only trailing
function debounce(callback, timeout, _time) {
timeout = timeout || 100;
return function debounce() {
window.clearTimeout(_time);
_time = window.setTimeout(callback, timeout);
}
}
@kurtextrem
kurtextrem / index.js
Created Jul 30, 2016
Throttle Function
View index.js
function on_resize(namespace, callback, t) {
$(window).on('resize.' + namespace, function () {
clearTimeout(t);
t = setTimeout(callback, 100);
});
return callback;
}
@kurtextrem
kurtextrem / fast-bind.js
Created Dec 23, 2015 — forked from WebReflection/fast-bind.js
Function.prototype.bind is slow in JS, so we fix it plus we have great compatibility (at least for 90% of common cases without partial args)
View fast-bind.js
+function(proto, Object) {
'use strict'
var originalBind = proto.bind
Object.defineProperty(proto, 'bind', {
value: function bind(context) {
var callback = this
return arguments.length === 1 ? function () { return callback.apply(context, arguments) } : originalBind.apply(callback, arguments)
}
})
}(Function.prototype, Object)
View dabblet.css
@keyframes parade{
0% {
}
50% {
left: -100px;
transform: rotate(-50deg);
}
75% {
}
100% {
View dabblet.css
#torwart {
position: relative;
top: -20.5em;
left: 13.5em;
}
#torwart > img {
height: 14em;
}
@kurtextrem
kurtextrem / dabblet.css
Created Jan 8, 2012
The left part of the background:
View dabblet.css
.clock{
/* The .clock div. Created dynamically by jQuery */
background-color:#252525;
height:200px;
width:200px;
position:relative;
overflow:hidden;
float:left;
}
View dabblet.css
@import url('http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css');
@import url('http://fonts.googleapis.com/css?family=Handlee');
body {
background: url('img/noise.png');
}
#usermenu {
position: absolute;
right: 0;
left: auto !important;
You can’t perform that action at this time.