This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [1]: from itertools import chain, repeat, islice | |
...: | |
...: def pad_infinite(iterable, padding=None): | |
...: return chain(iterable, repeat(padding)) | |
...: | |
...: def pad(iterable, size, padding=None): | |
...: return islice(pad_infinite(iterable, padding), size) | |
...: | |
In [2]: from collections import defaultdict | |
In [3]: import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup, find_packages | |
setup(name="myjibake", | |
description="Identify and fix mojibake problems in MySQL-like RDBMS", | |
author="Alex Boag-Munroe (Ninpo)", | |
version="0.1.0", | |
package_dir={"": "src"}, | |
packages=find_packages("src"), | |
classifiers=[ | |
"Development Status :: 1 - Planning", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
removing /home/ninpo/dev/python-myjibake/.tox/log | |
using tox.ini: /home/ninpo/dev/python-myjibake/tox.ini | |
using tox-3.7.0 from /home/ninpo/.pyenv/versions/3.6.8/lib/python3.6/site-packages/tox/__init__.py | |
GLOB start: packaging | |
GLOB sdist-make: /home/ninpo/dev/python-myjibake/setup.py | |
removing /home/ninpo/dev/python-myjibake/.tox/dist | |
/home/ninpo/dev/python-myjibake$ /home/ninpo/.pyenv/versions/3.6.8/bin/python3.6 /home/ninpo/dev/python-myjibake/setup.py sdist --formats=zip --dist-dir /home/ninpo/dev/python-myjibake/.tox/dist >/home/ninpo/dev/python-myjibake/.tox/log/tox-0.log | |
actionid: tox | |
msg: packaging | |
cmdargs: '/home/ninpo/.pyenv/versions/3.6.8/bin/python3.6 /home/ninpo/dev/python-myjibake/setup.py sdist --formats=zip --dist-dir /home/ninpo/dev/python-myjibake/.tox/dist' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tox -l | |
clean | |
check | |
docs | |
py36 | |
py37 | |
pypy3 | |
report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ftp_conn = false; | |
$errors = array(); | |
$leave = false; | |
$putFile = false; | |
$retries = 0; | |
$maxRetries = 10; | |
$remoteFilename = $mailoutID.'.doc'; | |
$ftpHost = getenv('PDF_CONVERTER_HOST'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.7 | |
from __future__ import print_function | |
import time | |
import sys | |
import os | |
import boto | |
import gcs_oauth2_boto_plugin | |
from watchdog.observers import Observer | |
from watchdog.events import PatternMatchingEventHandler |