I hereby claim:
- I am paveldedik on github.
- I am paveldedik (https://keybase.io/paveldedik) on keybase.
- I have a public key ASDW3LdZwY53j745qa2lqbZM8bxjUJLjpO98LdZ8HpmDIwo
To claim this, I am signing this object:
""" | |
How to run: | |
$ python gof.py & | |
$ watch -n 0.1 cat epoch.txt | |
""" | |
import time |
I hereby claim:
To claim this, I am signing this object:
# ----------------------------------------------- | |
# Algorithms for solving string matching problems | |
# ----------------------------------------------- | |
def automaton(p, abc): | |
"""Builds DFA using pattern p and alphabet abc.""" | |
m = len(p) | |
d = {} | |
for q in range(m+1): | |
for a in abc: |
import certifi | |
import urllib3.contrib.pyopenssl | |
from urllib3.connectionpool import connection_from_url | |
urllib3.contrib.pyopenssl.inject_into_urllib3() | |
conn = connection_from_url('https://httpbin.org/post', cert_reqs='CERT_REQUIRED', ca_certs=certifi.where()) | |
conn.urlopen( | |
method='POST', |
-- :` ./ | |
-- ++:` ./oo | |
-- ++++:` ./oooo | |
-- ++++++:` ./oooooo | |
-- ++++++++:`./oooooooo | |
-- ++++++++ohhsoooooooo | |
-- ++++++oyddddhsoooooo | |
-- ++++oyddddddddhsoooo | |
-- ++oyddddddddddddhsoo |
# The use_env call below is a reusable command to activate/create a new Python | |
# virtualenv, requiring only a single declarative line of code in your .env files. | |
# It only performs an action if the requested virtualenv is not the current one. | |
use_env() { | |
typeset venv | |
venv="$1" | |
if [[ "${VIRTUAL_ENV##*/}" != "$venv" ]]; then | |
if workon | grep -q "$venv"; then | |
workon "$venv" | |
else |
# -*- coding: utf-8 -*- | |
from collections import defaultdict | |
class keydefaultdict(defaultdict): | |
"""Defaultdict that takes inserted key as an argument. | |
Example:: |
# -*- coding: utf-8 -*- | |
import re | |
import os | |
from setuptools import setup, find_packages | |
from pip.req import parse_requirements | |
# -*- coding: utf-8 -*- | |
""" | |
python partitioning.py -c \ | |
"host=localhost dbname=mergado3 password=development user=dev" | |
-p public.stats_heureka -t id -i 100 | |
""" | |
import logging | |
import psycopg2 |
# -*- coding: utf-8 -*- | |
import re | |
import urllib | |
WIKI_URL = ('http://en.wikipedia.org/wiki/' | |
'List_of_countries_and_dependencies_by_area') |