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 random | |
import requests | |
import json | |
import datetime | |
rangeStart=1960 | |
rangeEnd=2024 | |
count = 30 | |
for i in range(count): |
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 requests | |
access_token_file = "/Users/sburke/.ghp" | |
repo_name = "test123" | |
base_url = "https://api.github.com" | |
def create_repo(access_token, repo_name, repo_descr=None): | |
url = f"{base_url}/user/repos" | |
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
package main | |
import ( | |
"bufio" | |
"encoding/json" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"sort" |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) | |
var url = "https://ipv4ip.com/?format=json" |
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
python3 -m venv .venv | |
source .venv/bin/activate | |
pip3 install --upgrade pip | |
pip3 install -r requirements.txt |
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
#!/usr/bin/env python3 | |
import time | |
import threading as thr | |
count = 5 | |
def sleeping(): | |
countdown = count |
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
alias linux='docker run -ti -w /opt -v .:/opt ubuntu bash' |
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
#!/usr/bin/env python3 | |
import time | |
import random | |
from pywebio import start_server, config | |
from pywebio.output import * | |
from pywebio.session import run_js, local as session_local | |
from stuff import WORDLIST |
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
#!/usr/bin/env python3 | |
import json | |
import requests | |
from pywebio import start_server | |
from pywebio.output import put_table | |
from pywebio.input import select | |
url = "https://api.coincap.io/v2/assets" | |
dic = {} |
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 openai | |
from pywebio import start_server | |
from pywebio.output import put_table | |
from pywebio.input import input | |
openai.api_key = '' | |
def openai_response(name, question): | |
response = openai.ChatCompletion.create( |