Skip to content

Instantly share code, notes, and snippets.

View lingoer's full-sized avatar

Ruoyu Fu lingoer

  • Looking for a job
  • Chengdu China
View GitHub Profile
import Combine
enum SDKError: Error{
case err0
}
typealias OnSuccessCallback<T> = (_ result: T) -> Void
typealias OnFailureCallback = (_ error: SDKError) -> Void
struct APIDemo{
func api1(param:String, onSuccess:OnSuccessCallback<Int>, onFailure: OnFailureCallback){
### Keybase proof
I hereby claim:
* I am lingoer on github.
* I am aemaeth (https://keybase.io/aemaeth) on keybase.
* I have a public key ASDdnHBHIoMKXlNx5CxQMxHqg0hPu47yW00UMmqE6PHMVgo
To claim this, I am signing this object:
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 379CE192D401AB61
sh -c "echo 'deb https://dl.bintray.com/cpaasch/deb stretch main' > /etc/apt/sources.list.d/mptcp.list"
apt-get update
apt-get install linux-mptcp
"Advanced options for Ubuntu>Ubuntu, with Linux 4.14.70.mptcp"
wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log