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
Host sakura | |
HostName {さくらのIPアドレス} | |
User {useraddしたユーザの名前} | |
Port {/etc/ssh/ssh_config.orgのPortで指定した番号} | |
IdentityFile ~/.ssh/id_rsa.sakura |
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
export PATH=/usr/local/nginx/sbin:$PATH |
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
$ cd /usr/local/ | |
$ git clone https://github.com/letsencrypt/letsencrypt | |
$ cd letsencrypt | |
$ ./letsencrypt-auto --help | |
$ ./letsencrypt-auto certonly --webroot -d www.{自分の契約しているドメイン} --webroot-path {公開したいドキュメントのルートここでは/var/www} |
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
$ ruby -v | |
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] |
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
# background = 39 40 34 (#272822) | |
defaults write TeXShop background_R 0.15 | |
defaults write TeXShop background_G 0.16 | |
defaults write TeXShop background_B 0.13 | |
# commands = 102 217 239 (#66D9EF) | |
defaults write TeXShop commandred 0.4 | |
defaults write TeXShop commandgreen 0.85 | |
defaults write TeXShop commandblue 0.94 |
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
# tmuxのprefixをC-zにしており, | |
# C-zが2回連続で押されると, | |
# tmux内部のソフトにC-zが送られるようにしている. | |
# https://github.com/lapis-zero09/dot_files/blob/master/tmux.conf | |
# zshではC-zがサスペンド状態にするコマンド | |
# suspendedのとき | |
% jobs #suspended jobの確認 |
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
{ | |
"name" : "My favorites", | |
"sub-menu" : [ | |
{ | |
"name" : "analysis", | |
"snippet" : [ | |
"import pandas as pd", | |
"import numpy as np", | |
"import json", | |
"from collections import defaultdict", |
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
from scipy.stats import ttest_ind_from_stats | |
from scipy.special import stdtr | |
abar = a.mean() | |
avar = a.var(ddof=1) | |
na = a.size | |
adof = na - 1 | |
bbar = b.mean() | |
bvar = b.var(ddof=1) |
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
def fillna_col(df, col): | |
df[col] = df[col].where(df[col].notnull(), 0) | |
return df |
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
# -*- coding: utf_8 -*- | |
%matplotlib inline | |
import pandas as pd | |
import numpy as np | |
import scipy | |
import json | |
import collections | |
import matplotlib.pyplot as plt | |
from tqdm import tqdm_notebook as tqdm |
OlderNewer