Skip to content

Instantly share code, notes, and snippets.

@ruudud
ruudud / .eslintrc
Created April 22, 2016 10:36
npm scripts build system
{
"extends": "airbnb/base"
}
const blessed = require('blessed');
const STATUS = {
pending: "PENDING"
};
class Character {
tick() {
if (Math.random*2 > 1) {
this.fight();
@ruudud
ruudud / ExecTest.java
Created June 18, 2016 21:13
Working with streams, futures, threads and executor service in Java
package com.github.ruudud.exectest;
import com.google.common.base.Stopwatch;
import com.google.common.collect.ImmutableList;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.util.List;
import java.util.concurrent.*;
import java.util.stream.Collectors;