This file contains hidden or 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
| certifi==2020.12.5 | |
| chardet==4.0.0 | |
| idna==2.10 | |
| RandomWords==0.3.0 | |
| requests==2.25.1 | |
| urllib3==1.26.3 |
This file contains hidden or 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
| # name: test.py | |
| # desc: this is a test | |
| # public: true | |
| print("Hello world!") |
This file contains hidden or 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 string | |
| # this part is from here: https://www.geeksforgeeks.org/program-to-calculate-the-value-of-npr/ | |
| # START Geeksforgeeks snippet | |
| import math | |
| def fact(n): | |
| if (n <= 1): | |
| return 1 | |
| return n * fact(n - 1) | |
This file contains hidden or 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 | |
| import sys | |
| import humanize | |
| file_path = sys.argv[1] | |
| size = os.path.getsize(file_path) | |
| print(f'Size in bytes: {humanize.naturalsize(size, binary=True)}') | |
| video = os.open(file_path, os.O_RDONLY) |
This file contains hidden or 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 | |
| import json | |
| from twitch import Helix | |
| from twitch.helix.models.video import Video | |
| def video_to_dict(video: Video): | |
| return { | |
| 'id': video.id, | |
| 'user_id': video.user_id, |
This file contains hidden or 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 my friend Alex | |
| import math, random | |
| Errors = [ | |
| "Error", | |
| "Log", | |
| "File", | |
| "Creation", | |
| "Pressure", |
This file contains hidden or 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 | |
| import json | |
| from twitch import Helix | |
| from twitch.v5.models.comment import Comment | |
| def comment_to_dict(comment: Comment): | |
| return { | |
| 'id': comment.id, | |
| 'created_at': comment.created_at, |
This file contains hidden or 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 tqdm import tqdm | |
| import requests | |
| from bs4 import BeautifulSoup | |
| base_url = "http://www.textfiles.com/etext/" | |
| endings = ['MODERN', 'FICTION', 'NON-FICTION', 'REFERENCE'] | |
| if not os.path.exists('files'): |
This file contains hidden or 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
| name: Python Linting | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: |
This file contains hidden or 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
| Desktop | |
| Documents | |
| Downloads | |
| Music | |
| Pictures | |
| Public | |
| Templates | |
| Videos |