Skip to content

Instantly share code, notes, and snippets.

@ReneHamburger1993
ReneHamburger1993 / install_vmd_plugin.md
Created September 10, 2020 14:59 — forked from tonigi/install_vmd_plugin.md
Install a VMD plugin

Installation of VMD plugins

These are common instructions for my VMD plugins.

Before you begin. Download the latest release and extract it in a directory of your choice.

Method 1: use VMD's preference manager (VMD 1.9.2 and higher)

@ReneHamburger1993
ReneHamburger1993 / boostnote2md.py
Last active September 7, 2020 17:11 — forked from weaming/boostnote2md.py
Convert boostnote cson format data to markdown
#!/usr/bin/env python3
# coding: utf-8
"""
Author : weaming
Created Time : 2018-05-26 21:32:59
Prerequisite:
python3 -m pip install cson arrow
"""
import json
import os
@ReneHamburger1993
ReneHamburger1993 / snippet.py
Created September 7, 2020 15:53
[pandas Columns or Index] add new level #python #pandas #columns #index #add #level #multilevel
# pandas stuff
```python
#add a level in the columns below all current ones
df.columns = pd.MultiIndex.from_product([df.columns, ['C']])
```
```python
@ReneHamburger1993
ReneHamburger1993 / fancy_cmaps.py
Created June 20, 2020 19:17 — forked from dmyersturnbull/fancy_cmaps.py
Nice extra colormaps for matplotlib.
class FancyCmaps:
"""
Useful colormaps for matplotlib. Most importantly:
- white_red
- white_blue
- blue_white
- white_black
The built-in matplotlib ones don't actually go between pure color values!!
For ex, 'Greys' doesn't go from pure white to pure black!
So colormaps to consider avoiding include Greys, Blues, Greens, (etc), bwr, and seismic.