One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
on run | |
tell application "Finder" to set aliasItemName to selection as alias | |
set posixPathName to POSIX path of aliasItemName | |
return posixPathName | |
end run |
"____________________________________________________________ | |
" | |
" /\__\ /\ \ /\ \ /\__\ | |
" /::| | /::\ \ /::\ \ /::| | | |
" /:|:| | /:/\:\ \ /:/\:\ \ /:|:| | | |
" /:/|:|__|__ /:/ \:\ \ /:/ \:\ \ /:/|:| |__ | |
" /:/ |::::\__\ /:/__/ \:\__\ /:/__/ \:\__\ /:/ |:| /\__\ | |
" \/__/~~/:/ / \:\ \ /:/ / \:\ \ /:/ / \/__|:|/:/ / | |
" /:/ / \:\ /:/ / \:\ /:/ / |:/:/ / | |
" /:/ / \:\/:/ / \:\/:/ / |::/ / |
import com.google.common.base.Strings; | |
import lombok.Data; | |
import lombok.NoArgsConstructor; | |
import lombok.ToString; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public static void main(String[] args) { | |
//Charset unnderline = Charset.forName("utf_8");//无效 | |
Charset big = Charset.forName("UTF-8"); | |
Charset small = Charset.forName("utf-8"); | |
Charset no1 = Charset.forName("utf8"); | |
Charset no2 = Charset.forName("UTF8"); | |
//上边这四个编码 相同的效果,看来jdk内部会处理大小写和有无短横线的问题 | |
// sun.nio.cs.FastCharsetProvider#lookup 有转换为小写的方法 | |
// sun.nio.cs.UTF_8 这个类是真正的实现类 | |
//System.out.println(unnderline); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>html5-video-study</title> | |
</head> |
//使用 gradle task [-q] [--quiet]来执行任务 | |
task HelloWorld { | |
doFirst { | |
println 'task at do first point---one' | |
} | |
doFirst { | |
println 'task at do first point---two' | |
} | |
//可以添加多个 |
import java.util.concurrent.*; | |
public class StopThread { | |
private static boolean stopRequested; | |
public static void main(String[] args) throws InterruptedException { | |
Thread backgroundThread = new Thread(new Runnable() { | |
@Override | |
public void run() { | |
int i = 0; |
Collection<Long> idOnlyInList1 = Collections2.filter(idList1, Predicates.not(Predicates.in(idList2))); |
public class Manacher{ | |
public static void main(String[] args) { | |
String line = "ababbbb"; | |
System.out.println("最大回文子串: "+Manacher(line)); | |
} | |
public static String Manacher(String s) { | |
// Insert '#' | |
String t = "$#"; | |
for (int i = 0; i < s.length(); ++i) { |