IHR
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 -e | |
ihr="iVBORw0KGgoAAAANSUhEUgAAABIAAAAbCAYAAABxwd+fAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wQYESYN7xrrNAAABftJREFUOMtFlV1onXcBxn/v93s+c3JympwkTW3M2qWtH7SrtS2IyJTBHMMbBzJ2UXGgKFj0QgQFZYKDgSC72IWO7WZg0YuquxEtDqE6nDo3t9Y2Sb+SJic5J8l5vz/+H68Xdfq7/z03zwOPwX9Z+9tlfnnpj3S77sEo1BfyUj+xs7vv5Fm602zVOp1+3z20fP7S7MLia4bbHGhZysc+tfyBjgFw6ac/pN+bsN65vv7obhB9z7a887v7gbU+GFKWJQYahcHk1Ex++KHl20eXP/KzEydOvHx/Yz387GOPUq+b2C89912yVLJ6Z/jFJJMvrq4Pe0WWEsURe1FMWZZYpoFUmvvbA3+8v3uMInl+uL52zrDsi//6+5ubSSawznz0OEGcLIRJ+UJSqIc3hyOCKCJMEpI8Q0iFUAqhJHkpyPKUPE0tWeQnpFTuExd/9LvXf/FaZZ1YepiiKJ7JCvnsKEyMjcE2+2GAkJKqgprv49g2FQYYJlprfNfFMAzKspwf3b72p827q5t2nIyPCslXo1yYozAiiEKkFDQ8j8mJNi3fZ6JRo9KavFQMw5Asz1BaY8JB3/W+/aUvf/2CHabFM3kujo/TnDBN8SyTc8vHOLN8hAPtFmal8T0XG5MsF1y/d4+3VtbY3t2lEIr2YPvUzevv922h9FNBmppRmtJyHR7/xEkeP3+Wlu9iVJq8yBFCoqSi7jicWJij4dr85eYt7o4D1tZu9msTk0tWf3rmx0Ecu2ZV8YVzp/j82TO0fI9Ka6qqokI/2IhhIIREakWzXsNxHFY |
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 -e | |
curl -s -o 1.jpg http://tokyo-ame.jwa.or.jp/map/map000.jpg | |
min=`date +"%M"` | |
target_date=`date +"%Y%m%d%H"``expr $min / 5 \* 5` | |
curl -s -o 2.gif http://tokyo-ame.jwa.or.jp/mesh/000/$target_date.gif | |
curl -s -o 3.png http://tokyo-ame.jwa.or.jp/map/msk000.png | |
convert 1.jpg 3.png -composite tmp.png |
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
07/11 15:32:30 y_ihara: どうしてもねむいときは15分ぐらいうつ伏せになって寝ろ そして仕事しろ | |
07/18 15:33:02 y_ihara: 女子高専生かもしれないだろ!(見学の学生が来ている、とのフリに) | |
07/20 17:12:47 y_ihara: やばいの限度超えると笑えてくるだろ... | |
07/24 14:14:12 y_ihara: 本物のぼっちではないので、必死にぼっちになるのを回避する側なのであぶれたことはないですよ、ええ(はーい二人組作ってーのフリに) | |
07/27 15:02:29 y_ihara: androidとかおもちゃだろ | |
07/27 18:20:26 y_ihara: 肉食いたすぎてnilって打つはずがnikになった | |
07/29 14:49:00 y_ihara: 【勤怠】 IHR ナーヴギアが外れなくなったため全休します | |
07/30 15:03:05 y_ihara: 髭の剃り残し気になる... | |
08/06 14:29:08 y_ihara: いや俺は別に飯しか撮るもの無いからiPhoneでいいよ(カメラ買えば、とのフリに) | |
08/06 14:30:04 y_ihara: 夏だから=>夏服だから=>夏服の女子高生=>ボルやばい |
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
# -*- coding: utf-8 -*- | |
require 'benchmark' | |
require 'set' | |
# 100種類の乱数の配列のデータを取る | |
n = 100 | |
# 配列の要素の最大値が100...100000まで比較 | |
[100, 1000, 10000, 100000, 1000000, 10000000].each do |max| | |
# 毎回異なる要素数100000個の乱数の配列に対して100回操作 | |
sources = n.times.map do |
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
* About to connect() to blog.twitter.com port 443 (#0) | |
* Trying 199.59.148.84... | |
* Adding handle: conn: 0x7fbf52805400 | |
* Adding handle: send: 0 | |
* Adding handle: recv: 0 | |
* Curl_addHandleToPipeline: length: 1 | |
* - Conn 0 (0x7fbf52805400) send_pipe: 1, recv_pipe: 0 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to blog.twitter.com (199.59.148.84) port 443 (#0) |
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 -e | |
FILE=`man -w $1` | |
command=`echo $FILE | sed -e "s/.*\/\(.*\)\..*$/\1/"` | |
TMP_FILE=/tmp/for-epub-$command.html | |
EPUB_FILE=`pwd`/$command.epub | |
man $command | man2html > $TMP_FILE | |
/Applications/calibre.app/Contents/MacOS/ebook-convert $TMP_FILE $EPUB_FILE --no-default-epub-cover --title "$command" --language "en" --dont-split-on-page-breaks |
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
alert("out"); |