Skip to content

Instantly share code, notes, and snippets.

View ajermakovics's full-sized avatar
🎯
Focusing

Andrejs Jermakovics ajermakovics

🎯
Focusing
View GitHub Profile
package sample.cluster.simple
import scala.concurrent.duration._
import akka.actor._
import akka.cluster.Cluster
import akka.cluster.ClusterEvent._
import akka.routing.FromConfig
import com.typesafe.config.ConfigFactory
object SimpleRouterApp {
Originally:
https://gist.github.com/7565976a89d5da1511ce
Hi Donald (and Martin),
Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I
appreciate the tone. This is a Yegge-long response, but given that you and
Martin are the two people best-situated to do anything about this, I'd rather
err on the side of giving you too much to think about. I realize I'm being very
critical of something in which you've invested a great deal (both financially
function functionReplacer(key, value) {
if (typeof(value) === 'function') {
return value.toString();
}
return value;
}
function functionReviver(key, value) {
if (key === "") return value;
/**
* ```
* Does JDK8's Optional class satisfy the Monad laws?
* =================================================
* 1. Left identity: true
* 2. Right identity: true
* 3. Associativity: true
*
* Yes, it does.
* ```
@ajermakovics
ajermakovics / AsyncMapLoader.java
Last active August 29, 2015 14:11
AsyncMapLoader.java
interface Loader<T> {
void add(T element);
boolean isFinished();
}
interface MapLoader<K, V> {
void loadAllKeys(Loader<K> loader);
}
@ajermakovics
ajermakovics / java_web_frameworks.md
Last active June 16, 2023 08:33
A list of Java web frameworks and toolkits
@ajermakovics
ajermakovics / jvm-mon.rb
Created March 27, 2017 12:02 — forked from janhoy/jvm-mon.rb
jvm-mon brew formulae
# Documentation: http://docs.brew.sh/Formula-Cookbook.html
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula
class JvmMon < Formula
desc "Console based JVM monitoring"
homepage "https://github.com/ajermakovics/jvm-mon"
url "https://github.com/ajermakovics/jvm-mon/releases/download/0.2/jvm-mon-0.2.tar.gz"
sha256 "3f85e8fec42449d8af831657ede96c9b7a5d12e80b35dbbc14f2e00eae301f28"
depends_on :java => "1.8+"
@ajermakovics
ajermakovics / keybindings.json
Created May 18, 2017 07:11
Visual Studio Code keyboard shortcuts remapped to IntelliJ IDEA shortcuts
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+shift+o",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+o",
"command": "workbench.action.showAllSymbols"
},
@ajermakovics
ajermakovics / README.md
Created February 2, 2019 13:30
SCRIPT-8
@ajermakovics
ajermakovics / README.md
Created February 2, 2019 13:43
SCRIPT-8