Skip to content

Instantly share code, notes, and snippets.

View VITIMan's full-sized avatar

VITI VITIMan

  • ¡Murcia!
View GitHub Profile
@VITIMan
VITIMan / waitrequests.js
Last active November 3, 2015 08:52
Jquery :: Wait until all requests are done
var requests = [];
Object.keys(sources).forEach(function(key){
requests.push(someAjaxAsyncRequest(arguments));
});
$.when.apply($, requests).done(function() {
console.log(arguments);
$.each(arguments, function (i, data) {
// By method
console.log(data);
});
@VITIMan
VITIMan / date_range_iterator.py
Last active August 23, 2017 14:00
Date Range Iterator in minutes
# python imports
import datetime
RANGE_TIME = 15
def date_range_iterator(start_date, end_date, delta=None):
""" Iterator for date ranges, given an start_date, end_date and an
optional delta (the range)

Keybase proof

I hereby claim:

  • I am vitiman on github.
  • I am vitiman (https://keybase.io/vitiman) on keybase.
  • I have a public key whose fingerprint is 1509 C29C 34BF A349 D33C 4BF5 00A9 75A0 96BE E609

To claim this, I am signing this object: