I hereby claim:
- I am unicodex on github.
- I am jared_fields (https://keybase.io/jared_fields) on keybase.
- I have a public key ASDzWwMMAL1fy055FqazbMsftKK66OoUG7oQzzLqNrfGcAo
To claim this, I am signing this object:
import asyncio | |
import smtplib | |
from threading import Thread | |
from flask import Flask | |
from email.mime.text import MIMEText | |
app = Flask(__name__) | |
def send_notification(sender, recipient, subject, body, server): |
import asyncio # to get access to the asyncio.sleep function. Not sure if or where this is available in Sanic. | |
import random | |
from sanic import Sanic, request, response | |
from sanic_session import InMemorySessionInterface | |
app = Sanic(__name__) | |
session_interface = InMemorySessionInterface() | |
session = None |
import asyncio # to get access to the asyncio.sleep function. Not sure if or where this is available in Sanic. | |
import random | |
from sanic import Sanic, request, response | |
from sanic_session import InMemorySessionInterface | |
app = Sanic(__name__) | |
session_interface = InMemorySessionInterface() | |
@app.middleware('request') | |
async def add_session_to_request(request): |
import asyncio | |
async def echo_server(): | |
print('Serving on localhost:8000') | |
await asyncio.start_server(handle_connection, | |
'localhost', 8000) | |
async def handle_connection(reader, writer): |
import asyncio | |
import random | |
import sys | |
processed = int() | |
lastProcessed = int() | |
async def some_work(): | |
global processed, length_of_work | |
print('some_work() has started.') |
import machine | |
import time | |
p14 = machine.Pin(14, machine.Pin.OUT) | |
p2 = machine.Pin(2, machine.Pin.OUT) | |
direction = 'forward' | |
forward = [i for i in range(2, 1024)] | |
backward = [i for i in reversed(forward)] | |
def setPWM(OBJ=None, FREQ=1000, DUTY=1023): |
I hereby claim:
To claim this, I am signing this object:
import hashlib | |
import os | |
import imghdr | |
import datetime | |
import re | |
import shutil | |
import sys | |
import optparse | |
import time |