Skip to content

Instantly share code, notes, and snippets.

@OnePro
OnePro / auth_back.svg
Created August 23, 2026 22:13
Auth Background
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="2560" height="1738" viewBox="0 0 2560 1738" role="img" aria-labelledby="title desc">
<title id="title">1C PRO yellow and grey low-poly background</title>
<desc id="desc">Editable faceted geometric background with a quiet silver-grey center and yellow and graphite accents around the edges.</desc>
<defs>
<linearGradient id="base" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#f8f5ec"/>
<stop offset="0.52" stop-color="#e8e8e5"/>
<stop offset="1" stop-color="#c9cbca"/>
</linearGradient>
@OnePro
OnePro / email.py
Created June 24, 2020 18:44
Python Emailing examle
class Email:
def __init__(self, receivers, subject='', body='', files=None):
self.sender = EMAIL_SENDER
self.receivers = receivers
# Create the message
msg = EmailMessage()
msg['Subject'] = subject
msg['To'] = ', '.join(receivers)
msg['From'] = self.sender
msg.set_content(body)
from concurrent import futures
from random import randint
import time, os, math, logging, logging.handlers, pprint
import multiprocessing
formatter = logging.Formatter('[%(asctime)s] - %(name)s - %(levelname)s - %(message)s')
cons_log = logging.StreamHandler()
cons_log.setFormatter(formatter)
handler = logging.handlers.WatchedFileHandler('status.log')
handler.setFormatter(formatter)
@OnePro
OnePro / good_code.js
Last active September 11, 2019 00:00
JS code for example
/**
* This is the detail about the constructor
* @class Main class for all books
* @param {String} title Book title
* @param {String} author Name of author
* @param {Number} pages How many pages in the book
*/
class Book {
constructor(title, author, pages) {