Skip to content

Instantly share code, notes, and snippets.

@theneubeck
Created July 5, 2012 08:59
Show Gist options
  • Save theneubeck/3052462 to your computer and use it in GitHub Desktop.
Save theneubeck/3052462 to your computer and use it in GitHub Desktop.
Hard-to-remember snippets in Python

create

/server irc.freenode.net /join stockholmcode /msg chanserv REGISTER #stockholmcode c0derz Stockholm Code Talk

join

/server irc.freenode.net /join stockholmcode #c0derz

# pretty print : pp({ "a" : 1 })
import pprint
printa = pprint.PrettyPrinter(indent=4)
pp = lambda s: printa.pprint(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment