Skip to content

Instantly share code, notes, and snippets.

View aitoehigie's full-sized avatar
📞
Call me on my Shell phone

Ehigie Aito aitoehigie

📞
Call me on my Shell phone
View GitHub Profile
View resume.json
{
"basics": {
"name": "John Doe",
"label": "Programmer",
"image": "",
"email": "john@gmail.com",
"phone": "(912) 555-4321",
"url": "https://johndoe.com",
"summary": "A summary of John Doe…",
"location": {
View file_converter.py
import tempfile
import os
import string
import random
import subprocess
import requests
import openai
import pandas as pd
import csv
import openpyxl
View app.py
"""
A simple weather app.
"""
from pprint import pprint
import toga
from toga.style import Pack
from toga.style.pack import COLUMN, ROW, LEFT, RIGHT
import requests
TOKEN="37946c6bcf8f62c02f22594c77f8a311"
View beewarelogs.txt
--------- beginning of main
07-05 07:55:36.840 1503 1503 W auditd : type=2000 audit(0.0:1): initialized
07-05 07:55:37.910 1503 1503 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
07-05 07:55:37.920 1503 1503 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
07-05 07:55:39.000 1 1 W init : type=1400 audit(0.0:4): avc: denied { setattr } for name="slabinfo" dev="proc" ino=4026532041 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0
07-05 07:55:39.000 1 1 W init : type=1400 audit(0.0:5): avc: denied { setattr } for name="slabinfo" dev="proc" ino=4026532041 scontext=u:r:init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=0
07-05 07:55:39.012 1504 1504 I SELinux : SELinux: Loaded service_contexts from:
07-05 07:55:39.013 1504 1504 I SELinux : /system/etc/selinux/plat_service_contexts
07-05 07:55:39.047 1506 1506 I SELinux : SELinux: Loaded service_contexts from:
07-0
View positional3.py
def name(p1, p2, /, p_or_kw, *, kw):
def name(p1, p2=None, /, p_or_kw=None, *, kw):
def name(p1, p2=None, /, *, kw):
def name(p1, p2=None, /):
def name(p1, p2, /, p_or_kw):
def name(p1, p2, /):
View positional2.py
def func(positional_only_parameters, /, positional_or_keyword_parameters, *, keyword_only_parameters):
View positional1.py
def func(positional_or_keyword_parameters, *, keyword_only_parameters):
@aitoehigie
aitoehigie / ImageUploader.py
Last active October 17, 2019 02:57 — forked from tkrynski/ImageUploader.py
Python ImageUploader refactor
View ImageUploader.py
from PIL import Image
import base64
import requests
import mimetypes
from io import BytesIO
import redis
import socket
from uuid import uuid4
REDIS_CONNECTION = redis.Redis()
View lru_cache
from functools import lru_cache
@lru_cache(maxsize=32)
def my_function():
pass
View __init__.py
import os
from os.path import dirname, join
from flask import Flask
from dotenv import load_dotenv
#import featurerequests.views (I commented this line out because importing the views file here, has on iine three in the views
# file a line that also calls the app object, but the app object at the stage doesnt exist hence the error. This is called
# a "CIRCULAR IMPORT"
# by moving it to the bottom, after the app = Flask(__name__) declaration, you program runs now.