Skip to content

Instantly share code, notes, and snippets.

View hrstt's full-sized avatar

sato hiroyuki hrstt

View GitHub Profile
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Icon=/usr/local/rapidminer/resources/com/rapidminer/resources/rapidminer_frame_icon_128.png
Name=RapidMiner
Comment=Rapid miner
Exec=/usr/local/rapidminer/scripts/RapidMinerGUI
Categories=Development;IDE;
@hrstt
hrstt / .bashrc
Created March 10, 2013 09:30
Wekaでheap sizeが小さいと怒られるので... ref: http://qiita.com/items/e47017b31e404ebc1d47
alias weka='weka -m 512m'
@hrstt
hrstt / file0.txt
Created March 21, 2013 12:52
Ubuntu にPostgreSQLを用意する ref: http://qiita.com/items/5f40a6aed6b81521b8f7
$ sudo apt-get install postgres postgres-client psotgresql-contrib
@hrstt
hrstt / file0.txt
Created March 21, 2013 12:53
vagrant 起動時のshared folder 関連のエラー対処 ref: http://qiita.com/items/0b1a15492123146bce82
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
@hrstt
hrstt / file0.sql
Created March 26, 2013 15:17
7つのデータベース 7つの世界 2章 PostgreSQL 1日目 ref: http://qiita.com/items/18847b18646a1965c398
CREATE TABLE countries (
country_code char(2) PRIMARY KEY,
country_name text UNIQUE
);
@hrstt
hrstt / add_event.sql
Created March 26, 2013 15:17
7つのデータベース 7つの世界 2章 PostgreSQL 2日目 ref: http://qiita.com/items/8a00a1eb47921ffa49a5
CREATE OR REPLACE FUNCTION add_event(title text, starts timestamp, ends timestamp, venue text, postal varchar(9), country char(2) )
RETURNS boolean AS $$
DECLARE
did_insert boolean := false;
found_cont integer;
the_venue_id integer;
BEGIN
SELECT venue_id INTO the_venue_id
FROM venues v
@hrstt
hrstt / file0.txt
Created March 26, 2013 15:45
Ubuntu 12.10 にRiak 1.3.0 を用意する ref: http://qiita.com/items/263307d147806cc52ca1
$ sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
$ wget http://erlang.org/download/otp_src_R15B01.tar.gz
$ tar zxvf otp_src_R15B01.tar.gz
$ cd otp_src_R15B01
$ ./configure && make && sudo make install
@hrstt
hrstt / 0_reuse_code.js
Created December 19, 2013 10:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# ggplot2 をベースにしたペアプロットのサンプル
install.packages("GGally")
library(GGally)
airquality$Month <- as.factor(airquality$Month)
airquality <- airquality[, colnames(airquality) != "Day"]
ggpairs(na.omit(airquality), lower=list(continuous="smooth"), colour="Month", params=list(corSize=6,labelSize=10))
@hrstt
hrstt / icd10list_AtoM.tsv
Last active October 18, 2016 05:38
ICD10 国際疾病分類第10版(2003年改訂) ref: http://www.dis.h.u-tokyo.ac.jp/byomei/icd10/
ICD10(except dot) ICD10 name order topcategory
A00 A00 コレラ 1 感染症および寄生虫症
A000 A00.0 コレラ菌によるコレラ 1 感染症および寄生虫症
A001 A00.1 エルトールコレラ菌によるコレラ 1 感染症および寄生虫症
A009 A00.9 コレラ,詳細不明 1 感染症および寄生虫症
A01 A01 腸チフス及びパラチフス 1 感染症および寄生虫症
A010 A01.0 腸チフス 1 感染症および寄生虫症
A011 A01.1 パラチフスA 1 感染症および寄生虫症
A012 A01.2 パラチフスB 1 感染症および寄生虫症
A013 A01.3 パラチフスC 1 感染症および寄生虫症