In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
| #!/bin/bash | |
| set -e | |
| set -u | |
| set -o pipefail | |
| # A script to subsample Fasta/FastQ files using Seqtk | |
| if ! `command -v seqtk > /dev/null 2> /dev/null` | |
| then | |
| echo "Failed to find seqtk!" |
| from sklearn.datasets import load_iris | |
| iris = load_iris() | |
| # Model (can also use single decision tree) | |
| from sklearn.ensemble import RandomForestClassifier | |
| model = RandomForestClassifier(n_estimators=10) | |
| # Train | |
| model.fit(iris.data, iris.target) | |
| # Extract single tree |
iTerm2
Command Line Tools
xcode-select –install