Skip to content

Instantly share code, notes, and snippets.

@tshrkmd
tshrkmd / openstf-mac.yaml
Last active July 10, 2019 15:09
openstf-mac
rethinkdb:
image: rethinkdb:2.3
ports:
- "8080:8080"
- "28015:28015"
- "29015:29015"
restart: always
volumes:
- "~:/data" # 絶対パスで書いたほうが良いかも
command: "rethinkdb --bind all --cache-size 2048"
"検索をファイルの先頭へ循環しない
set nowrapscan
"大文字小文字の区別なし
set ignorecase
"検索時に大文字を含んでいたら大/小を区別
set smartcase
"検索対象をハイライト
@tshrkmd
tshrkmd / tmux.comf
Last active August 7, 2017 09:57
tmux.comf
# prefixキーをC-eに変更する
set -g prefix C-e
# C-bのキーバインドを解除する
unbind C-b
# キーストロークのディレイを減らす
set -sg escape-time 1
# ウィンドウのインデックスを1から始める
@tshrkmd
tshrkmd / docker-android-build-image
Last active July 16, 2017 11:50
android build image
# based on https://registry.hub.docker.com/u/samtstern/android-sdk/dockerfile/ with openjdk-8
FROM java:8
MAINTAINER Toshihiro.Kamada <tshrkmd@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
# Install dependencies
RUN dpkg --add-architecture i386 && \
apt-get update && \
rethinkdb:
image: rethinkdb:2.3
ports:
- "8080:8080"
- "28015:28015"
- "29015:29015"
restart: always
volumes:
- "/srv/rethinkdb:/data"
command: "rethinkdb --bind all --cache-size 2048"
@tshrkmd
tshrkmd / sample.go
Last active February 14, 2017 01:01
interface studty
package main
import "fmt"
type GPS struct {
lat string
lon string
}
type Wifi struct {
import java.util.ArrayList;
/**
* 素数計算プログラム
* @author kerukerupappa
*
*/
public class Sosu {
private static ArrayList mSosuList = new ArrayList();
#include
#include
/**
* 構造体
*/
typedef struct sosu_list {
int no;
struct sosu_list *next;
#include <stdio.h>
/*
* 月末を返却
* param yyyy 年
* param mm 月
* return 月末
*/
int get_end_month(int yyyy , int mm)
{
@tshrkmd
tshrkmd / play_scala_json_sample.scala
Last active December 28, 2015 18:39
ちょっと雑だけどplay2.2のjsonのバインドサンプル
package jp.daneko.json.sample
import org.specs2._
import play.api.libs.json._
import play.api.libs.functional.syntax._
class Sample extends Specification {
def is = s2"""