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 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){ |
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
### 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: |
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
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 |