Skip to content

Instantly share code, notes, and snippets.

View BielStela's full-sized avatar
🕳️
!

Biel Stela BielStela

🕳️
!
View GitHub Profile
@BielStela
BielStela / colorschemes_default.json
Last active March 5, 2019 14:21
tmux powerline sync segment
# config_files/colorschemes/default.json
...
"synchronized_panes": { "fg": "red", "bg": "gray0", "attrs": [] }
...
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BielStela
BielStela / .bashrc
Last active April 13, 2018 15:40
Git status on bash prompt
# PS1 customization
NC='\001\033[0m\002'
RED='\001\033[00;31m\002'
GREEN='\001\033[00;32m\002'
YELLOW='\001\033[00;33m\002'
BLUE='\001\033[00;34m\002'
PURPLE='\001\033[00;35m\002'
CYAN='\001\033[00;36m\002'
@BielStela
BielStela / mol_structure_bokeh.py
Last active December 21, 2017 15:22
Show the molecular 2D structure in the hover tool of a Bokeh plot
from bokeh.plotting import figure, output_notebook, show
from bokeh.models import ColumnDataSource, HoverTool, CrosshairTool, WheelZoomTool
from bokeh.models import ColorBar, ResetTool, PanTool, LinearColorMapper
import bokeh.palettes as palettes
import matplotlib as mpl
output_notebook()
def get_structures(mol_df):