Skip to content

Instantly share code, notes, and snippets.

View nicktimko's full-sized avatar

Nick Timkovich nicktimko

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nicktimko
nicktimko / gist:39a41948cff170ae7d0b
Last active August 29, 2015 14:16
Linked List Fibonacci from DL
### Douglas Lewit is the author of this Python program. Written in Python 2.7.6.
### An example of using a linked list in Python to generate a Fibonacci sequence.
class Node:
def __init__(self, value, previous=None, next_=None):
self.value = value
self.previous = previous
self.next = next_
def __str__(self):
@nicktimko
nicktimko / gist:15511c07bf494b510205
Created March 24, 2015 16:25
Brief Numpy intro
{
"metadata": {
"name": "",
"signature": "sha256:8a42cba00ac130c14461b6a63e14a5c1effb8f57ca3d24838d4bed68762294e9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@nicktimko
nicktimko / web_filter.ipynb
Created April 2, 2015 00:48
pots-filter-test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import statistics
#Let's ask a few questions of our data.
#1. How much crime has occurred in Chicago since 2010?
#2. What are the top 5 most frequent offenses?
#3. How much do those contribute to the total crime each year?
#The first question should follow directly from where we left off
def read_data(file_name):
"""Functions should have docstrings explaining their use succinctly."""
@nicktimko
nicktimko / QR-golf.ipynb
Created March 5, 2016 07:07
QR Code Golf
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nicktimko
nicktimko / summon_zalgo.ipynb
Created June 15, 2016 22:32
Lazy XML parsing with regex :(
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.