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
var express = require('express'); | |
const bodyParser = require('body-parser'); | |
var jsg = require('json-schema-generator') | |
var http = require('http'); | |
var async = require('async') |
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
## .bashrc by tani.masaru | |
# 新しく作られたファイルのパーミッションを644をデフォルトにする | |
umask 022 | |
# coreファイルを作らないようにする | |
ulimit -c 0 | |
## シェル変数 | |
# プロンプト文字列の設定 |
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
syntax enable | |
" ウィンドウのタイトルを変更 | |
set title | |
" 行番号を表示 | |
set number | |
" 折り返さない | |
set nowrap |
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
#! /usr/local/bin/python2.7 | |
# -*- coding: utf-8 -*- | |
import matplotlib.pyplot as plt | |
# 全体のフォントサイズを設定 | |
plt.rcParams.update({'font.size':20}) | |
# 適当なデータ | |
data = [100, 65, 28, 5] |
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
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import numpy as np | |
import warnings | |
in_filename = "empty.dat" | |
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
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt | |
##input_data = np.loadtxt("normal.dat") |
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
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt | |
##input_data = np.loadtxt("normal.dat") |
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
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt | |
data = np.loadtxt("data.dat") | |
## 中身の例 |
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
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
num = 3 | |
## "-"という文字列を要素に持つ配列を用意 | |
strArray = np.array(["-"] * num) |
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
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
import numpy as np | |
num = 3 | |
## "-"という文字列を要素に持つ配列を用意 |
NewerOlder