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
import json | |
def load(json_file): | |
with open(json_file, "r") as f: | |
data = json.load(f) | |
return data | |
def save(json_file, data): |
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
build: | |
ptex2pdf -l -u -ot "-kanji=utf8 -synctex=1" report.tex | |
upbibtex report | |
ptex2pdf -l -u -ot "-kanji=utf8 -synctex=1" report.tex | |
ptex2pdf -l -u -ot "-kanji=utf8 -synctex=1" report.tex | |
convert: | |
sed -i "" -e "s/、/,/g" -e "s/。/./g" report.tex |
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
function main() { | |
var threads = GmailApp.search("-in:inbox is:unread"); | |
threads.forEach(function(thread){ | |
thread.markRead(); | |
}) | |
} |
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
print(input()-input()) |
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
0 hkd:260000 ask:400000 spr:1740000 | |
1 hkd:316400 ask:400000 spr:1683600 | |
2 hkd:369416 ask:400000 spr:1630584 | |
3 hkd:419251 ask:399999 spr:1580750 | |
4 hkd:466095 ask:400000 spr:1533905 | |
5 hkd:510131 ask:399999 spr:1489870 | |
6 hkd:551523 ask:400000 spr:1448477 | |
7 hkd:590432 ask:399999 spr:1409569 | |
8 hkd:627006 ask:400000 spr:1372994 | |
9 hkd:661385 ask:399999 spr:1338616 |
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
/*--- int 型スタックを実現する構造体 ---*/ | |
typedef struct{ | |
int max; /* スタックの容量 */ | |
int ptr; /* スタックポインタ */ | |
char name[20];/* 氏名 */ | |
int height; /* 身長 */ | |
double vision; /* 視力 */ | |
} PhysCheck; |
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 clone https://github.com/b4b4r07/enhancd ~/.enhancd |
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
source "$HOME/.enhancd/init.sh" |
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
# **env install -l でインストールすることが出来るバージョンを確認することが出来る | |
pyenv install -l | |
# **env install {バージョン} でインストールする | |
rbenv install 2.4.0 | |
# **env versions でインストールされたバージョンを確認することが出来る | |
ndenv versions | |
# **env version でイ現在使用しているバージョンを確認することが出来る |
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
# python | |
anyenv install pyenv | |
# ruby | |
anyenv install rbenv | |
# nodejs | |
anyenv install ndenv |
NewerOlder