Skip to content

Instantly share code, notes, and snippets.

View robnagler's full-sized avatar

Rob Nagler robnagler

View GitHub Profile
@robnagler
robnagler / use-paginations.vue
Created June 4, 2025 21:04
XFEL DAMNIT-web Pagination widget rewrite
// https://github.com/European-XFEL/DAMNIT-web/blob/fd5658ab64654a27830b5868cb0d743607ae230d/frontend/src/features/table/use-pagination.ts
export function usePagination(proposal, pageSize = 10) {
const store = useAppStore()
const pages = new Pages(store)
const visibleRegion = reactive({
x: 0,
y: 0,
width: 0,
height: 0
@robnagler
robnagler / shell-which.txt
Created March 12, 2019 23:02
pyenv subprocess.call PYENV_VERSION behaves differently than shell
$ pyenv global 2.7.14
$ PYENV_DEBUG=1 PYENV_VERSION=3.6.6 pyenv which py.test
+ [pyenv:22] enable -f /home/vagrant/.pyenv/bin/../libexec/pyenv-realpath.dylib realpath
+ [pyenv:29] '[' -z '' ']'
++ [pyenv:31] type -p greadlink readlink
++ [pyenv:31] head -1
+ [pyenv:31] READLINK=/usr/bin/readlink
+ [pyenv:32] '[' -n /usr/bin/readlink ']'
+ [pyenv:54] '[' -z '' ']'
+ [pyenv:55] PYENV_ROOT=/home/vagrant/.pyenv
@robnagler
robnagler / adf
Created March 24, 2017 23:40
adf
f
@robnagler
robnagler / keybase.md
Created July 23, 2016 02:14
keybase.md

Keybase proof

I hereby claim:

  • I am robnagler on github.
  • I am robnagler (https://keybase.io/robnagler) on keybase.
  • I have a public key ASD_egfVpGfliNNCYul9yRqrKUsUcI-i-n_0lu_Grug3uQo

To claim this, I am signing this object:

@robnagler
robnagler / README.md
Last active August 29, 2015 14:05
Heatmap with resettable zoom