Skip to content

Instantly share code, notes, and snippets.

View escorciav's full-sized avatar
🎯
Employee 💼🕘📇🕠

Victor Escorcia escorciav

🎯
Employee 💼🕘📇🕠
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

# every input file has a different length,
# so I first scan through the files, compute their length,
# `self.lengths` here is an array of cumulative lengths
# so first I create the dataset for full length with resize(lengths[-1])
# then I fill it in.
def run(self):
with h5py.File(self.filename, mode='w') as h5f:
for n, fitsfile in enumerate(self.files):
print("Processing %s" % fitsfile)

Using Torch in Atom

Install Atom from https://atom.io or with brew cask install atom

Then install packages (example apm install hydrogen, apm is a package manager for atom):

  • hydrogen
  • autocomplete-paths
  • language-lua
@bshillingford
bshillingford / arxiv2kindle.ipynb
Last active March 1, 2024 12:50
arxiv2kindle: recompiles an arxiv paper for kindle-sized screens, and sends it to your wifi-enabled kindle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.