View resume.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def func(positional_only_parameters, /, positional_or_keyword_parameters, *, keyword_only_parameters): |
View positional1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def func(positional_or_keyword_parameters, *, keyword_only_parameters): |
View ImageUploader.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import lru_cache | |
@lru_cache(maxsize=32) | |
def my_function(): | |
pass |
View __init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
NewerOlder