Skip to content

Instantly share code, notes, and snippets.

# 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"]
# 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 -
@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.
@lesteve
lesteve / README.md
Last active March 2, 2018 08:52
Greasemonkey script to fold/unfold outdated diffs on github PRs
@lesteve
lesteve / ipkernelapp_outside_main_thread.py
Last active February 22, 2018 02:31
Starting an ipython kernel outside the main thread
import threading
import sys
import signal
# this is the heavy monkey-patching that actually works
# i.e. you can start the kernel fine and connect to it e.g. via
# ipython console --existing
# signal.signal = lambda *args, **kw: None
from IPython.zmq.ipkernel import IPKernelApp
app = IPKernelApp.instance()
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