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
[ | |
{ | |
"name" : "GDP per capita", | |
"id" : "NY.GDP.PCAP.KD", | |
"relationship" : "linear" | |
}, | |
{ | |
"name" : "GNI per capita", | |
"id" : "NY.GNP.PCAP.KD", | |
"relationship" : "linear" |
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
import pandas as pd | |
import plotly.express as px | |
import wbdata as wb | |
import json | |
from typing import Dict, List | |
from pathlib import Path | |
# import metrics from JSON | |
metricsPath = Path("./metrics-gdp.json") | |
metrics = json.load(metricsPath.open()) |
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
#!/bin/bash | |
# assumes you have done curl https://url.shae.run/links.json > links.json | |
# and then edited the file to your liking | |
# this script just clones the repo and reuploads + edits the gist with the links.json | |
git clone https://github.com/arnos-stuff/suri-redirect /tmp/suri | |
cp links.json /tmp/suri/src/links.json | |
cd /tmp/suri | |
git add . && git commit -m "Committing update to links.json" && git push origin master |
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
#!/bin/bash | |
# assumes you have done curl https://url.shae.run/links.json > links.json | |
# and then edited the file to your liking | |
# this script just clones the repo and reuploads + edits the gist with the links.json | |
git clone https://github.com/arnos-stuff/suri-redirect /tmp/suri | |
cp links.json /tmp/suri/src/links.json | |
cd /tmp/suri | |
git add . && git commit -m "Committing update to links.json" && git push origin master |
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
#!/bin/bash | |
git clone https://github.com/arnos-stuff/sure-redirect /tmp/suri | |
cp links.json /tmp/suri/src/links.json | |
cd /tmp/suri | |
git add . && git commit -m "Committing update to links.json" && git push origin main | |
gh gist edit 7016bacae0337ef54df613cae107fa3f src/links.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
{ | |
"/": "https://links.shae.run", | |
"docker-install.sh": "https://gist.githubusercontent.com/arnos-stuff/c7c10766ec30cd892b962b115c93384c/raw/", | |
"ligatures.json": "https://gist.githubusercontent.com/arnos-stuff/b6f3386fafe2cfd93d13feb137715b60/raw/", | |
"k8s-install.sh" : "https://gist.githubusercontent.com/arnos-stuff/772f0554aa7e1b840bd9318c21a8048c/raw/", | |
"animals.sh" : "https://gist.githubusercontent.com/arnos-stuff/ed81a20cc67e9c0b337792408b957948/raw/", | |
"animals.bash" : "https://gist.githubusercontent.com/arnos-stuff/ed81a20cc67e9c0b337792408b957948/raw/", | |
"vm-install.sh" : "https://gist.githubusercontent.com/arnos-stuff/b99927ab587218c2f20569b8ab3b5842/raw/", | |
"update-links.sh" : "https://gist.githubusercontent.com/arnos-stuff/24a7889c436d364e24b775f0e3a7ffc3/raw/", | |
"links.json" : "https://gist.githubusercontent.com/arnos-stuff/7016bacae0337ef54df613cae107fa3f/raw/" |
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
#!/bin/bash | |
sudo apt-get update && sudo apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list | |
sudo apt-get update | |
sudo apt-get install -y kubectl | |
echo 'alias k=kubectl' >> ~/.zshenv | |
echo 'compdef __start_kubectl k' >> ~/.zshrc |
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
#!/bin/bash | |
BREW_ROOT=/home/linuxbrew/.linuxbrew/bin | |
sudo apt install -y git zsh zsh-static micro | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
mkdir git | |
git clone https://github.com/arnos-stuff/shell git/shell | |
cp git/shell/prompts/half-pure.toml .config/starship.toml |
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
#!/bin/bash | |
# get env | |
letter="$ANIMAL_LETTER" | |
index="$ANIMAL_INDEX" | |
# validate else error | |
if [ -z "$letter" ]; then |
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
[ | |
{ | |
"index": 0, | |
"animal": "aardvark", | |
"letter": "a", | |
"number": 1, | |
"bash": "[[ \"$letter\" == \"a\" ]] && [[ \"$index\" == \"1\" ]] && animal=aardvark", | |
"subindex": 1 | |
}, | |
{ |
NewerOlder