Skip to content

Instantly share code, notes, and snippets.

View bobmayuze's full-sized avatar
🤟
Exploring the future

Yuze Ma bobmayuze

🤟
Exploring the future
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 16, 2024 16:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@bhishanpdl
bhishanpdl / bokeh_interactive_histogram.py
Created October 5, 2018 03:42
Bokeh interactive histogram #bokeh #histogram #interactive
def interactive_histogram(df,col,n_bins,bin_range,title,x_axis_label,x_tooltip):
"""Plot interactive histogram using bokeh.
df: pandas dataframe
col: column of panda dataframe to plot (eg. age of users)
n_bins: number of bins, e.g. 9
bin_range: list with min and max value. e.g. [10,100] age of users.
title: title of plot. e.g. 'Airnb Users Age Distribution'
x_axis_label: x axis label. e.g. 'Age (years)'.
x_tooltip: x axis tooltip string. e.g. 'Age'