Skip to content

Instantly share code, notes, and snippets.

View rkmathi's full-sized avatar
🐈

Ryuichi KAWAMATA rkmathi

🐈
View GitHub Profile
@rkmathi
rkmathi / GB37301.md
Last active March 7, 2020 06:41
情報システム特別講義D #GB37301

情報システム特別講義D

  • 1時限目 イントロ - 川島先生(筑波大学)

  • 2時限目 Inside PostgreSQL Kernel - 永安 悟史さん(アップタイム・テクノロジーズ)

  • 3時限目 データストレージの諸々 - 星野 喬さん(サイボウズ・ラボ)

  • 4時限目 並列データベースシステムの概念と原理 - 油井 誠さん(産総研)

@rkmathi
rkmathi / csv_to_colon.rb
Created January 21, 2014 16:07
csv to double-colon
require 'csv'
in_file = ARGV[0]
out_file = ARGV[1]
ramen_csv = CSV.table(in_file)
File.open(out_file, 'w') { |file|
ramen_csv.each_with_index { |row,i|
row.each { |r|
@rkmathi
rkmathi / gist:7798830
Created December 5, 2013 01:43
Gentoo Linux glibc-2.16 died :(
* Messages for package sys-libs/glibc-2.15-r3:
* The ebuild phase 'postrm' has been killed by signal 11.
* The 'postrm' phase of the 'sys-libs/glibc-2.15-r3' package has failed
* with exit value 1.
*
* The problem occurred while executing the ebuild file named
* 'glibc-2.15-r3.ebuild' located in the '/var/db/pkg/sys-
* libs/glibc-2.15-r3' directory. If necessary, manually remove the
* environment.bz2 file and/or the ebuild file located in that directory.
@rkmathi
rkmathi / install.md
Last active December 30, 2015 02:19
Installing Gentoo Linux (amd64) in Sakura VPS
@rkmathi
rkmathi / Makefile.patch
Last active December 28, 2015 18:18
MeCab.jarをScalaで使いたい (on Gentoo)
*** mecab-java-0.996/Makefile 2013-02-18 02:24:16.000000000 +0900
--- ../opt/lib/mecab-java/Makefile 2013-11-19 16:32:57.426941588 +0900
***************
*** 3,9 ****
JAVA=java
JAR=jar
CXX=c++
! INCLUDE=/usr/lib/jvm/java-6-openjdk/include
PACKAGE=org/chasen/mecab
@rkmathi
rkmathi / html.html
Created November 2, 2013 06:37
こんにちは世界 (from http://codepen.io/diegopardo/pen/GqEho)
<div class="foo">
<span class="letter" data-letter="こ">こ</span>
<span class="letter" data-letter="ん">ん</span>
<span class="letter" data-letter="に">に</span>
<span class="letter" data-letter="ち">ち</span>
<span class="letter" data-letter="は">は</span>
<span class="letter" data-letter="世">世</span>
<span class="letter" data-letter="界">界</span>
</div>
@rkmathi
rkmathi / MainSpec.scala
Last active December 26, 2015 09:39
https://github.com/rkmathi/basic-project.g8 => src/main/g8/src/test/scala/MainSpec.scala
import org.specs2._
class AppSpec extends Specification {
def is = s2"""
This is a specification to check the 'Hello world' string
The 'Hello world' string should
contain 11 characters $e1
start with 'Hello' $e2
@rkmathi
rkmathi / hoge.html
Last active December 21, 2015 20:49
あのあれ
<!DOCTYPE html>
<html>
<head>
<title>hoge</title>
<meta charset="utf-8">
<script src="hoge.js"></script>
</head>
<body>
<header>
<h1>
@rkmathi
rkmathi / heredoc.js
Created August 28, 2013 01:42
here document on JavaScript
var heredoc = (function () {/*
<p>
hoge
</p>
*/}).toString().match(/[^]*\/\*\n([^]*)\n\*\/\}$/)[1];
@rkmathi
rkmathi / Hello.scala
Last active December 19, 2015 10:19
:QuickRun scala
object Hello {
def main(args: Array[String]) {
println("hello hoge")
}
}