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.io.*; | |
import java.util.*; | |
public class Add { | |
public static void main(String[] args) throws IOException { | |
BufferedReader reader1 = new BufferedReader(new FileReader("1.txt")); | |
BufferedReader reader2 = new BufferedReader(new FileReader("2.txt")); | |
//BufferedWriter writer = new BufferedWriter(new FileOutputStream("3.txt")); | |
while(true) { | |
int sum = 0; |
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
try { | |
InetAddress addr = InetAddress.getLocalHost(); | |
if (addr.isSiteLocalAddress() | |
&& !addr.isLoopbackAddress() | |
&& !(addr instanceof Inet6Address) | |
) { | |
return addr.getHostAddress(); | |
} | |
} catch (Throwable e) { | |
LOGGER.warn("InetAddress.getLocalHost() fail", e); |
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
sudo rm -rf ~/.cache/ibus/libpinyin/ | |
sudo ibus-daemon --restart |
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
sudo rm -rf ~/.cache/ibus/libpinyin/ | |
sudo ibus-daemon --restart |
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.util.Random; | |
import java.util.concurrent.TimeUnit; | |
public class Coin { | |
public static void main(String[] args) throws InterruptedException { | |
String[] candidates = new String[]{"🌝", "🌖", "🌗", "🌘", "🌚", "🌒", "🌓", "🌔"}; | |
Random r = new Random(); | |
for (int i = 0; i < 3; i++) { | |
for (String s : candidates) { | |
System.out.print(s); |
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.apache.http.conn.ssl.SSLSocketFactory; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
public class Test { | |
public static void main(String[] args) throws Exception { | |
SSLContext context = SSLContext.getInstance("TLS"); | |
context.init(null, null, null); |
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
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=XMind | |
Path=/opt/xmind-8u8/XMind_amd64 | |
Exec=/opt/xmind-8u8/XMind_amd64/XMind | |
Icon=/opt/xmind-8u8/XMind_amd64/xmind.256.png | |
Categooptries=Appu8lication | |
Terminal=false |
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
ethtool -s enp0s31f6 speed 100 duplex full |
##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.