Skip to content

Instantly share code, notes, and snippets.

@Tarliton
Tarliton / async_sqlalchemy_thread.py
Last active February 26, 2023 13:07
asyncio with a thread executor and sqlalchemy
import asyncio
import base64
import os
import random
from sqlalchemy import Column, Integer, String
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker, declarative_base
# SQLAlchemy==2.0.4
@aggrolite
aggrolite / redditbot.md
Last active January 6, 2022 13:44
Writing a reddit bot with Go and OAuth2
# Author: wgollino (wgollino@yahoo.com)
# Contributors: ssbarnea
# File: rangevaluesfilterspec.py
# Version: 1.01
#
# Adds filtering by ranges of values in the admin filter sidebar. The example below results in this filter:
#
# By store price
# All
# < 100
@didip
didip / tornado_cookie_secret_generator.py
Created February 12, 2011 17:20
Generates secure cookie secret for Tornado Web Framework