This file contains hidden or 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
| <VirtualHost *> | |
| ServerName example.com | |
| WSGIDaemonProcess www user=max group=max threads=5 | |
| WSGIScriptAlias / /home/max/Projekte/flask-upload/flask-upload.wsgi | |
| <Directory /home/max/Projekte/flask-upload> | |
| WSGIProcessGroup www | |
| WSGIApplicationGroup %{GLOBAL} | |
| Order deny,allow |
This file contains hidden or 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
| /c_extension_module*.so | |
| /build/* | |
| /.do_built* | |
| /log | |
| /all.did |
This file contains hidden or 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
| /b2a_bin.c | |
| /b2a_bin.html | |
| /b2a_bin*.so | |
| /build/* |
This file contains hidden or 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
| # based on https://launchpadlibrarian.net/94884626/testUtcToDst.patch | |
| # from https://bugs.launchpad.net/dateutil/+bug/944123 | |
| import unittest | |
| from datetime import datetime, timedelta | |
| import dateutil.tz | |
| import dateutil.zoneinfo | |
| import pytz | |
| tzname = "America/Toronto" |
This file contains hidden or 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/env python | |
| """Test whether tz.normalize() is necessary when converting from pytz.utc. | |
| The example from the docs [1] uses `au_tz.normalize()` but it seems | |
| unnecessary: | |
| >>> utc_dt = datetime.utcfromtimestamp(1143408899).replace(tzinfo=utc) | |
| >>> utc_dt.strftime(fmt) | |
| '2006-03-26 21:34:59 UTC+0000' | |
| >>> au_tz = timezone('Australia/Sydney') |
This file contains hidden or 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
| /.cachedir/ | |
| /comments-*.json |
This file contains hidden or 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
| import sys | |
| from subprocess import Popen | |
| from Tkinter import Tk, StringVar | |
| import ttk | |
| START, STOP = "start", "stop" | |
| # just some arbitrary command for demonstration | |
| cmd = [sys.executable, '-c', """import sys, time | |
| print("!") |
This file contains hidden or 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/env python3 | |
| """Notes on `arrow` library. | |
| * inconsitent (fixed) | |
| >>> a = arrow.get(datetime(2012, 4, 7, 0, 30, 00), 'America/New_York') | |
| >>> a.datetime.tzname() == a.tzinfo.tzname(a.datetime) # fixed | |
| True |
This file contains hidden or 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/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| http://stackoverflow.com/q/13655169 | |
| """ | |
| import doctest | |
| import inspect | |
| import os | |
| import sys | |
| import timeit |
This file contains hidden or 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
| /big.txt | |
| /reporttime$py.class |