Skip to content

Instantly share code, notes, and snippets.

Avatar

Min RK minrk

View GitHub Profile
@minrk
minrk / sorting-dates.ipynb
Created Oct 28, 2020
sorting-dates.ipynb
View sorting-dates.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View async-retry-fetch.py
"""General utilities"""
import asyncio
import json
import socket
import time
from tornado.httpclient import AsyncHTTPClient, HTTPClientError
from tornado.log import app_log
from tornado.simple_httpclient import HTTPTimeoutError
View mybinder-diff
#!/usr/bin/env bash
# use helm 2, assumes homebrew
export PATH=/usr/local/opt/helm@2/bin:$PATH
deployments="$@"
if [[ -z "$deployments" ]]; then
deployments="staging prod ovh" # turing
fi
View test.py
import asyncio
from multiprocessing import Process
import random
import statistics
import sys
import time
import zmq
import zmq.asyncio
View test.py
import asyncio
from multiprocessing import Process
import random
import statistics
import sys
import time
import zmq
import zmq.asyncio
View monte-carlo-pi.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.py
import os
from tempfile import TemporaryDirectory
from subprocess import check_call
with TemporaryDirectory() as td:
env = {
"HOME": td,
"GIT_COMMITTER_EMAIL": "test@example.com",
"GIT_COMMITTER_NAME": "test",
View my_jupyter_extension.py
"""
Extension to list active kernels
attempting to sort by likely 'focus'
"""
from tornado import web
from notebook.base.handlers import IPythonHandler
from notebook.utils import url_path_join
View nginx.log.txt
-------------------------------------------------------------------------------
NGINX Ingress controller
Release: 0.26.1
Build: git-2de5a893a
Repository: https://github.com/kubernetes/ingress-nginx
nginx version: openresty/1.15.8.2
-------------------------------------------------------------------------------
I0304 13:41:04.619670 8 flags.go:198] Watching for Ingress class: nginx
View profile_startup.py
import asyncio
import cProfile
import os
import pstats
import sys
from threading import Thread
import time
from jupyterhub.app import JupyterHub
from jupyterhub import orm
You can’t perform that action at this time.