Skip to content

Instantly share code, notes, and snippets.

View kzys's full-sized avatar

Kazuyoshi Kato kzys

View GitHub Profile

Webの地上化 - keita watanabe

Firefox Developer Conference

http://mozilla.jp/events/2010/fxdevcon/

Webの地上化

Cloud <-> 地上

結婚パーティの食事中の写真、1名ネットブックを開いている

a[href^="http://mixi.jp/share.pl"] {
/* display: none !important; */
}
iframe[src^="http://share.gree.jp/share"] {
display: none !important;
}
@kzys
kzys / escfilter
Created September 9, 2010 10:35 — forked from kyanny/escfilter
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long qw(HelpMessage VersionMessage);
use Term::ANSIColor qw(colored);
our $VERSION = '0.01';
$VERSION = eval $VERSION;
my %color_map = (
ryocotan http://d.hatena.ne.jp/ryocotan/
youpy http://github.com/youpy
swdyh http://d.hatena.ne.jp/swdyh/
omo http://steps.dodgson.org/
ucnv http://github.com/ucnv
koyachi http://d.hatena.ne.jp/koyachi/
kzys http://blog.8-p.info/
diff -r 6bcf92a80b12 Bookmark.js
--- a/Bookmark.js Sat Mar 21 12:41:15 2009 +0900
+++ b/Bookmark.js Sat Mar 21 12:44:30 2009 +0900
@@ -5726,8 +5726,8 @@
return;
}
- //Hatena.Star.Button._getImgSrc = Hatena.Star.Button.getImgSrc;
- //Hatena.Star.Button.getImgSrc = function(c) { return c.ImgSrc };
+ Hatena.Star.Button._getImgSrc = Hatena.Star.Button.getImgSrc;
use strict;
use warnings;
use Class::Sniff;
sub package_of {
my ($path) = @_;
if ($path !~ m|/?lib/(.*)\.pm$|) {
die;
}
http://youtube.com/watch?v=Bkp9bDGDd1w
http://youtube.com/watch?v=K2cYWfq--Nw
http://youtube.com/watch?v=bl6RJyZdBSU
http://youtube.com/watch?v=Sr2JneittqQ
@kzys
kzys / gist:10849
Created September 15, 2008 13:16
Filter::FlickrContactPhotos
Index: t/plugins/Filter-FlickrContactPhotos/base.t
===================================================================
--- t/plugins/Filter-FlickrContactPhotos/base.t (revision 0)
+++ t/plugins/Filter-FlickrContactPhotos/base.t (revision 0)
@@ -0,0 +1,28 @@
+use strict;
+use t::TestPlagger;
+
+test_requires_network;
+test_plugin_deps;
@kzys
kzys / gist:10830
Created September 15, 2008 10:30
Because Flickr::API returns gzipped response.
Index: lib/Plagger/Plugin/CustomFeed/FlickrSearch.pm
===================================================================
--- lib/Plagger/Plugin/CustomFeed/FlickrSearch.pm (revision 2044)
+++ lib/Plagger/Plugin/CustomFeed/FlickrSearch.pm (working copy)
@@ -51,7 +51,7 @@
$context->error("$method failed: $search->{error_text}")
unless $search->{success};
- my $search_doc = $parser->parse_string($search->{_content});
+ my $search_doc = $parser->parse_string($search->decoded_content);
@kzys
kzys / gist:10825
Created September 15, 2008 08:59
Added "no critic" comment to pass t/99-perlcritic.
Index: lib/Plagger/Plugin/Filter/FetchEnclosure/Xango.pm
===================================================================
--- lib/Plagger/Plugin/Filter/FetchEnclosure/Xango.pm (revision 2044)
+++ lib/Plagger/Plugin/Filter/FetchEnclosure/Xango.pm (working copy)
@@ -6,7 +6,9 @@
package Plagger::Plugin::Filter::FetchEnclosure::Xango;
use strict;
use base qw(Plagger::Plugin::Filter::FetchEnclosure);
-BEGIN { sub Xango::DEBUG{ 1 } }
+BEGIN {