I hereby claim:
- I am ianpaul on github.
- I am ianpaul (https://keybase.io/ianpaul) on keybase.
- I have a public key ASCzCID-CGNSYW7lwpflnxsJhdqoJD75KrjThjyb7R_ZQgo
To claim this, I am signing this object:
data:text/html, <body contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;"> |
I hereby claim:
To claim this, I am signing this object:
git remote add origin [GitHub URL]
git remote -v
--this just verifies that the GitHub repo URL is validgit push -u origin master
#!/bin/bash | |
# A simple Bash script to create HTML in stdout from a markdown file | |
# This script requires pandoc. On Ubuntu use `sudo apt install pandoc` to install. | |
# Check to see if the user included a filename. If not, ask them for one. | |
if [ -z "$1" ]; then | |
read -p "Please provide a filename (include the path if not in this directory): " file | |
else file=$1 |
#!/bin/bash | |
read -p "Hello! Give me something to work with! A sentence or tweet will do. " sentence | |
# now let's do some curl magic | |
curl --fail --silent --show-error -X POST -H "Authorization: Bearer HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "'"$sentence"'"}' https://api-inference.huggingface.co/models/YOUR_USERNAME/PROJECT_URL | jq '.[0] | map(.) | if .[0].score < .[1].score then "positive" else "negative" end' |
import subprocess | |
def pick_tmux(): | |
print("Here are your active tmux sessions:\n") | |
s = subprocess.run(["tmux", "ls"], capture_output=True, text=True).stdout.strip("\n") | |
seshes = s.splitlines() | |
pretty_list = [s [:s.find(":")] for s in seshes] | |
put_numbers = enumerate(pretty_list, start=1) | |
menu_dict=dict((i,j) for i,j in put_numbers) | |
for key, value in menu_dict.items(): |