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
# 1.1 Toast Message like Android | |
extension UIViewController { | |
func showToast(message : String, time: TimeInterval) { | |
let font:UIFont = .systemFont(ofSize: 12.0) | |
let fontAttributes = [NSAttributedString.Key.font: font] | |
let size = (message as NSString).size(withAttributes: fontAttributes) | |
var width: CGFloat = size.width | |
var height: CGFloat = 35 |
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
# find ip address | |
adb shell | |
ip addr show wlan0 | |
~~~ | |
inet XXX.XXX.XXX.XXX/24~~~~ | |
~~~ | |
exit | |
## connect Wifi | |
# change port number |
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
# Java Version | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` |
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
#Node JS | |
コード補完は動かない場合 | |
npm install flow-bin -g |
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
# gitはdefault設定でファイル名の大文字小文字の変更は無視するようになっている | |
# Check | |
git config -l --local | grep core.ignorecase | |
core.ignorecase=true | |
# Set | |
git config core.ignorecase false |