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 {OpenAPISpec} from "../../@types/express/openapi"; | |
function addAllowedPathsToPrivateSpec( | |
publicSpec: Partial<OpenAPISpec>, | |
privateSpec: OpenAPISpec, | |
allowedPaths: string[] | |
): void { | |
publicSpec.paths ||= {}; |
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.path | |
import shutil | |
from glob import glob | |
from typing import Optional, List | |
from keras import Sequential, Model | |
from keras.callbacks import History, Callback, ModelCheckpoint | |
from keras.layers import Conv2D, Dropout, MaxPooling2D, Flatten, Dense, BatchNormalization, Activation, Rescaling | |
from matplotlib import pyplot | |
import pandas as pd |
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
"Moved to https://github.com/isaackogan/LectureNoteGenerator" |
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 TikTokLive import TikTokLiveClient | |
from TikTokLive.types.events import ConnectEvent, CommentEvent | |
sessionid = "SESSION_ID_HERE" | |
sid_guard = "SID_GUARD_HERE" | |
client = TikTokLiveClient("@PERSON_YOU_WANT_TO_WATCH", **{ | |
"headers": { | |
"Cookie": f"sessionid={sessionid}; sid_guard={sid_guard};" | |
} |
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 secondsToMilitary(seconds) { | |
let negative = seconds < 0; | |
seconds = Math.abs(Math.floor(seconds)); | |
/* | |
Less than 60 seconds | |
*/ | |
if (seconds < 60) { | |
return "00:" + ((seconds > 10) ? seconds.toString() : '0' + seconds) |
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
{ | |
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | |
"meta": { | |
"version": "PTDL_v1", | |
"update_url": null | |
}, | |
"exported_at": "2022-02-17T12:45:09-05:00", | |
"name": "NodeJS Server", | |
"author": "[email protected]", | |
"description": "NodeJS Universal Egg.", |
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
{ | |
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | |
"meta": { | |
"version": "PTDL_v1", | |
"update_url": null | |
}, | |
"exported_at": "2021-10-10T21:10:16-04:00", | |
"name": "FastAPI (Uvicorn)", | |
"author": "[email protected]", | |
"description": "A Discord bot written in Python using discord.py\r\n\r\nhttps:\/\/github.com\/Ispira\/pixel-bot", |
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 typing import Optional | |
def roundup(x: int, tens: int) -> int: | |
val: int = int("1" + ("0" * tens)) | |
return x if x % val == 0 else x + val - x % val | |
def halfway(x: int) -> int: | |
val: int = int("5" + ("0" * (len(str(x)) - 2))) |