友達二人とイオンに行ってきたよー
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 = ARGV.shift | |
if File.exists?(path) && path.match(/^(.+)\.(jpe?g|jp2)$/) | |
filename = $1 | |
ext = $2 | |
files = [] | |
10.times do |i| | |
10.times do |j| | |
if i != j | |
files << output = "#{filename}_ikemen_#{i}#{j}.#{ext}" | |
`cat #{path} | sed s/#{i}/#{j}/g > #{output}` # gsed じゃなくて sed にした |
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
// ==UserScript== | |
// @name A smart dashboard have my id | |
// @namespace http://mitukiii.jp/ | |
// @description TumblrのDashboardで自分からReblogされた/自分のidを含んだpostを折り畳むスクリプト | |
// @include http://www.tumblr.com/dashboard* | |
// @author mitukiii | |
// @compatibility Firefox 5.0(Scriptish 0.1), Chrome 12.0.742.112, Opera 11.50 | |
// @charset UTF-8 | |
// @version 0.0.2.20110707180600 | |
// ==/UserScript== |
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
use strict; | |
use warnings; | |
use Config::Pit; | |
use Net::Twitter::Lite; | |
use DateTime; | |
use Encode; | |
use utf8; | |
my $now = DateTime->now; |
NewerOlder