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
public class Main { | |
public static void main(String[] args) { | |
Test test = new Test(); | |
test.fn(); | |
} | |
} |
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
.application-main > .d-flex { | |
flex-direction: row-reverse; | |
} | |
.bg-gray{ | |
background-color: #fff !important; | |
} | |
.team-left-column.col-12.col-md-3.col-lg-3.pr-5.mt-5.hide-lg.hide-md.hide-sm.border-bottom{ | |
padding-left: 24px; |
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 io.github.zunpiau; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
public class AStar { | |
private static final int MAX_MAP_WIDTH = 100; |
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.IOException; | |
import java.nio.file.*; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.concurrent.Executors; | |
public class FileWatcher { |
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 io.github.zunpiau; | |
import java.util.Random; | |
/** | |
* 洗牌算法 | |
* <a href="https://coolshell.cn/articles/8593.html">如何测试洗牌程序<a/> | |
*/ | |
public class FisherYatesShuffle { |
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
#!/bin/bash | |
########################## | |
## Configure ## | |
########################## | |
LOCALDIR= | |
DATABASE_PASSWORD= | |
DATABASE_USER= | |
DATABASES=( | |
) |
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
List<String> arr = Arrays.asList ("a.b.c", "a.b", "a.ab", "c"); | |
arr.sort ((o1, o2) -> { | |
String[] spilt1 = o1.split ("\\."); | |
String[] spilt2 = o2.split ("\\."); | |
int compare = 0; | |
for (int i = 0; i < spilt1.length && i < spilt2.length; i++) { | |
compare = spilt1[i].compareTo (spilt2[i]); | |
if (compare != 0) | |
break; | |
} |
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
# /etc/default/jetty | |
JETTY_HOME=/opt/jetty/jetty-distribution-9.4.8 | |
JETTY_BASE=/var/www/jetty-base | |
TMPDIR=/var/www/jetty-base/temp | |
JETTY_PID=/var/www/jetty-base/jetty/jetty.pid |
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
dataSource.setInitSQL("SET NAMES utf8mb4 collate utf8mb4_unicode_ci"); |