Skip to content

Instantly share code, notes, and snippets.

View martinsykora's full-sized avatar
🌴
On vacation

Martin Sykora martinsykora

🌴
On vacation
View GitHub Profile
@scott2b
scott2b / twitter_searcher.py
Last active January 26, 2019 18:26
TwitterSearcher. Class to manage aggressive Twitter API searching with the birdy AppClient.
import logging
import time
import urlparse
from birdy.twitter import AppClient
from birdy.twitter import TwitterRateLimitError, TwitterClientError
from delorean import parse, epoch
"""
Utilization:
searcher = TwitterSearcher(
TWITTER_CONSUMER_KEY,
@socratescli
socratescli / python-dtw.py
Created August 5, 2012 16:25
Simple DTW(Dynamic time wrapping) in python
# -*- coding: utf-8 -*-
# An pure python implemetation of Dynamic Time Warpping
# http://en.wikipedia.org/wiki/Dynamic_time_warping
class Dtw(object):
def __init__(self, seq1, seq2, distance_func=None):
'''
seq1, seq2 are two lists,
distance_func is a function for calculating
@ssokolow
ssokolow / boilerplate.py
Last active January 8, 2022 17:43
Python boilerplate from which I start all my projects
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""[application description here]"""
__appname__ = "[application name here]"
__author__ = "Stephan Sokolow (deitarion/SSokolow)"
__version__ = "0.0pre0"
__license__ = "GNU GPL 3.0 or later"
import logging