Skip to content

Instantly share code, notes, and snippets.

View async_wielding.py
import asyncio
import signal
from threading import Thread
import time
from decorators import logger
@logger
async def do_some_work(x):
View coerce_to_namedtuple.py
from typing import Any, Dict, NamedTuple, Type
class MyTuple(NamedTuple):
""" Sample tuple class """
name: str
desc: str
def coerce_to_namedtuple(d: Dict[str, Any], T: Type):
View keybase.md

Keybase proof

I hereby claim:

  • I am andymitchhank on github.
  • I am andymitchhank (https://keybase.io/andymitchhank) on keybase.
  • I have a public key ASClT_Y7xYRKrF_NbrH-sUyxNZ_zYxlhBeIUizJsBEvvjwo

To claim this, I am signing this object:

View SanitizePythonistaXcodeTemplate.py
import os
# your xcode project directory
directory = ''
for root, _, files in os.walk(directory):
for f in files:
edited = False
fullpath = os.path.join(root, f)
with open(fullpath, 'r') as open_file:
You can’t perform that action at this time.