yum -y update
yum -y install centos-release-gluster312
yum -y install glusterfs gluster-cli glusterfs-libs glusterfs-server
yum clean all
This file contains hidden or 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 os | |
| import time | |
| import random | |
| import digdag | |
| class ParamSet(object): | |
| def set_param(self): | |
| time.sleep(int(os.environ['sleep'])) | |
| digdag.env.store({'value': os.environ['value']}) | |
| print(f"{os.environ['value']} finished") |
This file contains hidden or 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
| /****************************************************************************************** | |
| Copyright (C) 2008 Niklas Sondell, Storm Weather Center | |
| This file is part of wgrib2 and could be distributed under terms of the GNU General Public License | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include "grb2.h" |
M(E,τ)がマトロイドだとして、X,Y∈τ かつ |X|<|Y| ならある e∈Y∖X が存在して X+e∈τの説明でよく「独立集合」って使われるけどそれはなんやねん- ベクトルマトロイドで考えると、線形独立なベクトルの集合ということで説明がつくらしい
- 線形独立ならギリギリ分かるで! https://mathtrain.jp/linearlyindep
This file contains hidden or 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 numpy as np | |
| test_a = np.array([ | |
| [1, 2, 3, 4, 5, 6], | |
| [7, 8, 9, 10, 11, 12], | |
| [13, 14, 15, 16, 17, 18], | |
| [19, 20, 21, 22, 23, 24], | |
| [25, 26, 27, 28, 29, 30], | |
| [31, 32, 33, 34, 35, 36], | |
| ]) |
This file contains hidden or 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
| sudo ln -s /usr/local/Cellar/ghostscript/9.23/share/ghostscript/9.23/Resource /usr/local/texlive/texmf-local/dvipdfm | |
| sudo mktexlsr |
This file contains hidden or 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
| if ARGV.empty? | |
| puts 'Usage: ruby md2pukiwiki.rb input.md' | |
| exit 1; | |
| end | |
| input = File.open(File.expand_path(ARGV[0], File.join(__FILE__, '../'))).read rescue '' | |
| output = input.gsub(/\[(?<text>.+)\]\((?<url>.+)\)/,'[[\k<text>>\k<url>]]').gsub('#', '*').gsub(' ', '-') | |
| puts output |
This file contains hidden or 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 bitbucket.org | |
| User git | |
| Hostname bitbucket.org | |
| identityfile ~/.ssh/bitbucket.org | |
| Port 22 | |
| TCPKeepAlive yes | |
| IdentitiesOnly yes | |
| Host github.com | |
| User git |