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
| Collecting wrf-python==1.3.1 (from -r requirements.txt (line 21)) | |
| Downloading wrf-python-1.3.1.tar.gz (1.1 MB) | |
| โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 1.1/1.1 MB 38.8 MB/s eta 0:00:00 | |
| Preparing metadata (setup.py) ... error | |
| error: subprocess-exited-with-error | |
| ร python setup.py egg_info did not run successfully. | |
| โ exit code: 1 | |
| โฐโ> [6 lines of output] | |
| Traceback (most recent call last): |
MacOS comes with Ruby installed, but it's usually a good idea to install a newer version and manage it through a version manager like rbenv or RVM. This avoids permission issues and makes it easier to manage different Ruby environments. If you encounter any permission issues during the installation (which can happen with the default Ruby installation on macOS), using a Ruby version manager like rbenv helps resolve these issues. It allows you to install gems without needing superuser privileges and makes managing Ruby environments easier.
- Using
rbenv(recommended for simplicity):
brew install rbenv
- Split terminal into two vertical panes:
Cmd + D - Split terminal into two horizontal panes:
Cmd + Shift + D
- Tested on Macbook Air 2017
- To disable keyboard (in case on-board keyboard not functioning correctly):
A python virtual environment is a lighweight tool used to create an isolated Python environment with its own -
- Package directories that doesn't share libraries with other virtual environments
- Python binary (either copied or linked from the python environment used to create the virtual env)
- optionally doesn't access the globally installed libraries either
Note: venv is a package that comes only with Python3.x and not with Python2.x.
- To create a python virtual environment:
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
| #!/bin/bash | |
| # find_and_replace.sh | |
| echo "Find and replace in current directory!" | |
| echo "File pattern to look for? (eg '*.txt')" | |
| read filepattern | |
| echo "Existing string?" | |
| read existing | |
| echo "Replacement string?" | |
| read replacement |
- Understanding LSTM
- Guide to LSTMs and GRUs
- CS231n Stanford Lecture Slides
- KL Divergence Demystified
- GPUs in Deep Learning - by Tim Dettmers
- Paper: Attention is All You Need - Introduces attention and transformer
- Blog: Explaining Transformer (Very Good)
- Blog: Transformer
- Blog: KL-Divergence
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
| # List of cheatsheet for linux find. | |
| # Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml | |
| # basic 'find file' commands | |
| # -------------------------- | |
| find / -name foo.txt -type f -print # full command | |
| find / -name foo.txt -type f # -print isn't necessary | |
| find / -name foo.txt # don't have to specify "type==file" | |
| find . -name foo.txt # search under the current dir | |
| find . -name "foo.*" # wildcard |
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
| echo "Downloading gcc source files..." | |
| curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O | |
| echo "extracting files..." | |
| tar xvfj gcc-5.4.0.tar.bz2 | |
| echo "Installing dependencies..." | |
| yum -y install gmp-devel mpfr-devel libmpc-devel | |
| echo "Configure and install..." |
NewerOlder