Skip to content

Instantly share code, notes, and snippets.

@aminnj
aminnj / heputils.py
Last active November 22, 2020 05:37
utilities for pandas + ROOT (via monkeypatching pandas)
import time
import numpy as np
import pandas as pd
import uproot
from yahist import Hist1D, Hist2D
from pandas.core.base import PandasObject
from cachetools import cached, LRUCache
from cachetools.keys import hashkey
def myhasher(*args, **kwargs):
@aminnj
aminnj / seamcarving.ipynb
Created September 9, 2020 21:36
Seam carving in python (basically https://www.youtube.com/watch?v=rpB6zQNsbQU but I don't want to learn Julia)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aminnj
aminnj / install_vim.md
Created July 9, 2018 01:50
installing vim8.1 on slc7 computers

Execute the commands chunk by chunk because I haven't tested this as a whole

# setup environment
cd /cvmfs/cms.cern.ch/slc7_amd64_gcc630/cms/cmssw/CMSSW_10_2_0_pre6/ ; cmsenv ; cd -

# make containment folder somewhere and get vi
mkdir vim8
cd vim8
git clone https://github.com/vim/vim
@gizmaa
gizmaa / Plot_Examples.md
Last active June 11, 2025 03:13
Various Julia plotting examples using PyPlot