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/sh | |
OCVDIR="/c/opencv" | |
CFLAGS="-I${OCVDIR}/build/include" | |
LIBS="-L${OCVDIR}/build/x86/mingw/lib" | |
for a in ${OCVDIR}/build/x86/mingw/lib/*.dll.a ; do | |
LIBS="${LIBS} -l`basename ${a} .dll.a | sed -e 's/libopencv/opencv/g'`" | |
done | |
if [ $# -gt 0 ] ; then | |
base=`basename $1 .c` |
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/bash -ex | |
# pdftocbz.sh | |
# Written by Takashi UNO | |
# require: poppler, ImageMagick | |
if [ $# -ne 1 ]; then | |
echo "USAGE: `basename $0` hogehoge.pdf" | |
exit 1 | |
fi |
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
#include <iostream> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
int main(int argc, char* argv[]) | |
{ | |
if(argc==1) { | |
std::cout << "Usage: compressSpace input_img" << std::endl; | |
return 0; | |
} |
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/bash -ex | |
# zip2cbz.sh | |
# Written by Takashi UNO | |
# require: zip, ImageMagick | |
if [ $# -ne 1 ]; then | |
echo "USAGE: `basename $0` hogehoge.zip" | |
exit 1 | |
fi |
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/sh | |
playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf | |
playerfile=./player.swf | |
keyfile=./authkey.png | |
if [ $# -eq 1 ]; then | |
channel=$1 | |
output=./$1.flv | |
elif [ $# -eq 2 ]; 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
#! /usr/bin/awk -f | |
BEGIN{ | |
Xn=96.4212 | |
Yn=100.0 | |
Zn=82.5188 | |
} | |
{ | |
fy=($1+16)/116 | |
fx=fy+($2/500) | |
fz=fy-($3/200) |
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
BonjourBrowser | |
CocoaAsyncSocket | |
DomainViewController | |
Google Data APIs | |
Haru Free PDF Library | |
libpng | |
MBProgressHUD | |
MultiSelectTableViewCell | |
SimpleEditViewController | |
SScrypto Framework |
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
for i in *.lab; | |
do | |
for j in *.lab; | |
do | |
if [ "$i" = "$j" ]; then | |
continue; | |
fi; | |
if [ -e dE_${j%.lab}-${i%.lab}.txt ]; then | |
continue; | |
fi; |
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/sh | |
# | |
find . -name "*:*" | while read CAPNAME | |
do | |
UTFNAME=`echo $CAPNAME | perl -MEncode -pane 's/:[0-9a-fA-F]{2})/chr(hex($1))/ge; Encode::from_to($_, "shiftjis", "utf8");'` | |
cp -R "$CAPNAME" "$UTFNAME" && rm "$CAPNAME" | |
done | |
#find . -name "*:*" -exec rm -rf {} \; |
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
# 複数の画像を1つの画像に結合します。垂直に繋げるには「-append」水平につなげるには「+append」を使います。 | |
# http://gazouiriro.seesaa.net/article/98428010.html | |
convert -append file1.png file2.png file3.png ... out.png |