This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package unit.akka | |
import org.junit.Test | |
import akka.remote.netty.NettyRemoteSupport | |
import akka.actor.Actor | |
import akka.event.slf4j.Logging | |
import org.scalatest.junit.{ShouldMatchersForJUnit, JUnitSuite} | |
import org.scalatest.BeforeAndAfterAll | |
import akka.actor.Actor._ | |
import java.nio.channels.ClosedChannelException |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package unit.akka | |
import org.scalatest.matchers.ShouldMatchers | |
import org.scalatest.{WordSpec, BeforeAndAfterAll} | |
import akka.actor.Actor._ | |
import akka.util.duration._ | |
import akka.util.TestKit | |
import java.util.concurrent.TimeUnit | |
import akka.actor.{ActorRef, Actor} | |
import util.Random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
var lhost = host.toLowerCase(); | |
var ip = myIpAddressEx(); | |
// exclude localhost and some specific range on company network (123.45.*) | |
if ((lhost == "localhost") | |
|| (shExpMatch(lhost, "localhost.*")) | |
|| (lhost == "127.0.0.1") | |
|| shExpMatch(lhost, "123.45.*")) { | |
return "DIRECT"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package my.gists.test; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import junit.framework.Assert; | |
import org.junit.Test; | |
import com.mongodb.BasicDBObject; |
NewerOlder