Skip to content

Instantly share code, notes, and snippets.

View r0oland's full-sized avatar
🎯
Focusing

Johannes Rebling r0oland

🎯
Focusing
View GitHub Profile
@r0oland
r0oland / first_cell.py
Last active July 28, 2025 05:29
Python Plotting
%reload_ext autoreload
%autoreload 2
@r0oland
r0oland / conda.ps1
Last active July 2, 2024 11:20
Useful Python snippets
# create new empty env
conda create --name myenv
# export currently activated env to environment.yml without prefixes etc
conda env export --from-history | findstr -v "prefix" > environment.yml
# install environment based on such a environment.yml
conda env create -f environment.yml
# or even better, using Mamba
@r0oland
r0oland / powershell.ps1
Created October 7, 2022 17:26
Practical ANSI Color Codes
# simple effects
$BOLD = "`e[1m"
$UNDERLINED = "`e[4m"
# simple colors
$RED = "`e[31m"
$GREEN = "`e[32m"
# RGB colors
$METER_BLUE = "`e[38;2;34;98;147m" # 0x22 0x62 0x93 == 34 98 147
@r0oland
r0oland / .clang-format
Last active July 28, 2025 05:28
Default Python Packages... [Archived]
---
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: 'true'
AlignConsecutiveAssignments: 'true'
AlignOperands: 'false'
AllowAllArgumentsOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'false'
DerivePointerAlignment: 'false'