Skip to content

Instantly share code, notes, and snippets.

View Danyc0's full-sized avatar

Dan Clark Danyc0

View GitHub Profile
with open("input.txt") as f:
data = [int(i) for i in f.read().strip().split(',')]
print(data)
last_num = 0
history = {}
for i, num in enumerate(data):
if i != 0:
history[last_num] = i
This file has been truncated, but you can view the full file.
DEBUG: validity91.py:68 - _send_messages
Sending message 0.
DEBUG: validity91.py:202 - log
Sent:
[0x01,]
DEBUG: validity91.py:206 - log
Received:
[0x00, 0x00, 0xf0, 0xb0, 0x5e, 0x54, 0xa4, 0x00,
0x00, 0x00, 0x06, 0x07, 0x01, 0x30, 0x00, 0x01,
0x00, 0x00, 0xd5, 0xfe, 0x89, 0xd0, 0x4c, 0x10,

Keybase proof

I hereby claim:

  • I am danyc0 on github.
  • I am danyc0 (https://keybase.io/danyc0) on keybase.
  • I have a public key whose fingerprint is 770E F47D EAB3 1153 37EC F017 E698 D2D4 F0F2 C3F7

To claim this, I am signing this object:

@Danyc0
Danyc0 / keybase.md
Created November 17, 2014 23:31
keybase.md

Keybase proof

I hereby claim:

  • I am danyc0 on github.
  • I am danyc0 (https://keybase.io/danyc0) on keybase.
  • I have a public key whose fingerprint is 726B 7B85 410B 31F5 7746 C204 B34E 3DBA 437A 2E15

To claim this, I am signing this object:

@Danyc0
Danyc0 / SailbotReview
Created July 2, 2014 19:14
Sailbot2014 Review
Sailbot 2014 -
On the first day of competitions we tried to compete in the fleet race, which is designed to be done on Remote Control, with our high wind sails for added speed, which retrospectively was a big mistake as it gave us huge amounts of weather helm and we ended up sailing into some rocks, leaving us with a Did Not Finish.
The next day we did the fleet race again but had the same problem as the day before and got another Did Not Finish. On day two we also entered the Station Keeping challenge with our smaller set of sails and we managed to get a good time of 5:14, but it was on RC so we only got half marks. This was also our last chance to compete in the Accuracy challenge but we were having strange problems with our control system so we didn't make it in time.
Day three was the group presentations. The judges for the presentations included the creators of Saildrone and the founder of Sailbot (Who also happens to be one of the design team for the New Zealand entry into the Americas Cup!). Due to