This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
type Pair struct { | |
Key string | |
Value string | |
} | |
type LTSV struct { | |
values []Pair | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hg checkout v7-3-367 | |
sudo apt-get install -y \ | |
mercurial \ | |
gettext \ | |
libncurses5-dev \ | |
libgtk2-dev \ | |
libxt-dev | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o pipefail | |
set -e | |
HASH=$(git log --oneline | peco | cut -d " " -f 1) | |
if [ "$?" -ne 0 -o -z "$HASH" ]; then | |
exit 1 | |
fi | |
git rebase -i "$HASH" $@ | |
# install: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func main() { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# open-gvim.sh | |
# | |
# - Open a file with gvim | |
# - If there is running gvim open file in there. | |
# - Open "path with line number" (like "/path/to/file:42" printed in grep and etc.) | |
if [ "$#" -eq 0 ]; then | |
if vim --serverlist | grep -q GVIM; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Text | |
main : Element | |
main = collage 500 500 [scale 0.5 (form (500, 500))] | |
form (w, h) = | |
toForm | |
(layers | |
[ fittedImage w h "/shells.jpg" | |
, container w h bottomLeft (centered (Text.color white (toText "She sells sea shells."))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'pp' | |
ARGV.each do |a| | |
y = open(a) do |f| | |
YAML.load(f) | |
end | |
sort = lambda do |x| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import String | |
import Graphics.Input (Input, input) | |
import Graphics.Input.Field as Field | |
lhd : Input Field.Content | |
lhd = input Field.noContent | |
rhd : Input Field.Content | |
rhd = input Field.noContent |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ある食べ物が身体にいいという話はよく聞きますが、アメリカの調査結果によれば、パンは危険な食べ物だということがわかりました。パン食が増えている日本も他人事ではありません! | |
その驚愕の事実をご紹介します。 | |
・犯罪者の98%はパンを食べている | |
・パンを日常的に食べて育った子供の約半数は、テストが平均点以下である | |
・暴力的犯罪の90%は、パンを食べてから24時間以内に起きている | |
・パンは中毒症状を引き起こす。被験者に最初はパンと水を与え、後に水だけを与える実験をすると、2日もしないうちにパンを異常にほしがる | |
・新生児にパンを与えると、のどをつまらせて苦しがる | |
・18世紀、どの家も各自でパンを焼いていた頃、平均寿命は50歳だった |
OlderNewer