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 | |
# 先取得 SSID | |
ssid=$(networksetup -getairportnetwork en1 | cut -c 24-) | |
# 依 SSID 決定要用哪個 location ,可利用 scselect 指令來列出所有的 location | |
if [ $ssid = "ScottAP" ] | |
then | |
location="Work" | |
else | |
location="Automatic" |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../paper-calculator/paper-calculator.html"> | |
<link rel="import" href="../paper-checkbox/paper-checkbox.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> |
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.HashMap; | |
import java.util.Map; | |
import org.apache.poi.ss.usermodel.Cell; | |
import org.apache.poi.ss.usermodel.CellStyle; | |
import org.apache.poi.ss.usermodel.Row; | |
import org.apache.poi.ss.usermodel.Sheet; | |
import org.apache.poi.ss.util.CellRangeAddress; | |
/** |
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.File; | |
import java.io.FileFilter; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import org.apache.poi.ss.usermodel.Sheet; | |
import org.apache.poi.ss.usermodel.Workbook; |
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
UIFont.familyNames.sorted().forEach{ familyName in | |
print("*** \(familyName) ***") | |
UIFont.fontNames(forFamilyName: familyName).forEach { fontName in | |
print("\(fontName)") | |
} | |
print("---------------------") | |
} | |
/* | |
*** Academy Engraved LET *** |
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
bind_host: 0.0.0.0 | |
bind_port: 80 | |
users: | |
- name: | |
password: | |
language: "" | |
rlimit_nofile: 0 | |
web_session_ttl: 720 | |
dns: | |
bind_host: 0.0.0.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
// ==UserScript== | |
// @name 簡繁轉換 | |
// @namespace https://scott0228.blogspot.com/ | |
// @version 0.5 | |
// @description 簡體直接轉繁體啦 | |
// @author Scott Yang | |
// @include *.* | |
// @exclude http://*.tw/* | |
// @exclude https://*.tw/* | |
// 0.5 增加用詞轉換 |
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/sh | |
HOOK_FILE=$1 | |
COMMIT_MSG=`head -n1 $HOOK_FILE` | |
PATTERN="([A-Z]+-[0-9]+)|(Merge branch)" | |
if [[ ! ${COMMIT_MSG} =~ $PATTERN ]]; then | |
echo "" | |
echo "'$COMMIT_MSG' is missing JIRA Ticket Number." | |
echo " example: 'JIRA-1234: my commit'" | |
echo "" | |
exit 1 |
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
# https://hub.docker.com/r/jhipster/jhipster | |
# https://www.jhipster.tech/installation/ | |
# docker container exec -it --user root jhipster bash | |
# docker container stop jhipster | |
# docker container rm jhipster | |
version: '3.8' | |
services: | |
jhipster: | |
image: jhipster/jhipster:v7.9.4 | |
container_name: jhipster |