#!/usr/bin/env bash
# Added bash strict mode.
set -euo pipefail
# Remove old golang versions.
whereis go | xargs -n1 sudo rm -rf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Classes and metaclasses for easier ``__slots__`` handling. """ | |
from itertools import tee | |
import dis | |
__version__ = "2021.1.6" | |
__all__ = ("Slots",) | |
def self_assignemts(method) -> set: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import toml | |
import subprocess | |
import sys | |
class UpdateDeps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import functools | |
import another | |
def tag(*name): | |
def outer(func): | |
func.tag = name | |
@functools.wraps(func) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import httpx | |
MAX_CONSUMERS = 50 | |
async def make_request(url): | |
async with httpx.AsyncClient(http2=True) as client: | |
response = await client.get(url) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
WITH foreign_keys
AS (SELECT conname,
conrelid,
confrelid,
Unnest(conkey) AS CONKEY,
Unnest(confkey) AS CONFKEY
FROM pg_constraint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Django settings for main project. | |
Generated by 'django-admin startproject' using Django 4.0. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/4.0/topics/settings/ | |
For the full list of settings and their values, see | |
https://docs.djangoproject.com/en/4.0/ref/settings/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import json | |
from collections.abc import Mapping | |
from dataclasses import dataclass | |
from typing import Callable | |
class Mutator: | |
def __init_subclass__( |