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
# myapp/management/commands/make_smoke_tests.py | |
from django.core.management.base import BaseCommand | |
from django.urls import get_resolver, URLPattern, URLResolver | |
import re | |
import os | |
class Command(BaseCommand): | |
help = 'Generates smoke tests for projects.' | |
def add_arguments(self, parser): |
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": { |
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 |
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" |
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 |
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, /): |
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): |
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): |
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() |
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 |
NewerOlder