Instantly share code, notes, and snippets.

On vacation until March

Keenan Thompson thekeenant

View GitHub Profile

Information Collection And Use

For a better experience while using our Service, we may require you to provide us with certain personally identifiable information, including but not limited to your name, phone number, and postal address. The information that we collect will be used to contact or identify you.

import com.badlogic.gdx.Gdx;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
View monotone_interpolator.dart
import 'dart:math';
import 'dart:ui';
import 'package:meta/meta.dart';
class MonotoneInterpolator {
const MonotoneInterpolator._(this.points, this._c1s, this._c2s, this._c3s);
final List<Offset> points;
View madgrades-diagram.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import java.util.function.DoubleFunction;
public class Derivatives {
// approximate the limit
private static final double DX = 0.0001;
* @param f f(x), the function to derive
* @return f'(x), the derivative of the f(x)
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



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


Learning & Practice

  • Pramp: Free forever peer-to-peer technical interview practice.
  • InterviewBit: Gamified practice for typical coding interview questions.
  • Project Euler: Math/CS related challenge problems. Try them and complete them at your own pace.


A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.

Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).


package net.avicus.atlas.util;
import java.util.ArrayList;
import java.util.List;
* Pagintes a list of items.
* @param <T>
public class Paginator<T> {
package net.avicus.atlas.util;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;