I hereby claim:
- I am prettyirrelevant on github.
- I am isaacadewumi (https://keybase.io/isaacadewumi) on keybase.
- I have a public key ASDGsfNVXfD7VEWRblNosg34ofocJlNHQKv8wgwe3zwNHQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import math | |
| from pathlib import Path | |
| import numpy as np | |
| from PIL import Image | |
| import imageio.v3 as iio | |
| from pillow_heif import register_heif_opener | |
| register_heif_opener() |
| import pandas as pd | |
| from decimal import Decimal | |
| def clean_currency(value): | |
| """Removes currency symbol and commas, then converts to `Decimal`.""" | |
| if isinstance(value, Decimal): | |
| return value | |
| value = value.replace("₦", "").replace(",", "") |
| import asyncio | |
| import json | |
| from typing import Any, Dict, List, Tuple | |
| import aiohttp | |
| from bs4 import BeautifulSoup | |
| async def main() -> None: | |
| async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False)) as session: |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| ) | |
| type KeyValueSlice map[string]float64 | |
| func main() { |
| pragma solidity ^0.4.0; | |
| contract Ballot { | |
| struct Voter { | |
| uint weight; | |
| bool voted; | |
| uint8 vote; | |
| address delegate; | |
| } |
| def save_image_from_b64(b64_image): | |
| file_name = secrets.token_hex(6) | |
| file_data = b64_image.split(",")[-1].encode() | |
| file_type = b64_image.split(",")[0].split(";")[0].split("/")[-1] or "png" | |
| with open("{}/{}.{}".format(app.config["UPLOAD_FOLDER"], file_name, file_type), "wb") as f: | |
| f.write(base64.decodebytes(file_data)) | |
| return "{}.{}".format(file_name, file_type) |
| # Due to the flexible nature of Flask. This might be __init__.py | |
| from .extensions import huey | |
| def create_app(): | |
| app = Flask(__name__) | |
| # add your configurations | |
| # app.config.from_object("settings.local") | |
| huey.init_app(app) |
| import morgan, { StreamOptions } from "morgan"; | |
| import winston from "winston"; | |
| const levels = { | |
| error: 0, | |
| warn: 1, | |
| info: 2, | |
| debug: 3, | |
| }; |