Skip to content

Instantly share code, notes, and snippets.

View sambatriste's full-sized avatar

Tsuyoshi Kawasaki sambatriste

View GitHub Profile
@sambatriste
sambatriste / wrap_and_rowspan.clj
Last active August 29, 2015 14:22
axebomberの再現試験
(ns axebomber.wrap_and_rowspan
(:require [clojure.java.io :as io])
(:use [axebomber usermodel]
[axebomber.renderer excel]
[axebomber.style :only [create-style]]
[midje.sweet]))
(fact "折り返しとrowspanが混ざるとrowspanが足りない?"
(let [wb (create-workbook) sheet (to-grid (.createSheet wb "otameshi"))]
@sambatriste
sambatriste / curl-xml.config
Last active May 14, 2016 00:42
curlでXMLを送信する。curl --config hoge.config
#
# 検索API(GET)リクエスト仕様
#
verbose
url = http://localhost:8081/
header "Content-type: text/xml"
data-binary = @myxml.xml
@sambatriste
sambatriste / How-to-start-emacs.org
Last active September 20, 2018 01:22
how-to-start-emacs

レッツ入信!Emacsをはじめよう!

https://stallman.org/graphics/saint-button.png

時に、汝ら問いて曰く、「Emacs教会に身を置きながら、viなるテキストエディターを使うことは罪なるか」と。 いかにも、vi vi viは獣の数字なるが、自由な実装のviを使いたるときは、罪ならず。そは贖罪なり。

Clojure in 30 min

完全初心者がイベント開始30分前でClojureをなんとなくわかるようにがんばる!

  • スライドのコード片を見てなんとなくイメージが湧くこと
@sambatriste
sambatriste / oo-exercise.org
Last active November 9, 2023 13:54
「オブジェクト指向エクササイズ (ちょっとだけ)Groovy編」

オブジェクト指向エクササイズ

package hoge;
public interface ControlBreakPredicate<T> {
boolean shouldBreak(T previous, T current);
}

git subtreeを利用したマルチモジュール開発

動機

複数のモジュールを横断的に開発する場合、扱うgitリポジトリも複数になります。 (モジュールとgitリポジトリが1:1とする)

@sambatriste
sambatriste / docker-compose.yml
Created March 4, 2018 00:57
rascaloid-docker-compose-h2
version: "3"
services:
api:
image: kawasima/rascaloid
ports:
- 3000:3000
ui:
image: kawasima/rascaloid-ri

VirtualBox

最新版をインストールする。

Vagrant

雑に言うと、VirtualBoxの操作をコードで書ける、みたいな仕組み。 VirtualBoxとVagrantのバージョンが大きくズレているとハマりポイントになるので、両方最新版にする。