Skip to content

Instantly share code, notes, and snippets.

@ines
ines / .zshrc
Last active February 28, 2021 19:42
Command to activate / create Python virtual environmment
function venv {
default_envdir=".env"
envdir=${1:-$default_envdir}
if [ ! -d $envdir ]; then
python -m venv $envdir
pip install ipython black flake8
echo -e "\x1b[38;5;2m✔ Created virtualenv $envdir\x1b[0m"
fi
source $envdir/bin/activate
@chinchliff
chinchliff / example_namedump.json
Last active December 11, 2015 23:09
Example JSON defining the format for namedumps from treestores
{
"metadata":{
"version":"",
"treestoreMetadata":{
"treestoreShortName":"ottol",
"treestoreLongName":"Open Tree of Life",
"domain":"",
"urlPrefix":""
}
},