Skip to content

Instantly share code, notes, and snippets.

View kkosuge's full-sized avatar
🐇
busy

Kosuge Kazuya kkosuge

🐇
busy
View GitHub Profile
@kkosuge
kkosuge / gist:1309269
Created October 24, 2011 15:06
Gist に日記は書けるのかな?

今日のにっき

友達二人とイオンに行ってきたよー

  • ル・シュクレのうさぎは今日もかわいい
    ル・シュクレのうさぎ  
     
  • ごはん食べました
    ラケルごはん
@kkosuge
kkosuge / ikemen.rb
Created October 8, 2011 16:13 — forked from rummelonp/ikemen.rb
jpegからイケメン画像たくさん生成するやつ(Mac用
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 にした
@kkosuge
kkosuge / a_smart_dashboard_have_my_id.user.js
Created August 14, 2011 20:01 — forked from rummelonp/a_smart_dashboard_have_my_id.user.js
Dashboardのみで動作、ポストが自分のidを含んでいるかの判定をより厳密に、User CSSの「A smart dashboard is_mine」に依存しないように変更した。
// ==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==
use strict;
use warnings;
use Config::Pit;
use Net::Twitter::Lite;
use DateTime;
use Encode;
use utf8;
my $now = DateTime->now;