ELLERY PRISK

Hooking into Github

It’s pretty simple to get information from your Github PRs using webhooks. Let’s say you want a form of changelog and the titles of your PR are good enough. Github will send you information about the PR which you can then pick apart to do what you need with it.

October 2, 2016 . Rails

Group by fun

Noticed a subtle difference in the output from a group on a relation in rails. Let’s say we want to count the number of users by the month they were created in. Here’s two ways to write that query:

August 9, 2016 . Rails

TIL What Database Cleaner Is For

Ever seen Database Cleaner in a project? “Strategies for cleaning databases in Ruby. Can be used to ensure a clean state for testing”. I was playing around with the test helper and removed Database Cleaner to see what would happen. I noticed in a unit test that nothing is ever saved to the database. So what exactly does Database Cleaner clean? Let’s try it out.

November 22, 2014 . Coding

Chef Ohai dependency not found

TL;DR Install chef version 11.10.4

April 13, 2014 . Coding

RAIN{Indie} Behaviour Tree Custom Action

This has been sitting at 90% done for a while now. Rival Theory is making some changes so I thought I’d better hurry up with this before it becomes irrelevant. Like I mentioned in the last post, I had to use RAIN{Indie} this year in a group project at university, and that involved making custom actions. Building off of the last tutorial, we now want the AI to patrol, and when they detect something, move towards it. Here’s how I did it.

October 27, 2013 . Coding

How I created an AI with RAIN{Indie} and Unity3D

Click here for the follow up post about creating custom actions. Earlier this year, I was introduced to Unity through a group project at university. In that project, my group needed some cool AI behaviour. We tried to code it ourselves, but Rain offered much more than we could hack together. I was tasked with implementing Rain and, as a beginner, I found it a bit difficult. So I thought it would be interesting to take other beginners through the process. Here’s how I created an AI and did pathfinding with RAIN{indie}.

July 5, 2013 . Coding