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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Imager; | |
die "Usage: div_animgif.pl filename\n" if !-f $ARGV[0]; | |
my $file = shift; | |
my @imgs = Imager->read_multi(file => $file, type=>"gif") | |
or die "Cannot read: ", Imager->errstr; |
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
<html> | |
<head> | |
<title>streat view test</title> | |
</head> | |
<body> | |
<embed align="middle" flashvars="panoId=a4WzfMzWJ4aaiBpwBwB2ow&directionMap=N:北,W:西,S:南,E:東,NW:北西,NE:北東,SW:南西,SE:南東&yaw=0&zoom=0&browser=3&serverURLPrefix=&pitch=5&viewerId=1&context=maps_sv&animateOnLoad=true&useSsl=false" salign="lt" scale="noscale" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="always" id="panoflash1" swliveconnect="false" wmode="opaque" style="width: 640px; height: 400px; position: relative;" bgcolor="#000000" quality="high" src="http://maps.google.co.jp/mapfiles/cb/googlepano.051.swf"/> | |
</body> | |
</html> |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'extlib' | |
require 'net/http' | |
require 'uri' | |
require 'tmpdir' | |
require 'digest/md5' |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'fuc' | |
require 'tinyurl' | |
$tinyurl = Tinyurl.new('http://google.com'); | |
def resolve_tinyurl(url) | |
$tinyurl.url = url | |
($tinyurl.is_tiny?) ? $tinyurl.resolve(url) : url |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::Find; | |
use DateTime; | |
use Data::Dumper; | |
my $dir = $ARGV[0] || '/tmp'; | |
my $dir_name = (split '/', $dir)[-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
require 'rubygems' | |
require 'sinatra' | |
require 'barcodescanner' | |
require 'logger' | |
log = Logger.new(STDOUT) | |
get '/' do | |
'BARCODE SCANNER WEB!' | |
end | |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# 2008-12-03 koyachi | |
# via http://research.swtch.com/2008/03/using-uninitialized-memory-for-fun-and.html | |
class UninitializedFastArray | |
def initialize | |
@dense = [] # queue | |
@sparse = [] # inverted_index ハッシュのキーにして | |
@n = 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
// wedata utility for Greasemonkey | |
// usage | |
/* | |
// ==UserScript== | |
// @name foo bar | |
// @namespace http://baz.com | |
// @require http://gist.github.com/raw/34615/ba15cad2dd736f32a6d7868ce6595ac1bd01c0a3 | |
// ==/UserScript== | |
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
// ==UserScript== | |
// @name Motsu Tabetai | |
// @namespace http://ikenie.com/ | |
// @include * | |
// @require http://gist.github.com/raw/3242/1a7950e033a207efcfc233ae8d9939b676bdbf46 | |
// @require http://gist.github.com/raw/34615/04333b7e307eb029462680e4f4cf961f72f4324c | |
// ==/UserScript== | |
(function() { |
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
alias ti='cd /home/koyachi/.ticgit; ti' |
OlderNewer