Skip to content

Instantly share code, notes, and snippets.

View jonathanmorgan's full-sized avatar

Jonathan Morgan jonathanmorgan

View GitHub Profile
@jonathanmorgan
jonathanmorgan / class2-test_drive.ipynb
Last active August 29, 2015 14:13
IPython Notebook with brief tests for software we'll use in class, to make sure it is installed correctly and working.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathanmorgan
jonathanmorgan / class3-bash_ipython_design.ipynb
Last active August 29, 2015 14:13
IPython Notebook that goes over bash shell, IPython, IPython Notebook, and Software Design
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathanmorgan
jonathanmorgan / django_orm_example.ipynb
Last active August 29, 2015 14:18
Brief Django ORM Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathanmorgan
jonathanmorgan / Prepping_data_for_analysis.ipynb
Created April 2, 2015 07:40
Prepping_data_for_analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathanmorgan
jonathanmorgan / good_coding_habits.ipynb
Last active September 1, 2015 07:49
Big Data Basics - Good Coding Habits
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathanmorgan
jonathanmorgan / queryset_iterators.py
Created May 6, 2011 05:40 — forked from dbrgn/queryset_generators.py
queryset_generator and queryset_list_generator
'''
queryset_generator and queryset_list_generator based on:
https://gist.github.com/897894
'''
#===============================================================================
# imports (in alphabetical order by package, then by name)
#===============================================================================
# python standard libraries
@jonathanmorgan
jonathanmorgan / queryset_generators.py
Created March 10, 2012 21:29 — forked from mlissner/queryset_generators.py
Adds a date-based queryset generator
from datetime import datetime
from datetime import timedelta
def queryset_generator(queryset, chunksize=1000):
"""
Iterate over a Django Queryset ordered by the primary key
This method loads a maximum of chunksize (default: 1000) rows in its
memory at the same time while django normally would load all rows in its
memory. Using the iterator() method only causes it to not preload all the
@jonathanmorgan
jonathanmorgan / Intro_to_python.ipynb
Last active November 14, 2016 18:02
class4-Intro_to_python.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathanmorgan
jonathanmorgan / databases_and_python-sqlite3.ipynb
Last active January 12, 2017 11:30
Databases and Python - SQLite 3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonathanmorgan
jonathanmorgan / tools-unix_shell_and_commands.ipynb
Last active January 12, 2017 11:30
Big Data Basics - tools - Unix shell and commands overview
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.