Skip to content

Instantly share code, notes, and snippets.

View otiai10's full-sized avatar
👋

Hiromu OCHIAI otiai10

👋
View GitHub Profile
@JesseObrien
JesseObrien / Hello.html
Created May 29, 2013 01:30
Revel Hello World app
{{set . "title" "Home"}}
{{template "header.html" .}}
<h1>Hello {{.myName}}</h1>
<a href="/">Back to form</a>
{{template "footer.html" .}}
@voluntas
voluntas / shiguredo_tech.rst
Last active March 15, 2025 00:17
時雨堂を支える技術

時雨堂を支える技術

日時:2025-03-15
作:時雨堂
バージョン:2025.2
URL:https://shiguredo.jp/

時雨堂クラウドサービスを支える技術

@nicolashery
nicolashery / elasticsearch.md
Last active December 30, 2023 19:03
Elasticsearch: updating the mappings and settings of an existing index

Elasticsearch: updating the mappings and settings of an existing index

Note: This was written using elasticsearch 0.9.

Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:

$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
  "_id": 1,
@dmitshur
dmitshur / gist:6927554
Last active December 29, 2024 12:06
[Legacy GOPATH mode] How to `go get` private repos using SSH key auth instead of password auth.
@shunirr
shunirr / yuiyuinikki_kaomoji.csv
Created November 21, 2013 16:17
ゆいゆい日記内に出てくる顔文字の一覧です。左の数値は出現回数になっています。
1728 (*-v・)
373 (∩^ω^∩)
329 (○>ω<○)
322 (´ω`)
274 (-∀-)
240 (´`)
145 (´Д`)
145 (^ω^)
130 (*-∀-)
101 (´-ω-`)
@sergiotapia
sergiotapia / images_dimensions.go
Last active November 16, 2024 05:40
Golang - Getting the dimensions of an image. jpg, jpeg, png
package main
import (
"fmt"
"image"
"os"
_ "image/jpeg"
_ "image/png"
)
@otiai10
otiai10 / zshrc.sh
Last active January 8, 2019 01:08
zshのプロンプトにブランチ名とかステータスとか出すアレ
# ----- PROMPT -----
## PROMPT
PROMPT=$'[%*] → '
## RPROMPT
RPROMPT=$'`branch-status-check` %~' # %~はpwd
setopt prompt_subst #表示毎にPROMPTで設定されている文字列を評価する
# {{{ methods for RPROMPT
# fg[color]表記と$reset_colorを使いたい
# @see https://wiki.archlinux.org/index.php/zsh

http://www.youtube.com/watch?v=Jo0gY4EjW2o

最初、ハートのAとハートのKが2枚重なって、表向けられて、 そのハートのKにはあらかじめサインしておきます。 で、上から3枚目のカードもハートのK。

[表] A
[表] K サイン済み
[裏] K