Skip to content

Instantly share code, notes, and snippets.

@jomido
jomido / example.py
Last active March 14, 2017 14:47
Async By Default
import asyncio
import aiohttp
import time
from utils import start, auto
class Context(object):
@bshyong
bshyong / python_bst.py
Last active March 11, 2021 23:09
Python BST implementation
class BSTnode(object):
"""
Representation of a node in a binary search tree.
Has a left child, right child, and key value, and stores its subtree size.
"""
def __init__(self, parent, t):
"""Create a new leaf with key t."""
self.key = t
self.parent = parent
self.left = None
@mtigas
mtigas / gist:952344
Last active August 15, 2024 15:18
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes: