Skip to content

Instantly share code, notes, and snippets.

View emmeowzing's full-sized avatar
I code for coffee ☕

Emma Doyle emmeowzing

I code for coffee ☕
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Extend the capabilities of _one_ dimensional lists.
More-so an exercise of Python's decorators, magic methods and
OOP.
"""
from warnings import warn
from types import GeneratorType
@emmeowzing
emmeowzing / capture.py
Last active August 19, 2016 05:52
Capure RPi camera images. This script is untested since I don't have a drone and RPi camera to test it on.
#! /usr/bin/env python2
# -*- coding: utf-8 -*-
""" Capure RPi camera images. This script is untested since I don't have a
drone and RPiCam to test it on.
"""
from glob import glob
from serial import Serial, SerialException
from time import sleep
@emmeowzing
emmeowzing / clock.py
Last active July 25, 2016 03:57
A quick coordinate generator for n-dimensional iterations
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def clock(*axes):
""" A quick generator for working with iterations over N-dimensional
arrays. Example usage:
>>> from clock import clock
>>> for i in clock(2, 3):
... print i