Skip to content

Instantly share code, notes, and snippets.


Avi Romanoff aroman

View GitHub Profile
View Cell.cs
using System;
using MessagePack;
namespace Simulation.Features.Buildings
public readonly struct Cell : IEquatable<Cell>, IComparable<Cell>
[Key(0)] public readonly int x;
View arduino_sketch.ino
void setup() {
pinMode(7, OUTPUT);
// put your setup code here, to run once:
void loop() {
// put your main code here, to run repeatedly:
if (Serial.available() > 0) {
View c_side.cpp
void mxnet_detect(const cv::Mat& mat) {
PyObject *pRunnerModule, *pRunnerFunc, *pRunnerResult;

How to build & run Sensei on Ubuntu/NUC

Install Ubuntu 16.10 (64 bit)

Just go to and download the ISO. I recommend using etcher to burn the ISO to a USB drive.

Install depdendencies


View error_log.txt
11.04.16 16:00:54 [-0400] Downloading application ''
11.04.16 17:00:25 [-0400] Failed to download application '' due to 'Invalid configuration: undefined'
11.04.16 17:00:26 [-0400] Downloading application ''
11.04.16 17:01:06 [-0400] Failed to download application '' due to 'Got 504 when requesting image from delta server.'
11.04.16 17:01:09 [-0400] Downloading application ''
11.04.16 17:01:22 [-0400] Failed to download application '' due to 'Got 504 when requesting image from delta server.'
11.04.16 17:01:23 [-0400] Downloading applicati
View brothers.js
const meetingName = t =>
t == MeetingType.EBoard ? 'Executive Board' : 'Brotherhood'
const brothersName = bs => {
const none = (bs.length > 0 ? '*none' : '')
return bs ? '* ' + =>'\n* ') : none
const present = bs => bs.filter(b => b.isPresent)
const absent = bs => bs.filter(b => !b.isPresent && (isEBoard ? b.rank : true))
aroman / The Technical Interview Cheat
Created Oct 7, 2015 — forked from tsiege/The Technical Interview Cheat
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.

Hello all. We must choose an extraction library for our new Goliath system to provide default values when no rules have been set. The choice has been narrowed down to Boilerpipe and Goose. They both have sub-par documenation (Boilerpipe, Goose), so I've dug around in the code to find the exact process by which they pull out data. Here I will compare them so we can choose one.


This bad mamba jamba was developed by a Ph.D-having guy who, along with some other folks, wrote a big fat academic paper around the algorithm it uses, which you can find in our Dropbox if you really want to read it. Basically, they use link density, text density, and number of words on a block-by-block basis to distinguish boilerplate blocks from content blocks. A block is simply a contiguous piece of text terminated by the start

View showReposWithSomeFile.js
let Promise = require('bluebird');
function showReposWithSomeFile() {
gh.request('GET /user/repos')
.map(repo => {
let someFileContents = gh.request('GET /repos/:owner/:repo/contents/:path', {
owner: repo.owner.login,
path: 'someFile',

In a sentence: expii is made up of many topics which have one or more explanations.

What’s a topic? (previously: node, leaf, group)

What’s a topic title?