Skip to content

Instantly share code, notes, and snippets.

View jaywgraves's full-sized avatar
🦑

Jay Graves jaywgraves

🦑
View GitHub Profile
import string
lookup = dict(zip(string.ascii_lowercase, range(1,27)))
calc = lambda txt: sum(lookup.get(x,0) for x in txt.lower())
#calc("aaa") # -> 3
calc("niiiicccee")
Verifying that +jaywgraves is my blockchain ID. https://onename.com/jaywgraves

Keybase proof

I hereby claim:

  • I am jaywgraves on github.
  • I am jaywgraves (https://keybase.io/jaywgraves) on keybase.
  • I have a public key ASB82Yt05Z9zoAlhq9evtUI173Mm3misa8pXJNkHBvBQsQo

To claim this, I am signing this object: