Skip to content

Instantly share code, notes, and snippets.

@willingc
willingc / index_django_docs_to_elasticsearch.py
Created August 21, 2016 17:34 — forked from simonw/index_django_docs_to_elasticsearch.py
Example code for converting Django docs into a format suitable for import into Elasticsearch - for a talk I'm giving.
#!/usr/bin/env python
import re
import os
import urlparse
import hashlib
import json
import sys
title_re = re.compile(r'([=*]{3,})\n([^\n]+)\n\1\n')
#!/usr/bin/env ruby
# usage:
# ruby all-releases ipython jupyter jupyterlab jupyterhub
# dependencies:
# gem install netrc octokit activesupport faraday-http-cache
require "rubygems"
require "octokit"
@willingc
willingc / test.py
Created September 6, 2017 15:34 — forked from minrk/test.py
"""
Python implementation of https://github.com/jupyterhub/jupyterhub/issues/1261
"""
import json
import requests
username = 'minrk'
password = 'secret'
hub_url = 'http://127.0.0.1:8765'
"""
Script to get watchers/stars/forks for all repos on a github organization
Set GITHUB_API_TOKEN environment variable if you are hitting the API rate limit
Requires pygithub and Python 3.6:
pip install pygithub
Usage:
"""
Script to get watchers/stars/forks for all repos on a github organization
Set GITHUB_API_TOKEN environment variable if you are hitting the API rate limit
Requires pygithub and Python 3.6:
pip install pygithub
Usage:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.