Skip to content

Instantly share code, notes, and snippets.

View duck8823's full-sized avatar
🦆
quack, quack

Shunsuke Maeda duck8823

🦆
quack, quack
View GitHub Profile
@duck8823
duck8823 / image.JPG
Last active April 10, 2019 04:37
🦆 < quack, quack
image.JPG
@duck8823
duck8823 / Dockerfile
Last active January 8, 2019 16:34
QTL-seq pipeline に必要なツール群
###
#
# QTL-seq pipline
# see also: http://genome-e.ibrc.or.jp/home/bioinformatics-team/mutmap/QTL-seq_quick_start_guide_brief_Rev0.0.pdf
#
# Usage:
# 0. change directory to the working directory
# 1. curl -O -L https://gist.githubusercontent.com/duck8823/3ef65d29328b2f99057d5f67dbc86e24/raw/Dockerfile
# 2. docker build -t qtl_seq .
# 3. curl -O -L http://genome-e.ibrc.or.jp/home/bioinformatics-team/mutmap/QTL-seq_framework1.4.4.tar.gz
package main
import (
"archive/tar"
"bytes"
"context"
"encoding/json"
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
@duck8823
duck8823 / Dockerfile
Created May 6, 2018 03:43
Dockerfile
FROM maven:3.5.3-jdk-8
ADD . .
ENTRYPOINT ["mvn"]
@duck8823
duck8823 / callback.kt
Created April 15, 2017 06:37
kotlin でふにゃふにゃ
fun main(args: Array<String>) {
exec(fun(a: String): String {
return "Hello $a"
})
}
fun exec(callback: (String) -> String ) {
println(callback("world"))
}
@duck8823
duck8823 / .vimrc
Created March 2, 2017 22:37
powerlineだけ
" 基本
set number
set tabstop=4
set shiftwidth=4
set softtabstop=4
set encoding=utf-8
set fileencoding=utf-8
" 新しいウィンドウを開く場所
set splitbelow
@duck8823
duck8823 / Animal.pm
Last active November 6, 2016 09:51
Perl6のコンストラクタと継承
package Animal;
sub new {
my $pkg = shift;
return bless {name => {@_}->{name}}, $pkg;
}
sub name {
my $self = shift;
return $self->{name};
@duck8823
duck8823 / data.xml
Last active November 5, 2016 15:39
DBUnit
<?xml version="1.0" encoding="UTF-8" ?>
<dataset>
<User id="1" name="foo" />
<User id="2" />
</dataset>
@duck8823
duck8823 / build.pl6
Last active November 5, 2016 18:31
Perl6でコンストラクタでプライベートフィールドに値を渡したい
my class Hoge {
has Str $!fuga;
submethod BUILD(:$!fuga) {
}
method fuga {
return $!fuga;
}
}
@duck8823
duck8823 / Dockerfile
Last active September 3, 2016 14:34
Facebookのグループ新着チェック
FROM centos:7
MAINTAINER shunsuke maeda <duck8823@nig.ac.jp>
# 依存ライブラリ
RUN yum update -y
RUN yum install -y gcc make wget bzip2 fontconfig openssl-devel
# Python 3.5
WORKDIR /tmp