Skip to content

Instantly share code, notes, and snippets.

View tek's full-sized avatar
🦆

Torsten Schmits tek

🦆
View GitHub Profile
typeset -A virtualenv_map
virtualenv_map=()
for file in ~/.virtualenvs/*/.project(N)
virtualenv_map[${file:h:t}]=$(<$file)
virtualenv_chpwd()
{
setopt local_options no_auto_pushd
local project_path longest_path new_venv
if [[ $ZSH_SUBSHELL == 0 ]] && \
_setup_pyenv_plugin_dir()
{
for plugin ($PYENV_PLUGINS/*(/)) {
if ! [[ -e $PYENV_PLUGIN_DIR/${plugin:t} ]] {
ln -s $plugin $PYENV_ROOT/plugins
}
}
}
pyenvstart()
import Conc (interpretScoped, interpretScopedWith, interpretSync)
import Database.PostgreSQL.Simple (Connection)
import qualified Database.PostgreSQL.Simple.Transaction as Psql
import Polysemy.Bundle (Bundle (Bundle), sendBundle)
import Polysemy.Internal.Kind (Append)
import Polysemy.Membership (ElemOf (Here, There))
import qualified Sync
data Connections :: Effect where
New :: Connections m Connection