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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
<script type="text/javascript" | |
src="http://codeorigin.jquery.com/jquery-1.10.2.min.js"> | |
</script> | |
<script type="text/javascript" | |
src="http://cdnjs.cloudflare.com/ajax/libs/knockout/2.3.0/knockout-min.js"> |
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
function peco-alias(){ | |
TARGET_ALIAS=$(alias | peco --query "$LBUFFER") | |
BUFFER=$(echo "$TARGET_ALIAS"|awk -F '=' '{print $1}') | |
CURSOR=$#BUFFER | |
zle clear-screen | |
} | |
zle -N peco-alias | |
bindkey '^@^a' peco-alias |
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
#!/bin/zsh | |
GST_LIST=$(git status -s|awk '{print $2}'|peco|tr '\n' ' ') | |
echo $GST_LIST | |
echo '上記ファイルを転送して良ければyes' | |
read ANSWER | |
if test ${ANSWER} = "yes"; then |
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
copy: { | |
dist: { | |
files: [{ | |
expand: true, | |
dot: true, | |
cwd: '<%= yeoman.app %>', | |
dest: '<%= yeoman.dist %>', | |
src: [ | |
'*.{ico,png,txt}', | |
'.htaccess', |
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
cd /private/etc/apache2 | |
sudo sh -c "openssl genrsa 2048 > server.key" | |
sudo sh -c "openssl req -new -key server.key > server.csr" | |
sudo sh -c "openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt" |
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
a_id | b_id | a_name | a_memo | |
---|---|---|---|---|
1 | 1 | aa1 | a_memo1 | |
2 | 2 | aa2 | a_memo2 | |
3 | 3 | aa3 | a_memo3 | |
4 | 4 | aa4 | a_memo4 | |
5 | 5 | aa5 | a_memo5 | |
6 | 6 | aa6 | a_memo6 | |
7 | 7 | aa7 | a_memo7 | |
8 | 8 | aa8 | a_memo8 | |
9 | 9 | aa9 | a_memo9 |
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
brew install ctags |
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
composer create-project laravel/laravel la5test --prefer-dist |
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
// File::delete()メソッド: | |
File::shouldReceive('delete')->andReturn(true); | |
File::makePartial(); |
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
docker pull mysql | |
docker run --name mysql -e MYSQL_ROOT_PASSWORD=mysql -d -p 3306:3306 mysql | |
# 接続確認 passwordはmysqlになります。 | |
mysql -h $(boot2docker ip) -uroot -p |
OlderNewer