Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am m0essy on github.
  • I am m0essy (https://keybase.io/m0essy) on keybase.
  • I have a public key ASA2mR6ANcalqO6Dc5QYl52DH_eeXgWf7cu0tkw4bT61FQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am snekyx on github.
  • I am m0essy (https://keybase.io/m0essy) on keybase.
  • I have a public key ASAT_DXZmQ6lzohBEQftcVKLQVqIbXGrWbxF1xDWT7QV7Ao

To claim this, I am signing this object:

@m0essy
m0essy / FaultyPipeToActor.scala
Created February 13, 2018 16:55
Akka Actor using faulty pipeTo
package com.snekyx.strange.actors
import akka.actor.{Actor, Props}
import akka.pattern.pipe
import com.bsh.hca.account.view.FaultyPipeToActor.SomeMsg
import scala.concurrent.Future
object FaultyPipeToActor {
def props: Props = Props(new FaultyPipeToActor())
set-option -g prefix C-a
unbind-key C-b
bind-key a send-prefix
bind-key C-a last-window
set -g base-index 1
set-window-option -g xterm-keys on
set-option -g default-shell /usr/local/bin/zsh
set -g default-terminal "screen-256color"
@m0essy
m0essy / debounce function
Last active August 29, 2015 14:06
Debounce function to limit events are being fired. And a call for the zoomanim used in the leaflet.js library
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
clearTimeout(timeout);
timeout = setTimeout(function() {
timeout = null;
if (!immediate) func.apply(context, args);
}, wait);
if (immediate && !timeout) func.apply(context, args);
@m0essy
m0essy / 0_reuse_code.js
Created February 18, 2014 16:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console