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
def main(): | |
fizz_buzz(100) | |
return | |
def fizz_buzz(n): | |
for i in range(1,n+1): | |
output = "" | |
if i % 3 == 0: | |
output += "Fizz" | |
if i % 5 == 0: |
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
/* code blocks */ | |
code{ | |
color: white; | |
-webkit-animation: glow 1s ease-in-out infinite alternate; | |
-moz-animation: glow 1s ease-in-out infinite alternate; | |
animation: glow 1s ease-in-out infinite alternate; | |
} | |
pre { | |
background-color: #222; |
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
class colors: # You may need to change color settings | |
BOLD = "\033[;1m" | |
UNDERLINE = "\033[;4m" | |
REVERSE = "\033[;7m" | |
RESET = "\033[0;0m" | |
BLACK = '\033[30m' | |
RED = '\033[31m' | |
GREEN = '\033[32m' | |
YELLOW = '\033[33m' | |
BLUE = '\033[34m' |
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 json | |
import requests | |
user_id = "" #ENTER YOUR ID INSIDE THE QUOTES e.g., user_id = "31453" | |
def main(): | |
r = requests.get('https://myspace.windows93.net/api.php?id='+user_id) | |
user = make_json_request(r) | |
notifs = user['notifications'] | |
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 json | |
import requests | |
import time | |
limit = 100 | |
# Write is formatted for .md files | |
path_to_file = "/Users/user/your/path/to/file" | |
def main(): | |
sorted_users = get_users() |
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 json | |
import requests | |
from getpass import getpass | |
# Login to GitHub and go to Settings > Developer settings > Personal access tokens and generate a new token. | |
# For scope click the user checkmark and generate token. | |
# Save it elsewhere as after you close the tab you will not be able to see it again on your profile. | |
api_token = getpass('API Token: ') | |
h = {'Accept': 'application/vnd.github.v3+json', |