Skip to content

Instantly share code, notes, and snippets.

Avatar

John Maguire JohnMaguire

View GitHub Profile
View gist:1367482
>>> for key, value in audio.tags.iteritems():
... print key
...
APIC:
TLEN
TDRC
TIT2
APIC:Front cover
TRCK
TPE2
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 lagzilla.py
def generator():
yield 1
yield 2
yield 3
for v in generator():
print(v)
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 rc.lua
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
You can’t perform that action at this time.