Skip to content

Instantly share code, notes, and snippets.

View adonoho's full-sized avatar

Andrew W. Donoho adonoho

View GitHub Profile
@adonoho
adonoho / generator.py
Last active August 29, 2015 13:56
Counters, Closures and Generators
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import collections
__author__ = 'Andrew W. Donoho, <github@store.ddg.com>'
__copyright__ = 'Public Domain'
def counter() -> collections.Iterator:
### Keybase proof
I hereby claim:
* I am adonoho on github.
* I am adonoho (https://keybase.io/adonoho) on keybase.
* I have a public key whose fingerprint is D83D 9CC8 E240 AFB0 95EC D1AC B7F3 ED32 81D0 F250
To claim this, I am signing this object:
@adonoho
adonoho / iOS_device_types.txt
Last active February 11, 2022 13:04 — forked from adamawolf/Apple_mobile_device_types.txt
List of iOS device codes types a.k.a. machine ids (e.g. iPhone1,1) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)