See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
| #!/usr/bin/env python | |
| ''' | |
| List all available versions of Kindle for Mac and Kindle for PC. | |
| Dependencies: | |
| - asyncio==3.4.3 | |
| - aiohttp==3.6.3 | |
| ''' | |
| import os | |
| import sys |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
| import asyncio | |
| import functools | |
| import time | |
| __all__ = ['Retry'] | |
| class Retry(object): | |
| """ |
| """ | |
| Python is a dynamic language, and it is relatively easy to dynamically create | |
| and modify things such as classes and objects. Functions, however, are quite | |
| challenging to create dynamically. | |
| One area where we might want to do this is in an RPC library, where a function | |
| defined on a server needs to be available remotely on a client. | |
| The naive solution is to simply pass arguments to a generic function that | |
| accepts `*args` and `**kwargs`. A lot of information is lost with this approach, |
| Create a dir to build things into: | |
| $ mkdir ~/stack && cd ~/stack | |
| Download the sources (sqlite 3230100 was broken, 3220000 was used instead): | |
| $ wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz | |
| $ wget https://sqlite.org/2018/sqlite-src-3220000.zip | |
| $ wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz |
| # Converts a docx file with tables and images to (simple) HTML | |
| # ORIGINAL CODE BY DAVID SSALI AT SOURCE: https://medium.com/@dvdssali/docx-to-html-1374eb6491a1 | |
| # | |
| # Requires the Python module 'python-docx' <https://python-docx.readthedocs.io> | |
| # | |
| # Example use: | |
| # >>> s = convert('./SOURCEDIR', 'SAMPLE.docx') | |
| # >>> print(s) | |
| # or | |
| # $ python .\convert-docx-to-html.py > temp.html |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| django.cgi | |
| A simple cgi script which uses the django WSGI to serve requests. | |
| Code copy/pasted from PEP-0333 and then tweaked to serve django. | |
| http://www.python.org/dev/peps/pep-0333/#the-server-gateway-side |