32 bits version
$ wget https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-32.tar.xz -O popcorntime.tar.xz
64 bits version
#include <pthread.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <assert.h> | |
/* Compile like this: | |
gcc --std=c99 -lpthread cond.c -o cond |
class Event<T> { | |
private val handlers = arrayListOf<(Event<T>.(T) -> Unit)>() | |
fun plusAssign(handler: Event<T>.(T) -> Unit) { handlers.add(handler) } | |
fun invoke(value: T) { for (handler in handlers) handler(value) } | |
} | |
val e = Event<String>() // define event | |
fun main(args : Array<String>) { | |
e += { println(it) } // subscribe |
[package] | |
name = "brpc_server_demo" | |
version = "0.1.0" | |
edition = "2018" | |
build = "build.rs" | |
[dependencies] | |
brpc-sys = { path = "../brpc-sys" } | |
cc = "1.0.37" |
object main extends App { | |
object <<<<<<< { | |
def HEAD(s: String) = this | |
} | |
implicit class StringOps(s: String) { | |
def =======(i: Int) = s | |
def >>>>>>>(i: Int) = i | |
} |