Skip to content

Instantly share code, notes, and snippets.

Tkc tkc

  • Japan
Block or report user

Report or block tkc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:57aff23ac61007f2246e745f9c189b42
1. aaa
2. bbb
3. ccc
```
シリアル時刻,水深,固定値,水温,固定値,固定値,固定値,電圧,固定値,固定値,固定値,固定値,固定値,音響データ(320バイトを2文字のHEXで列挙、水深の浅い方が左、深い方が右)
1506092400,46.0,-30.0,16.6,1000.0,99999.90,-30.0,12.6,0.0,99999.9,3,320,40 ,ffffffff6f595e665f5e5752434e4854565050585b52443e40413a515637363f3d3e4b4f3c40362f2918333d2d272328152a3b311f2c211b0f1f1c0e24131c211721091329280d1b1f2116060700140f0b06000800070a0109000c09100c00000208030308120d04070805000207000001000004080100000004040a040e060000000000010200000100000000070000000100000000000000000000020401000200000002000000040000010509030004000003090500010200000e0d1339504f5068736463616a716b573d3f5250463b28242f384c4f40363b373f42383c36312d2a201626192015221e13090614181715020001040f17170104110e0a0b0e08000304020000070f15120800010400010103000001000000000000000001000604020102020006030000000004000000000000000100000001010001060100
```
@tkc
tkc / install-go.sh
Created Aug 10, 2018 — forked from ndaidong/install-go.sh
Install Go 1.10 in Ubuntu 16+
View install-go.sh
#!/bin/bash
export GO_VERSION=1.10
export GO_DOWNLOAD_URL=https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz
export GOPATH=/usr/local/lib/go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
sudo mkdir ${GOPATH}
sudo chown ${USER} -R ${GOPATH}
View my-git-commands
## my-git-commands
git fetch --all
git fetch --all && git reset --hard origin/master
git tag
git checkout refs/tags/v2.2.0
View gist:8a39dea6a277ba7c67d9cac874ca4ab9
package bigquery
import (
"log"
"reflect"
"io/ioutil"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/api/bigquery/v2"
)
View gist:113726894216fa2982a541362028a696
package bigquery
import (
"log"
"reflect"
"io/ioutil"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/api/bigquery/v2"
)
View goodbye_chatwork
sudo gem install goodbye_chatwork -n /usr/local/bin/
cd ~/Desktop/
sudo goodbye_chatwork -i your_account@gmail.com -p password -x all
View perceptron AND
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__':
View CentOS7 install MySQL
yum -y localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
yum -y install mysql-community-server
mysql --version
View CronSetting
# 0時に実行
00 00 * * * foo /path/command
# 0時15分に実行
15 0 * * * foo /path/command
# 1時15分に実行
15 1 * * * foo /path/command
# 土曜日と日曜日の0時1分 に fooユーザで実行
View BigQuerySample
## 平均値
SELECT
AVG(x)
FROM
[projectName:dataSetName.tableName]
LIMIT
1000
[
426.842105263157
You can’t perform that action at this time.