Skip to content

Instantly share code, notes, and snippets.

@Ikke
Last active August 29, 2015 13:56
Show Gist options
  • Save Ikke/9231609 to your computer and use it in GitHub Desktop.
Save Ikke/9231609 to your computer and use it in GitHub Desktop.
>>> current = 89
>>> new = 5
>>> while current % 96 != new:
... print("Sending: " + str(current % 96))
... current += 1
...
Sending: 89
Sending: 90
Sending: 91
Sending: 92
Sending: 93
Sending: 94
Sending: 95
Sending: 0
Sending: 1
Sending: 2
Sending: 3
Sending: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment