I hereby claim:
- I am bryanhelmig on github.
- I am bryanhelmig (https://keybase.io/bryanhelmig) on keybase.
- I have a public key whose fingerprint is BC07 78B9 D1A4 3DBA DF36 F565 4429 102A 84CB 847F
To claim this, I am signing this object:
| def try_strip_bytes_prefix(token: str) -> str: | |
| if token.startswith("bytes:") and "\\" in token: | |
| return token[6:] | |
| return token | |
| def try_bytes_fix(tokens: list[str]) -> str: | |
| # this encode/decode dance fixes places where openai provides | |
| # "bytes: \\xf0\\x9f\\x98" + "bytes:\\x83" for tokens and replaces | |
| # with the appropriate emoji (e.g. "😃") |
| # Looking for a good remote Python job? Check out Zapier at https://zapier.com/jobs/. | |
| import functools | |
| import importlib | |
| import os | |
| os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings") # noqa | |
| import anyio | |
| from asgiref.sync import sync_to_async | |
| from django.conf import settings |
| var immer = require("immer"); | |
| var produce = immer.produce; | |
| var patches = []; | |
| var state0 = { a: 1 }; | |
| var state1 = produce( | |
| state0, | |
| function (draft) { | |
| draft.b = 9; | |
| }, |
| #!/usr/bin/env python | |
| import argparse | |
| import subprocess | |
| import sys | |
| from packaging.version import parse as parse_version | |
| def parse_dependencies(text): |
| #!/usr/bin/env bash | |
| CHANGED_PYTHON_FILES=`git diff-tree --diff-filter=ACMRT --no-commit-id --name-only -r origin/develop.. -- "*.py" | tr "\n" " "` | |
| flake8 --exit-zero --format=pylint ${CHANGED_PYTHON_FILES} | |
| pylint --py3k --disable=no-absolute-import --disable=round-builtin -sn --msg-template="{path}:{line}: [{msg_id}] {msg}" ${CHANGED_PYTHON_FILES} |
| import time | |
| import bs4 | |
| import requests | |
| import logging | |
| import sys | |
| logger = logging.getLogger('switchlogger') | |
| logger.setLevel(logging.DEBUG) | |
| ch = logging.StreamHandler(sys.stdout) |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func decorator(f func(s string)) func(s string) { | |
| return func(s string) { | |
| fmt.Println("Started") |
| """ | |
| users if active or not on a given day plus counts of events | |
| """ | |
| import os | |
| import csv | |
| from collections import defaultdict | |
| from collections import Counter | |
| UFILE = 'data/users.csv' |
| import itertools | |
| import math | |
| def tokenize_keyboard(board): | |
| return [list(row.strip()) for row in board] | |
| def invert_grid(grid): | |
| out = {} | |
| for row_i, row in enumerate(grid): | |
| for col_i, cell in enumerate(row): |