Skip to content

Instantly share code, notes, and snippets.

Avatar

Min RK minrk

View GitHub Profile
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
View javascript.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View table-formatter.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test-auth.py
import json
import os
from urllib.parse import parse_qs
from tornado.httpclient import AsyncHTTPClient, HTTPRequest
from tornado.httpserver import HTTPServer
from tornado.httputil import url_concat
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging, app_log
from tornado.options import define, options, parse_command_line
View test-embed.py
import asyncio
async def dots():
while True:
await asyncio.sleep(0.25)
print('.')
async def embed_later():
await asyncio.sleep(1)
import IPython
View test-skip.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bench.py
"""
usage: python bench.py results.csv
"""
import os
import shutil
from subprocess import Popen
import sys
import tempfile
import time
You can’t perform that action at this time.