View PDFNoteGenerator.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
"Moved to https://github.com/isaackogan/LectureNoteGenerator" |
View TikTokLiveTempfix.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 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};" | |
} |
View secondsToMilitaryTimestamp.js
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) |
View React Site Pterodactyl 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": "2022-02-17T12:45:09-05:00", | |
"name": "NodeJS Server", | |
"author": "yajtpg@gmail.com", | |
"description": "NodeJS Universal Egg.", |
View uvicorn-fastapi-egg.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
{ | |
"_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": "parker@parkervcp.com", | |
"description": "A Discord bot written in Python using discord.py\r\n\r\nhttps:\/\/github.com\/Ispira\/pixel-bot", |
View milestone.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 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))) |