http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
git add .
git status // to see what changes are going to be commited
git commit -m 'Some descriptive commit message'
git push origin master
public class FullWidth2HalfWidth { | |
/** | |
* ASCII表中可见字符从!开始,偏移位值为33(Decimal) | |
*/ | |
static final char DBC_CHAR_START = 33; // 半角! | |
/** | |
* ASCII表中可见字符到~结束,偏移位值为126(Decimal) | |
*/ | |
static final char DBC_CHAR_END = 126; // 半角~ |
import java.util.Arrays; | |
import java.util.function.Function; | |
public class Perceptron { | |
private Function<Double, Integer> activator; | |
private double bias; | |
private double[] weights; | |
public Perceptron() { } |
`conf/httpd.conf`: | |
``` | |
Define SRVROOT "D:\ProgramFiles\httpd-2.4.25-x64-vc14-r1\Apache24" | |
LoadModule access_compat_module modules/mod_access_compat.so | |
LoadModule headers_module modules/mod_headers.so | |
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
Include conf/extra/httpd-vhosts.conf | |
``` |
``` | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
public class HttpUtils { | |
public static void main(String[] args) throws MalformedURLException { | |
String urlString = "https://www.google.com///images//branding/1234567890/..\\googlelogo/abcdefg/../1x/googlelogo_color_272x92dp.png"; | |
System.out.println(absUrl(urlString)); |
http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
git add .
git status // to see what changes are going to be commited
git commit -m 'Some descriptive commit message'
git push origin master
apply plugin:EnterpriseRepositoryPlugin | |
class EnterpriseRepositoryPlugin implements Plugin<Gradle> { | |
private static String ENTERPRISE_REPOSITORY_URL = "https://my.repository.com/repository/maven-public/" | |
void apply(Gradle gradle) { | |
// ONLY USE ENTERPRISE REPO FOR DEPENDENCIES | |
gradle.allprojects{ project -> | |
project.repositories { |
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="project-builder" basedir="." default="build-all"> | |
<property environment="env"/> | |
<property name="debug" value="false"/> | |
<property name="src.dir" value="src"/> | |
<property name="build.dir" value="build"/> | |
<property name="dist.dir" value="dist"/> | |
<property name="dist.war" value="blog.war"/> |
tasks.withType(JavaCompile) { | |
options.encoding = "UTF-8" | |
} |
/** | |
* jsoup 工具包 | |
* founder | |
* @author XueLiang | |
* @date 2016年9月23日 下午3:16:36 | |
* @version 1.0 | |
*/ | |
public class JsoupUtils { | |
/** |
--- /usr/libexec/os-probes/mounted/20microsoft 2016-09-19 00:09:25.917283774 -0400 | |
+++ 20microsoft 2016-09-19 00:55:38.750505997 -0400 | |
@@ -31,7 +31,9 @@ | |
for boot in $(item_in_dir boot "$2"); do | |
bcd=$(item_in_dir bcd "$2/$boot") | |
if [ -n "$bcd" ]; then | |
- if grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then | |
+ if grep -qs "W.i.n.d.o.w.s. .1.0" "$2/$boot/$bcd"; then | |
+ long="Windows 10 (loader)" | |
+ elif grep -qs "W.i.n.d.o.w.s. .8" "$2/$boot/$bcd"; then |