Skip to content

Instantly share code, notes, and snippets.

View kennyLtv's full-sized avatar

Kenny Lindelof kennyLtv

View GitHub Profile
@kennyLtv
kennyLtv / new_gist_file.js
Created February 14, 2018 20:55 — forked from nmsdvid/new_gist_file.js
Simple JavaScript Debounce Function
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
clearTimeout(timeout);
@kennyLtv
kennyLtv / README-Template.md
Created May 18, 2017 18:46 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites