Skip to content

Instantly share code, notes, and snippets.

View byeounghoon's full-sized avatar

BH byeounghoon

View GitHub Profile
cd $PROJECT_DIR
buildDay=$(/usr/libexec/PlistBuddy -c "Print buildDay" "$INFOPLIST_FILE")
buildCount=$(/usr/libexec/PlistBuddy -c "Print buildCount" "$INFOPLIST_FILE")
today=$(date +%Y%m%d%H%M)
if [ x$buildDay == x ]; then
buildDay=${today}
buildCount=1
printf -v zeroPadBuildCount "%03d" $buildCount
@byeounghoon
byeounghoon / Regex+StringExtension.swift
Last active April 25, 2018 04:19
Regex(with String Extension) Swift4.0
import AVFoundation
extension String {
//한글 검증
func isHangul() -> Bool {
let regEx = "^[가-힣0-9]+$"
let emailTest = NSPredicate(format:"SELF MATCHES[c] %@", regEx)