Skip to content

Instantly share code, notes, and snippets.

View tkc's full-sized avatar
🏠
Working from home

Tkc tkc

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