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
perl -ne 's/\n/,/g; print' hoge.txt |
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
perl -ne '@F=/<(.*)>/; print "$F[0]\n"' hoge.txt |
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/sh | |
# minify.sh | |
# for css | |
file=`find docroot/css -name "*.css"` | |
for f in $file | |
do | |
buff=`cat $f` | |
buff=`echo "$buff" | perl -pe 's/\n/ /g'` | |
buff=`echo "$buff" | perl -pe 's/\/\*[^\*]*[^\/]*\*\///g'` |
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
"transform into namespace from directory | |
command! -nargs=* Namespace call Namespace() | |
function! Namespace() | |
r! pwd | sed 's/\//\\/g' | sed 's/.*\\src\\/namespace /g' | sed 's/$/;/g' | |
endfunction |
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
for i in $(`echo ls *.php`); do php -l $i; done; |
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/sh | |
opt="-i" | |
sed $opt "s/ヴ/ヴ/g" $1 | |
sed $opt "s/ガ/ガ/g" $1 | |
sed $opt "s/ギ/ギ/g" $1 | |
sed $opt "s/グ/グ/g" $1 | |
sed $opt "s/ゲ/ゲ/g" $1 | |
sed $opt "s/ゴ/ゴ/g" $1 | |
sed $opt "s/ザ/ザ/g" $1 |
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/sh | |
opt="-i" | |
# 濁点などは先に | |
sed $opt "s/ヴ/ヴ/g" $1 | |
sed $opt "s/ガ/ガ/g" $1 | |
sed $opt "s/ギ/ギ/g" $1 | |
sed $opt "s/グ/グ/g" $1 | |
sed $opt "s/ゲ/ゲ/g" $1 | |
sed $opt "s/ゴ/ゴ/g" $1 |
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
find . -mtime -3 -ls | sort -k8,10 -r | head -n10 |
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
$(function() { | |
$("button").click(function() { | |
// load.htmlのp要素のみ取得 | |
$("div").load("./load.html p"); | |
}); | |
}); |
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
.blink { | |
-webkit-animation-name blink; | |
-webkit-animation-duration: 1.0s | |
-webkit-animation-iteration-count: infinite; | |
} | |
@-webkit-keyframes blink { | |
0% {opacity:0} | |
100% {opacity:1} | |
} |
NewerOlder