All examples use the Stretcher ruby gem
- An Information Retrieval (IR) System
- A way to search your data in terms of natural language, and so much more
#!/usr/bin/env perl -w | |
use strict; | |
# Convert CSV file that exported by Apple Numbers.app to TSV | |
my $file = shift || die; | |
open my $fh, '<', $file || die; | |
while ( my $entry = <$fh> ) { |
戦果,艦種,艦級,艦名,レア度,余談 | |
S,軽空母,祥鳳型,祥鳳,3,半裸の人 | |
A,正規空母,蒼龍型,蒼龍,4, | |
S,重巡洋艦,妙高型,妙高,3, | |
1,,,,, | |
C,,,,, | |
A,重巡洋艦,最上型,最上,3, | |
C,,,, | |
A,軽巡洋艦,長良型,鬼怒,3,マジパナイ鬼怒ちゃんマジパナイ | |
3,,,,,お仕置き部屋 |
#BH15.15向け金沢案内 @tonetsの主観です.行ったこと無い店も含まれています.
#飲み屋 ##金沢駅周辺
#!/usr/bin/env ruby | |
require 'nokogiri' | |
require 'erb' | |
#require 'uri' | |
#require 'pp' | |
class BioSampleSet | |
include Enumerable |
# | |
# docker run wrapper for OGS/GE | |
# | |
# Copyright (c) 2016 Akihiro Matsushima | |
# Released under the MIT license | |
# http://opensource.org/licenses/mit-license.php | |
# | |
function sigconthandler() { | |
docker unpause $cid |
a = '万中久乾亀亨享仁保元勝化吉同和喜嘉国大天字安宝寛寿平康延建弘徳応感慶成承授政文斉昌明昭景暦正武永治泰白祚神祥禄禎福老至興衡観護貞銅長雉雲霊養' | |
a.split(//).each do |x| | |
a.split(//).each do |y| | |
print "#{x}#{y}," | |
end | |
end |
require 'sinatra' | |
require 'haml' | |
# 静的コンテンツ参照のためのパス設定 | |
set :public, File.dirname(__FILE__) + '/public' | |
# アップロード | |
get '/' do | |
haml :index |
#!/usr/bin/env perl | |
# Based on scripts and discussion found in http://seqanswers.com/forums/showthread.php?t=1425 | |
# and https://www.biostars.org/p/43855/ | |
# This script changes the color space sequence on the 2nd line of each fastq | |
# to base space. It does not convert the qual string since SOLID qual is | |
# already in Sanger format. The first base and quality value (primer) are | |
# discarded. |