Skip to content

Instantly share code, notes, and snippets.

@petertodd
petertodd / gist:8e87c782bdf342ef18fb
Last active December 13, 2020 05:33
What the CoinWallet.eu tx-flood stress-test means for you and how to deal with it
@codetinkerhack
codetinkerhack / ReTry.scala
Last active June 18, 2020 09:39
Retry Akka actor /Ask pattern with individual timeout, retry intervals
package com.codetinkerhack
import akka.actor.{ ActorRef, Props, Actor, ActorLogging }
import akka.pattern.ask
import akka.util.Timeout
import scala.concurrent.duration._
import akka.actor.Actor.Receive
import akka.pattern.pipe
import scala.util.Success
import scala.util.Failure
@disolovyov
disolovyov / class.lua
Last active December 12, 2015 04:58
Simple classes for Lua
--[[
No-nonsense classes for Lua.
Basic usage:
A = class() -- class declaration
B = class(A) -- inheritance
function A:init(arg, arg ...) -- constructor
function A:foo(arg, arg ...) -- method declaration
a = A(arg, arg ...) -- construction
@mike-zhang
mike-zhang / udpProxy.go
Created October 8, 2012 15:58
Implementation of a UDP proxy in Golang
// Implementation of a UDP proxy
package main
import (
"flag"
"fmt"
"log"
"net"
"os"