Skip to content

Instantly share code, notes, and snippets.

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

makoto tsuyuki tsuyukimakoto

🏠
Working from home
View GitHub Profile
@tsuyukimakoto
tsuyukimakoto / xenial on chromebook
Created February 21, 2017 15:16
start xenial cui
## install方法はググれば良い
- chrootonだかなんだか
## ついシャットダウンして通常起動してしまった場合
デベロッパーモードで起動する
- esc reloadボタンを押したまま電源を入れる
- 脅しが出るので気にしないでenter keyを押す

Keybase proof

I hereby claim:

  • I am tsuyukimakoto on github.
  • I am everes (https://keybase.io/everes) on keybase.
  • I have a public key ASCcwmULyGtnd-JULOpnQ8DVLTg8T4KqcsfjZtCuWpDkhwo

To claim this, I am signing this object:

@tsuyukimakoto
tsuyukimakoto / file0.txt
Created July 30, 2018 13:20
ランチチーム分割(当たり付き)を作った話 ref: https://qiita.com/tsuyukimakoto/items/1dddbb9525ac50f4c014
.
├── appsscript.json
├── config.service.ts ← 設定を扱う。ProeprtyServiceをここに閉じ込めている
├── constants.ts
├── index.ts ← エントリーポイント
├── models.ts ← 型定義。ここじゃない気がしている
├── storage.service.ts ← データを扱う。SpreadSheetはここに閉じ込めている
└── utils.ts ← バグりがちなロジックを入れて、主にこのファイルをテストしている
@tsuyukimakoto
tsuyukimakoto / install_python38b1_on_ubuntu1904.md
Last active June 17, 2019 12:33
Memo: Install Python 3.8 beta1 on Ubuntu 19.04
$ sudo apt update -y && sudo apt upgrade -y
$ sudo apt-get install build-essential libssl-dev zlib1g-dev
$ sudo apt-get install uuid-dev  # for uuid time safe
$ sudo apt-get install libffi-dev  # for _ctypes
$ sudo apt-get install libsqlite3-dev  # for sqlite3

$ wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0b1.tgz
$ tar xzf ./Python-3.8.0b1.tgz
$ cd Python-3.8.0b1/

2019.06.17 22:00+09:00

python3.8にmypyをインストール。まだmasterじゃないとインストールできない。

$ git clone --recurse-submodules https://github.com/python/mypy.git
$ cd mypy
$ python3.8 setup.py install

2019.06.17 22:00+09:00

python3.8にmypyをインストール。まだmasterじゃないとインストールできない。

$ git clone --recurse-submodules https://github.com/python/mypy.git
$ cd mypy
$ python3.8 setup.py install

2019.06.17 22:00+09:00

python3.8にmypyをインストール。まだmasterじゃないとインストールできない。

$ git clone --recurse-submodules https://github.com/python/mypy.git
$ cd mypy
$ python3.8 setup.py install
@tsuyukimakoto
tsuyukimakoto / bad_password.py
Last active June 22, 2019 03:27
assignable expression and regex
import re
def check(passwd):
if (password_length := len(passwd)) < 1:
return 'Need password'
if (m := re.search(r'^%s+' % passwd[0], passwd)) and m.span()[1] == password_length:
return '{0} contains only same character'.format(passwd)
return '{0} is suitable for password'.format(passwd)
if __name__ == '__main__':
@tsuyukimakoto
tsuyukimakoto / sqlite_tips.md
Created July 11, 2019 08:30
sqliteのメモ

SELECT文の結果にカラム名を表示するようにする

.headers ON

SELECT文の結果を詰めない

.mode column

他にも tabs や html や csv などいくつかある。

Keybase proof

I hereby claim:

  • I am tsuyukimakoto on github.
  • I am everes (https://keybase.io/everes) on keybase.
  • I have a public key whose fingerprint is 3B98 CA31 64C8 8826 ACFE 864C 9E2F BB83 6F29 5DCC

To claim this, I am signing this object: