Skip to content

Instantly share code, notes, and snippets.

darglint
flake8
flake8-bandit
flake8-bugbear
flake8-builtins
flake8-comprehensions
flake8-docstrings
flake8-eradicate
flake8-isort
flake8-pytest-style
"""Proof-of-concept asynchronous Wikipedia search tool."""
import asyncio
import logging
import time
import httpx
EMAIL = "your_email@provider" # or Github URL or other identifier
USER_AGENT = {"user-agent": f"pypedia/0.1.0 ({EMAIL})"}
"""Send greetings."""
import time
import arrow
def greet(tz, repeat=1, interval=3):
"""Parse a timezone and greet a location a number of times."""
for i in range(repeat):
if i > 0: # no delay needed on first round
@bowmanjd
bowmanjd / Makefile
Last active August 26, 2018 09:25
Makefile for a Hugo project, automating Sass builds, Javascript bundling, minification, etc.
# Makefile for a Hugo project, for build automation
# Copyright 2015 Jonathan Bowman. Licensed under the Apache License,
# Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
# distributed "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
# target file for bundled Javascript
JS_TARGET = static/assets/bundle.js
# Javascript file to be passed to bundler as entry point