Skip to content

Instantly share code, notes, and snippets.

View vladmos's full-sized avatar
:octocat:

Vladimir Moskva vladmos

:octocat:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vladmos on github.
  • I am vladmos (https://keybase.io/vladmos) on keybase.
  • I have a public key whose fingerprint is BFCC 7203 3E98 E1CA 50DE A942 D5C1 787E 3BE3 56D7

To claim this, I am signing this object:

10 This is the song, that never ends
20 It just keeps go and go my friends
30 Some people started singing it, not knowing what it was
40 And now they just can't stop to sing forever just because
50 GOTO 10
@vladmos
vladmos / 1337.py
Created February 2, 2012 12:34
Estimates estimated value of number of rolls required to get 2 consequent "6" with a dice.
import random
def dice_sequence():
while True:
yield random.randint(1, 6)
def pair(sequence):
iterator = iter(sequence)
previous, current = iterator.next(), iterator.next()
while True: