This looks cybre as fuuuuck and I wish I had known about this when the campaign was going on https://www.kickstarter.com/projects/flashes/flashes-fun-interactive-led-lashes/
Watching Waypoint's XCOM 2 videos. They have a soldier named Alexei. My Echo is very confused.
"radioactive cattle flipping bits" is my favorite circa survive song, btw
I somehow had never heard of "radioactive cattle flipping bits" until @mattgen88 shared it in our work chat http://www.jakepoz.com/debugging-behind-the-iron-curtain/
LB oh I thought those both said "tired"
I am very tired
https://github.com/Sigafoos/advent/blob/master/2017/go/day15.go is the code. First time using goroutines but I think #adventofcode Day 15 was the perfect fit (especially part 2).
Wow only took 48 seconds that way!
Go: tell your friends.
Update: checked in and realized I had swapped the order of parameters like a doofus. So if it WOULD ever end I’d have gotten the wrong answer anyway.
*starts a process that will generate >10mil numbers*
*goes to bed*
Makes me feel like an action hero walking away from an explosion.
(BUT: goroutines, baby)
(BUT: running on a pi)
Oxenfree is free atm on GoG. There should be a button on their main page to add it to your account!
(I searched and think I understand it but, minus "siri", that's how I searched for it)
siri what the fuck does bless mean in perl
You can tell work is going ~super great~ when my one on one notes start with “fuck this fuck this fuck this”
It doesn’t have the conciseness of Python (or the golfing of Perl) but I think it’s really nice. I enjoyed writing it, and looking at it and using it.
Have I mentioned that I really really like golang?
I might eventually shut up about #adventofcode but it’s the only programming I do for fun right now (work being a capitalist hellscape). Day 10 is creating a “knot hash”. Day 14 requires you use the hash, so I exported it as a package and boom it’s one function call.
Plus “container/ring” provides an intuitive way to modify a string that wraps around without needing to use modulo slices.
Did #adventofcode day 6 in go. I've been using Python because I'm lazy.
Solution (includes part 2 spoiler): https://github.com/Sigafoos/advent/blob/master/2017/go/day06.go
It's funny how much list comprehension/etc I take for granted. I had to write a max() method!
I'd like to try day 6 in Python and compare the time difference, though. 0.5 seconds in go as it is.
Advent of Code day 1 (py) Show more
with open('../inputs/01.txt') as fp:
captcha = fp.readline().strip()
pattern = re.compile(r'([\d])(?=\1)')
matches = pattern.findall(captcha)
if captcha == captcha[-1]:
print "Part 1: %s" % sum(map(lambda x: int(x), matches))
matches = 
length = len(captcha)
for i in xrange(length):
if captcha[i] == captcha[(i + length/2) % length]:
print "Part 2: %s" % sum(map(lambda x: int(x), matches))