I hereby claim:
- I am tizz98 on github.
- I am tizz98 (https://keybase.io/tizz98) on keybase.
- I have a public key ASD4-YYlqbRFDP1y2ZoXGLFkOA_whshPRYSwbHzG6AK4Ngo
To claim this, I am signing this object:
from dataclasses import dataclass, field | |
from operator import itemgetter | |
import time | |
from typing import Dict | |
from fastapi import FastAPI | |
import tqdm | |
@dataclass |
#!/usr/bin/env python | |
""" | |
Produces load on all available CPU cores | |
""" | |
from multiprocessing import Pool | |
from multiprocessing import cpu_count | |
def f(x): | |
while True: |
#!/usr/bin/env python3 | |
import subprocess | |
import urllib.request | |
from tqdm import tqdm | |
latest_url = "https://zoom.us/client/latest/zoom_amd64.deb" | |
class DownloadProgressBar(tqdm): |
class Duration: | |
""" | |
>>> d = Duration(days=1) | |
>>> d.hours == 24.0 | |
True | |
>>> d.minutes == 1440.0 | |
True | |
>>> d.seconds == 86400.0 | |
True | |
""" |
package app | |
import ( | |
"bytes" | |
"fmt" | |
"image/jpeg" | |
"image/png" | |
"net/http" | |
"github.com/pkg/errors" |
I hereby claim:
To claim this, I am signing this object:
def clean_name(name, replacement_char): | |
# Remove invalid characters | |
new_class_name = re.sub('[^0-9a-zA-Z_]', replacement_char, name) | |
# Remove leading characters until we find a letter or underscore | |
return re.sub('^[^a-zA-Z_]+', replacement_char, new_class_name) | |
print(clean_name('123something** cool\\vv__', '*').title().replace('*', '')) # CamelCase | |
print(clean_name('123something** cool\\vv__', '_')) # snake_case |
I hereby claim:
To claim this, I am signing this object:
class Animal: | |
SOUND = None | |
def make_sound(self): | |
raise NotImplementedError | |
class Dog(Animal): | |
SOUND = 'woof' |
import functools | |
import inspect | |
class RestrictException(Exception): | |
pass | |
class restrict(object): | |
def __init__(self, ok_class, ok_function=None, exc_msg=None): |