Skip to content

Instantly share code, notes, and snippets.

@crisguitar
crisguitar / keybase.md
Created April 27, 2015 17:24
keybase.md

Keybase proof

I hereby claim:

  • I am crisguitar on github.
  • I am cpinto (https://keybase.io/cpinto) on keybase.
  • I have a public key whose fingerprint is BE0A 2A1F C887 3206 A700 DEF9 F92B A5A4 6A6F 3D96

To claim this, I am signing this object:

@crisguitar
crisguitar / gist:3cebdeb402c7a4324e48
Last active August 29, 2015 14:13
Unique & ordered permutations in python
def unique_permutations(word):
from itertools import permutations
for x in sorted(set([''.join(p) for p in permutations(word)])): print x
unique_permutations('abc')