Skip to content

Instantly share code, notes, and snippets.

View telamonian's full-sized avatar

Max Klein telamonian

View GitHub Profile
@telamonian
telamonian / README.md
Last active March 31, 2021 04:09
tree-finder simple try-it-out live demo

A basic example of using a <tree-finder> element to render and interact with a simple mock filesystem. The tree-finder.js script and some associated stylesheets are dynamically fetched at page load via the jsdelivr cdn.

tree-finder

@telamonian
telamonian / _regular-table_row_height_bug_repro.md
Created March 30, 2021 06:36
row height bug repro for `regular-table` that shows how having a "fat" row breaks the calculation of number of rows to render

null

@telamonian
telamonian / _regular-table_flex_layout_bug_repro.md
Last active March 30, 2021 06:47
flex_layout_bug repro for `regular-table`

null

A basic example of using a <tree-finder> element to render and interact with a simple mock filesystem. The tree-finder.js script and some associated stylesheets are dynamically fetched at page load via the jsdelivr cdn.

tree-finder

@telamonian
telamonian / README.md
Last active March 31, 2021 04:05
tree-finder basic example

A basic example of using a <tree-finder> element to render and interact with a simple mock filesystem. The tree-finder.js script and some associated stylesheets are dynamically fetched at page load via the jsdelivr cdn.

tree-finder

@telamonian
telamonian / register-jupyter-env
Last active March 3, 2021 11:46 — forked from thvitt/register-jupyter-env
Register a jupyter kernel for the current pyenv (with fix for Jupyter servers running in virtualenvs).
#!/bin/sh
if [ "$PYENV_VERSION" -ne "" ]
then
name=`pyenv version-name`
python=`pyenv which python`
else
name=`basename "$VIRTUAL_ENV"`
python="$VIRTUALENV/bin/python"
fi
@telamonian
telamonian / gist:c13f656c9e74b026e797b476505f3f98
Created September 30, 2020 04:24
parse string into numpy-style slice object

My problem: jupyterlab/jupyterlab-hdf5#4

I realllllly want to avoid having to write my own parser for this. Here's my best (very hacky) attempt so far:

# adapted from https://stackoverflow.com/a/43090200/425458

def parseSlice(sliceStr):
 return tuple((slice(*(int(i) if i else None for i in part.strip().split(':'))) if ':' in part else int(part.strip())) for part in sliceStr.split(','))
@telamonian
telamonian / xbox-one-wireless-protocol.md
Created June 16, 2020 03:57 — forked from alfredkrohmer/xbox-one-wireless-protocol.md
XBox One Wireless Controller Protocol

Physical layer

The dongle itself is sending out data using 802.11a (5 GHz WiFi) with OFDM and 6 Mbit/s data rate:

Radiotap Header v0, Length 38
    Header revision: 0
    Header pad: 0
    Header length: 38
    Present flags
@telamonian
telamonian / index.html
Last active May 27, 2020 20:48
regular-table/File Browser
<!--
Copyright (c) 2020, the Regular Table Authors.
This file is part of the Regular Table library, distributed under the terms of
the Apache License 2.0. The full license can be found in the LICENSE file.
-->
<!DOCTYPE html>
### Keybase proof
I hereby claim:
* I am telamonian on github.
* I am telamonian (https://keybase.io/telamonian) on keybase.
* I have a public key ASDHE221s_byyc95DHyR0mC0Pg5Nv-PhyK3yEap85xbOHQo
To claim this, I am signing this object: