A Pen by Pila Louis on CodePen.
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 dataclasses import dataclass, field | |
@dataclass(order=True,frozen=True) | |
class Person: | |
sort_index: int = field(init=False, repr=False) | |
name: str | |
job: str | |
age: int | |
strength: int = 100 |
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
""" | |
Very advanced Employee management system. | |
""" | |
from dataclasses import dataclass | |
from typing import List | |
from enum import Enum, auto | |
from abc import ABC, abstractmethod | |
FIXED_VACATION_DAYS_PAYOUT = 5 # The fixed nr of vacation days that can be paid out. |
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 time | |
import string | |
import secrets | |
''' | |
The secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, | |
account authentication, security tokens, and related secrets. | |
''' |
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 random | |
from random import randint | |
import time | |
gentype = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | |
print("Hello To Multipe Gift Card Generator") | |
total = input("How Many Would You Like To Generate? ") | |
#Number To Generate | |
number = int(total) | |
file = (total + " Generated By Multipe Gift Card Generator.txt") | |
file2 = 'GiftCardsCodes.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
import logging | |
import azure.functions as func | |
import psycopg2 | |
import os | |
from datetime import datetime | |
from sendgrid import SendGridAPIClient | |
from sendgrid.helpers.mail import Mail | |
import pathlib | |
SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY') |
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 flask import Flask, request, abort, jsonify | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_cors import CORS | |
import random | |
from models import setup_db, Question, Category | |
QUESTIONS_PER_PAGE = 10 |
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 flask import Flask, request, abort, jsonify | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_cors import CORS | |
import random | |
from models import setup_db, Question, Category | |
QUESTIONS_PER_PAGE = 10 |
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
<div id="root" /> |
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
function Button(props) { | |
const handleClick = () => props.onClickFunction(props.increment); | |
return ( | |
<button onClick={handleClick}> | |
+{props.increment} | |
</button> | |
); | |
} | |
function Display(props) { |
NewerOlder