Skip to content

Instantly share code, notes, and snippets.

View hausdorff's full-sized avatar
🔜
Soon.

Alex Clemmer hausdorff

🔜
Soon.
View GitHub Profile
from 0.521739 r0 1000 0.523077
which 0.456522 r0 1001 0.403846
also 0.369565 r0 1002 0.319231
has 0.347826 r0 1003 0.303846
its 0.293478 r0 1004 0.255769
used 0.282609 r0 1005 0.215385
other 0.282609 r0 1006 0.278846
some 0.26087 r0 1007 0.198077
one 0.23913 r0 1008 0.296154
system 0.228261 r0 1009 0.178846
which 0.456522000000 1 25
also 0.369565000000 1 25
one 0.239130000000 1 25
other 0.282609000000 1 25
have 0.195652000000 1 25
has 0.347826000000 1 25
its 0.293478000000 1 25
been 0.152174000000 1 25
were 0.184783000000 1 25
first 0.184783000000 1 25
An alternative to (some of) the Ruby standard library
Have you ever thought “gee, Ruby's standard library could use a bit of polish?”
Have you ever followed this thought with “I sure love Python's from x import y. I wonder if we can get something like that in Ruby?”
Do you wish Ruby's socket API was nicer?
Do you wish there was a better way to handle default values than throwing nils everywhere?
Then try Heresy today!

In early 2013 I transitioned from a developer to a manager of a team of 3 when my manager left suddenly. It took me over two years (and doubling the team size) until I felt like I really understood what it meant to be a manager and thought I was adding value. Here are a few things I’ve learnt and tips others gave to me.

Less Coding

By far the hardest thing for me to realize was that I needed to cut back the amount of coding that I did. There’s only so many hours in a day and I was finding that I could either code or do other, more managerial things, without working a lot of overtime. This is something my boss kept mentioning to me and it was something I was extremely resistant to in the beginning. Since I’d been a developer for my entire career, and programming since I was 15, I thought the way I added value to the company was by writing more code.

It wasn’t until 18 months after I became a manager that I finally started realizing that I could provide value to the company by doing things other than coding.

An Embedded Key / Value Store for Shell Scripts

UPDATE: this is now available as a sub command, here: kiev Cooked this up last night when I needed a simple key/value store for use in a shell script: db.sh

#!/bin/sh

DBFILE=example.db

It has been a few days since snow covered trees decorating and standing tall upon snow capped mountains in Lake Tahoe has been the view I woke up to. I was lucky to be able to attend the first Montues event and become a part of the Epicurrence alumni and family. It was an experience like no other. It was also one that I would not have been able to have as a memory if it wasn’t for me being able to go. I’m going to elaborate more on the overall experience of being there in another post. For this post, I want to talk about what the event inspired me to do. It forced me to open up more and reach out to people more.

The last night of the event I was able to meet a Creative Director, who like me, has a disability. It was nice to be able to connect with someone who genuinely understood that it can be isolating in this industry at times. Often times, we are not included during the product design ideation process and honestly, it’s disheartening. The more I notice that products especially games and websites lack acc

Deep Q-Learning (Space Invaders)
09 MAR 2016
Ever since I learned about neural networks playing Atari games I wanted to reimplemnted it and learn how it works. Below you can see an AI playing Space Invaders. I trained it during my batch at Recurse Center on little over 50M frames.
0:08
It is more awesome if you realize that the AI was trained in a similar way a human would learn: the only inputs are screen and number of gained (or lost) points after each action taken by the AI.
DQN does much better then a best-action strategy (do nothing but shoot) and random strategy.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
git remote add aphyr https://github.com/aphyr/jepsen && git fetch aphyr && git checkout aphyr/master
apt-get install -y vim
cd jepsen && lein install
echo $(pwd)
cd ../mongodb
[
{
"service": "_poolprocess._tcp.sprites.mesos",
"host": "localhost",
"ip": "127.0.0.1",
"port": "5000"
}
]