Skip to content

Instantly share code, notes, and snippets.

View EonYang's full-sized avatar
🚀
Boosted!

Yang EonYang

🚀
Boosted!
View GitHub Profile
const adjectives = `Adaptable
Adventurous
Affectionate
Alert
Ambitious
Amiable
Astute
Attentive
Authentic
Aware
@EonYang
EonYang / shell.sh
Last active March 31, 2021 14:51
Setup docker on a new Raspberry Pi
# install ubuntu server on the pi and ssh into the server
# https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#1-overview
# create new user with shorter name
sudo adduser pi
sudo usermod -aG sudo pi
# copying SSH key
# on your Mac
ssh-copy-id -i ~/.ssh/id_rsa pi@pi3
@EonYang
EonYang / Powerline.md
Created August 17, 2020 22:30 — forked from wm/Powerline.md
Installing powerline on Mac OSX. The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew

@EonYang
EonYang / Powerline.md
Created August 17, 2020 22:30 — forked from wm/Powerline.md
Installing powerline on Mac OSX. The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew

@EonYang
EonYang / Powerline.md
Created August 17, 2020 22:30 — forked from wm/Powerline.md
Installing powerline on Mac OSX. The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line

PATH="/usr/local/share/python/:$PATH"

Reinstall MacVim with brew

streamlit/streamlit#648 (comment)

Hey @andaag -

I don't think we've tested Streamlit with ptvsd, so I can't comment on that particular plugin. (The awesome-streamlit project is created by an (awesome!) Streamlit community member, so the doc you're following doesn't come from us.)

I use PyCharm for all my Python debugging, so I'm not a VScode expert, but I was able to get a Streamlit debugging session working without any third-party plugins.

I edited my project's launch.json file (see here for more details on creating that file), and added a new launch configuration:

@EonYang
EonYang / zsh
Created June 29, 2020 20:07
When encounter ssl error while installing python packages
LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient
@EonYang
EonYang / SodukuSolver.js
Created June 14, 2020 19:01
Soduku Solver
const solveSudoku = (grid, level) => {
let tries = 0;
// solve : (number[][], number, number)=> boolean
const solve = (grid, r, c) => {
if (c === level * level) {
r++;
c = 0;
if (r === level * level) return true;
}