Skip to content

Instantly share code, notes, and snippets.

View sampathweb's full-sized avatar

Ramesh Sampath sampathweb

  • San Francisco, CA
View GitHub Profile
@sampathweb
sampathweb / tmux-cheatsheet.markdown
Created November 9, 2017 07:06 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sampathweb
sampathweb / canonical_restaurant_names.py
Created July 22, 2016 16:21 — forked from pjbull/canonical_restaurant_names.py
Boston restaurants to canonical name and address
import re
import sys
import unicodedata
import pandas as pd
def clean_string(s):
if isinstance(s, unicode):
s = unicodedata.normalize('NFKD', s).encode('ascii', 'ignore')
@sampathweb
sampathweb / jupyter_notebook_config.py
Created July 22, 2016 15:57 — forked from pjbull/jupyter_notebook_config.py
Create .py and .html on save of Jupyter notebook
import os
import shutil
from nbconvert.nbconvertapp import NbConvertApp
from nbconvert.postprocessors.base import PostProcessorBase
class CopyToSubfolderPostProcessor(PostProcessorBase):
def __init__(self, subfolder=None):
self.subfolder = subfolder