Skip to content

Instantly share code, notes, and snippets.

View sheltonial's full-sized avatar

Andrew Shelton sheltonial

  • Tennis Australia
View GitHub Profile
@sheltonial
sheltonial / debounce-service_test.js
Last active August 29, 2015 14:18
angular debounce service tests
/*
The following code tests functionality for the following angular implementation of debounce:
http://stackoverflow.com/a/13320016/2415971
app.factory('debounce', ['$timeout','$q', function($timeout, $q) {
return function debounce(func, wait, immediate) {
var timeout;
var deferred = $q.defer();
return function() {
var context = this, args = arguments;
[Adblock Plus 2.0]
! Version:
! Title: My Personal Filter List
! Last modified:
! Expires: 7 days (update frequency)
! Homepage:
!
! block home page videos
m.youtube.com##.tab-content[tab-title="Home"]