Skip to content

Instantly share code, notes, and snippets.

"""
Clones all of a GitHub organization's public repositories.
Includes a ``.repo-metadata.json`` in each repository with GitHub's
data on the repo.
"""
import itertools
import json
import os
import os.path
@catherinedevlin
catherinedevlin / ddl-mongo-intro,ipynb
Created November 14, 2013 05:37
From Dayton Dynamic Languages Nov 13 meeting on MongodDB
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@catherinedevlin
catherinedevlin / getvalue.py
Last active December 28, 2015 00:19
Simple IPython magic that gets a value; used to demo a problem
from IPython.core.magic import Magics, magics_class, line_magic
@magics_class
class GetValueMagics(Magics):
@line_magic
def getvalue(self, line=''):
var_name = line.split()[0]
return self.shell.user_ns[var_name]
def load_ipython_extension(ip):
@catherinedevlin
catherinedevlin / gist:6588378
Last active December 23, 2015 05:39
IPython Notebook: your new SQL Client (lightning talk from PostgresOpen 2013)
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@catherinedevlin
catherinedevlin / Python_intro
Last active December 22, 2015 23:19
Python presentation at APCUG 2013 Regional conference: http://rleevanceapcug.wix.com/apcug-2013-regional
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@catherinedevlin
catherinedevlin / food_order_pyohio2013
Last active December 19, 2015 05:49
Food order for PyOhio 2013 (proposed)
{
"metadata": {
"name": "food_order_pyohio2013"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@catherinedevlin
catherinedevlin / video_count.ipynb
Last active December 17, 2015 16:09
Count of views of PyOhio 2012 videos at pyvideo.org
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@catherinedevlin
catherinedevlin / SQL_Comparitor.ipynb
Created May 3, 2013 23:06
Class for IPython or IPython Notebook that compares query results across multiple database connections.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@catherinedevlin
catherinedevlin / writers.ipynb
Created March 29, 2013 18:34
ipython-sql %%sql magic demonstration
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.