This file contains 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
.TH "and" 1 "Mon Nov 13 2017" "Version 2.6.0" "fish" \" -*- nroff -*- | |
.ad l | |
.nh | |
.SH NAME | |
\fBand\fP - conditionally execute a command | |
.PP | |
.SS "Synopsis" | |
.PP | |
.nf |
This file contains 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
{ | |
"require": { | |
"php": ">=5.4", | |
"google/cloud-bigquery": "^0.2" | |
}, | |
"require-dev": { | |
"phpunit/phpunit": "~4" | |
} | |
} |
This file contains 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
pdftotext "$1" - | tr " " "\n" | sort | uniq -ic | sort -gr |
This file contains 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
(defparameter *nodes* '((living-room (you are in the living-room. | |
a wizard is snoring loudly on the couch.)) | |
(garden (you are in a beautiful garden. | |
there is a well in front of you.)) | |
(attic (you are in the attic. | |
there is a giant welding torch in the corner.)))) | |
(defparameter *edges* '((living-room (garden west door) | |
(attic upstairs ladder)) | |
(garden (living-room east door)) |
This file contains 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
case class Student(name: Option[String], age: Option[Int], grade: Option[Int]) | |
val list = List( | |
Some(Student(Some("Steve"), Some(15), Some(1))), | |
Some(Student(Some("Chad"), Some(16), Some(2))), | |
Some(Student(Some("Shigeru"), Some(40), Some(1))), | |
Some(Student(Some("Chloé"), Some(18), Some(3))) | |
) | |
println(list.flatMap(_.get.name)) |
This file contains 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
case class Student(name: String, age: Int, grade: Int) | |
val list = List( | |
Student("Steve", 15, 1), | |
Student("Chad", 16, 2), | |
Student("Shigeru", 40, 1), | |
Student("Chloé", 18, 3) | |
) | |
val students = for { |
This file contains 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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y git | |
sudo apt-get install -y unzip | |
wget --quiet https://github.com/motemen/ghq/releases/download/v0.7.2/ghq_linux_amd64.zip -O ghq_v0.7.2.zip | |
unzip -q -d ghq_v0.7.2 ghq_v0.7.2.zip | |
wget --quiet https://github.com/motemen/ghq/releases/download/v0.6/ghq_linux_amd64.tar.gz -O ghq_v0.6.tar.gz | |
tar xzf ghq_v0.6.tar.gz |
This file contains 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
<html> | |
<body> | |
<a href="http://www.shigemk2.com">テスト</a> | |
</body> | |
</html |
This file contains 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
set-option -g prefix C-t | |
bind t send-prefix | |
#bind r source-file "~/.tmux.conf"; display-message "Reload Config!!" | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
set-option -g status-utf8 on | |
set -g status-right '#(rainbarf)' | |
### for Linux | |
if-shell "which xsel" '\ |
This file contains 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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line to use case-sensitive completion. |
NewerOlder