Skip to content

Instantly share code, notes, and snippets.

View lewellent's full-sized avatar

Todd Lewellen lewellent

View GitHub Profile
@lewellent
lewellent / flatten.py
Last active March 13, 2016 19:24
Sample code for Citrusbyte application
# flatten.py
def flatten(int_list):
"""
Recursive function that transforms an arbitrarily nested list of integers into a flat list of integers.
:param int_list: nested list of integers
:return: list of integers
"""
@lewellent
lewellent / fifo_set_queue.py
Created June 8, 2014 17:28
FIFO Set Queue for Redis (Python)
__author__ = "Todd Lewellen"
"""
The MIT License (MIT)
Copyright (c) 2014 Todd Lewellen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights