Skip to content

Instantly share code, notes, and snippets.

View abhaystoic's full-sized avatar
👨‍💻

Abhay Gupta abhaystoic

👨‍💻
View GitHub Profile
const debounce = (func, delay) => {
let stop = false;
return (...args) => {
if (stop) {
setTimeout(() => {
stop = false;
}, 2000);
} else {
func(...args);
stop = true;
@abhaystoic
abhaystoic / web_scraper2.py
Last active January 16, 2018 19:54
New improved web scraper | Python | Selenium | BeautifulSoup | PhantomJS
# -*- coding: utf-8 -*-
'''
Created on May 27, 2016
@author: abgupta
'''
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import time, sys, traceback
from HTMLParser import HTMLParser
# -*- coding: utf-8 -*-
'''
Created on May 27, 2016
@author: abgupta
'''
from selenium.webdriver import Firefox
from selenium.webdriver.support.ui import WebDriverWait
import time, sys, traceback
from HTMLParser import HTMLParser
@abhaystoic
abhaystoic / data_mining.py
Last active May 13, 2016 09:52
A prototype to track human movement
__author__ = 'Abhay Gupta'
__version__ = 0.1
import pyhs2
import time
import MySQLdb
import datetime
import sys
import pytz