Skip to content

Instantly share code, notes, and snippets.

# Adapated from https://github.com/mxschmitt/action-tmate/blob/master/src/index.js
set -e
echo "Downloading tmate"
cd /tmp
wget https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz
tar xvf tmate-2.4.0-static-linux-amd64.tar.xz
tmate_path="/tmp/tmate-2.4.0-static-linux-amd64/tmate"
cd -
# Adapted from https://gist.github.com/thomasjpfan/edef5d164d2992a2abd16e334ff59c79
from collections import defaultdict
import os
import re
from github import Github
token = os.environ["GITHUB_TOKEN"]
@lesteve
lesteve / surfingkeys-setup.js
Last active February 6, 2022 09:25
Surfingkeys setup
settings.hintAlign = 'left';
settings.defaultSearchEngine = 'd';
// vimium-like settings
api.map("J", "E");
api.map("K", "R");
api.map("H", "S");
api.map("L", "D");
@lesteve
lesteve / dask-tutorial-chat-2020-06-19.md
Last active June 21, 2020 06:29 — forked from mrocklin/dask-tutorial-chat-2020-06-19.md
The transcripts of the Dask tutorial presented on 2020-06-19

01:36:09 Matthew Rocklin Afternoon!
01:36:18 garanews Hello there
01:36:23 Arnab Biswas Hello!
01:40:28 robbie Hi all, slightly weird question but is anyone talking right now? Just checking to see if my sound is working
01:41:15 Jonas Bostelmann Hi, nobody is talking at the moment! :-)
01:41:52 robbie Great, thanks!
01:44:31 chelle gentemann i feel like hold music should be playing.
01:45:04 Jacob Tomlinson Oooh good idea for next time!
01:45:15 chelle gentemann someone could sing...
01:46:18 Matthew Rocklin +1

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lesteve
lesteve / dask-demo-rioc.ipynb
Created September 20, 2018 09:05
Dask demo on the RIOC cluster
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lesteve
lesteve / README.md
Last active March 2, 2018 08:54
Greasemonkey script that adds a button to the PR page to open the doc generated by CircleCI for this PR.
from copy import copy
import numpy as np
from sklearn.base import clone
from sklearn.utils import check_random_state
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.externals import joblib
@lesteve
lesteve / resize_smart_cython_0.21.1.ipynb
Created October 18, 2016 14:21
cython resize_smart speed regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lesteve
lesteve / README.md
Last active March 2, 2018 08:52
Greasemonkey script to fold/unfold outdated diffs on github PRs