- Stefan Molyneux — Everyday Anarchy
- Stefan Molyneux — Practical Anarchy
- Walter Block — Defending the Undefendable
- Murray Rothbard — The Ethics of Liberty
- David Bergland — Libertarianism in One Lesson
- Frank Karsten — Beyond Democracy
- David Friedman — The Machinery of Freedom
- Ludwig von Mises — The Anti-Capitalistic Mentality
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
-dontwarn org.jboss.netty.logging.** | |
-dontwarn org.osgi.** | |
-dontwarn javax.servlet.** | |
-dontwarn org.jboss.netty.channel.socket.http.** | |
## Unsafe is there at runtime | |
-dontwarn sun.misc.Unsafe | |
-keep class sun.misc.Unsafe{ | |
*; | |
} |
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
// After that we just create the GUI Actors with a Props with the correct dispatcher set: | |
val javaFxActor = context.actorOf(Props[JavaFxActor].withDispatcher("javafx-dispatcher"), "javaFxActor") | |
val swingActor = context.actorOf(Props[SwingActor].withDispatcher("swing-dispatcher"), "swingActor") | |
// Done! Now all messages processed by the new actor will be executed by the Swing/JavaFX Event Dispatch Thread, enjoy! |
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
// Contact: [email protected] | |
package lighthouse.threading; | |
import com.google.common.util.concurrent.Uninterruptibles; | |
import javafx.application.Platform; | |
import lighthouse.protocol.LHUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; |
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
object JavaFXExecutionContext { | |
implicit val javaFxExecutionContext: ExecutionContext = ExecutionContext.fromExecutor(new Executor { | |
def execute(command: Runnable): Unit = { | |
Platform.runLater(command) | |
} | |
}) | |
} | |
... |
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 akkahttptest | |
import akka.actor.ActorSystem | |
import akka.http.Http | |
import akka.stream.FlowMaterializer | |
import akka.http.server._ | |
import akka.http.marshalling.PredefinedToResponseMarshallers._ | |
import akka.stream.scaladsl.{HeadSink, Source} | |
object Proxy extends App { |
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
import org.junit.Before | |
import org.junit.Test | |
import kotlin.test.fail | |
import org.bitcoinj.core.Transaction | |
import org.bitcoinj.params.MainNetParams | |
import org.bitcoinj.core.NetworkParameters | |
import org.bitcoinj.core.ECKey | |
import org.bitcoinj.core.Address | |
import org.bitcoinj.testing.FakeTxBuilder | |
import org.bitcoinj.core.Coin |
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
// An ADT+shapeless as a drop-in replacement for a standard Scala Enumeration. | |
// | |
// First the unsafe standard Scala Enumeration ... | |
// | |
object ScalaEnumDemo extends App { | |
// Example from scala.Enumeration scaladoc. Terse ... | |
object WeekDay extends Enumeration { | |
type WeekDay = Value | |
val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value | |
} |
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
import java.lang.reflect.Method | |
import java.util.concurrent.atomic.AtomicReference | |
import akka.actor.ExtendedActorSystem | |
import akka.serialization.Serializer | |
import com.trueaccord.scalapb.GeneratedMessage | |
import scala.annotation.tailrec | |
/** | |
* This Serializer serializes `com.trueaccord.scalapb.GeneratedMessage`s | |
*/ |
OlderNewer