Skip to content

Instantly share code, notes, and snippets.

@peterroelants
peterroelants / setup_conda.sh
Last active January 23, 2021 11:53
Install conda, install environment, and export environment with conda-pack. (Intended for Docker containers)
#!/usr/bin/env bash
# Use Bash strict mode
# Exit immediately if command or pipe fails, and treat unset variables as an error.
# More info:
# - https://linuxcommand.org/lc3_man_pages/seth.html
# - http://redsymbol.net/articles/unofficial-bash-strict-mode/
##############################################################################
set -euo pipefail
@peterroelants
peterroelants / .p10k.zsh
Last active January 6, 2021 07:44
zshrc
# Generated by Powerlevel10k configuration wizard on 2020-12-15 at 18:06 CET.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 45530.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, darkest,
# 24h time, angled separators, sharp heads, flat tails, 1 line, compact, few icons,
# concise, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterroelants
peterroelants / xarray_dask_quadmesh_shade_outofmemory.ipynb
Last active November 30, 2020 10:22
QuadMesh not making use of Dask out-of-core processing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterroelants
peterroelants / xarray_dask_shade_working.ipynb
Last active November 30, 2020 10:14
XArray + DaskArray working and tested for shade
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterroelants
peterroelants / dask_type_error_array.ipynb
Last active November 26, 2020 17:35
Datashader task typeerror
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.