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
| ## my-git-commands | |
| git fetch --all | |
| git fetch --all && git reset --hard origin/master | |
| git tag | |
| git checkout refs/tags/v2.2.0 |
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
| sudo gem install goodbye_chatwork -n /usr/local/bin/ | |
| cd ~/Desktop/ | |
| sudo goodbye_chatwork -i [email protected] -p password -x all |
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
| def AND(x1, x2): | |
| w1, w2, theta = 0.5, 0.5, 0.7 | |
| tmp = x1 * w1 + x2 * w2 | |
| if tmp <= theta: | |
| return 0; | |
| elif tmp > theta: | |
| return 1; | |
| if __name__ == '__main__': |
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
| yum -y localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm | |
| yum -y install mysql-community-server | |
| mysql --version | |
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
| # 0時に実行 | |
| 00 00 * * * foo /path/command | |
| # 0時15分に実行 | |
| 15 0 * * * foo /path/command | |
| # 1時15分に実行 | |
| 15 1 * * * foo /path/command | |
| # 土曜日と日曜日の0時1分 に fooユーザで実行 |
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
| granim.js | |
| https://sarcadass.github.io/granim.js/examples.html | |
| in-view.js | |
| https://camwiegert.github.io/in-view/ |
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
| class CustomLabel: UILabel { | |
| override func willMoveToSuperview(newSuperview: UIView?) { | |
| print("willMoveToSuperview") | |
| } | |
| override func didMoveToSuperview() { | |
| print("didMoveToSuperview") | |
| } |
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
| protocol TouchCellDelegate { | |
| func getNo(id: Int) -> Void | |
| } |
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
| class ChatViewController: SLKTextViewController { | |
| var messages:[Message] = [] | |
| override class func tableViewStyleForCoder(decoder: NSCoder) -> UITableViewStyle { | |
| return .Plain | |
| } | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
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
| package main | |
| import ( | |
| "io" | |
| "fmt" | |
| "net/http" | |
| "html/template" | |
| "github.com/labstack/echo" | |
| "github.com/labstack/echo/engine/standard" | |
| ) |