Skip to content

Instantly share code, notes, and snippets.

John Maguire JohnMaguire

Block or report user

Report or block JohnMaguire

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8cc5294ea6cf35dd0064fbbb8864be8c
Python 2.7.17 (default, Oct 22 2019, 09:14:09)
[GCC 9.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d = {'foo': None, 'bar': None}
>>> fs = []
>>> for k, _ in d.items():
... def test():
... return k
... fs.append(test)
...
View lagzilla.py
def generator():
yield 1
yield 2
yield 3
for v in generator():
print(v)
View keybase.md

Keybase proof

I hereby claim:

  • I am johnmaguire on github.
  • I am johnmaguire (https://keybase.io/johnmaguire) on keybase.
  • I have a public key whose fingerprint is 74E0 3311 17FC B721 C125 C430 19BE AD94 6ED2 DEE5

To claim this, I am signing this object:

View gist:1367482
>>> for key, value in audio.tags.iteritems():
... print key
...
APIC:
TLEN
TDRC
TIT2
APIC:Front cover
TRCK
TPE2
You can’t perform that action at this time.