- Hum 151010 URL Schemes 使用详解
- Hum 160427 OmniFocus 的 URL Schemes 用法
- Hum 171115 通过 Bear 来认识 Launch Center Pro 的进阶用法
- Hum 171122 通过 Bear 来认识 Drafts 的 [[line]] 用法
- Hum 180518 入门 iOS 自动化:读懂 URL Schemes
- Hum 180823 Universal Link 使用详解
- Hum 181229 x-callback-URL 的使用方法
- JamesHopbourn 210204 Drafts + vim = URL Scheme 复用
- JamesHopbourn 210405 Drafts 5 与 Bear 联手,让我可以快速追加笔记
- Download docker-compose.yml to dir named
sentry
- Change
SENTRY_SECRET_KEY
to random 32 char string - Run
docker-compose up -d
- Run
docker-compose exec sentry sentry upgrade
to setup database and create admin user - (Optional) Run
docker-compose exec sentry pip install sentry-slack
if you want slack plugin, it can be done later - Run
docker-compose restart sentry
- Sentry is now running on public port
9000
新建文件 ~/.zsh_aliases
# Git
alias gaa='git add .'
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gpf='git push -f'
alias gd='git diff | mate'
This file contains hidden or 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.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Map; | |
public class MatchUtil { | |
public MatchUtil() { | |
} | |
public static boolean isEmpty(Object obj) { |
null
This file contains hidden or 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.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.nio.charset.StandardCharsets; |
This file contains hidden or 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> configurations = getCandidateConfigurations(annotationMetadata,attributes); | |
configurations = removeDuplicates(configurations); | |
protected final <T> List<T> removeDuplicates(List<T> list) { | |
return new ArrayList<>(new LinkedHashSet<>(list)); | |
} |
This file contains hidden or 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
private Double roundDownDouble(Double value) { | |
BigDecimal b = new BigDecimal(String.valueOf(value));//BigDecimal(String val)可控,BigDecimal(double val)不可预测。(BigDecimal:不可变的,任意精度带符号的十进制数) | |
return b.setScale(1, BigDecimal.ROUND_DOWN).doubleValue();//下舍入 | |
} |