Skip to content

Instantly share code, notes, and snippets.

💮
Doing Good

Kazuyoshi Kato kzys

💮
Doing Good
Block or report user

Report or block kzys

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 2010-11-20-fxdevcon_web_no_chijyouka.org

Webの地上化 - keita watanabe

Firefox Developer Conference

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

Webの地上化

Cloud <-> 地上

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

View hide_share.user.css
a[href^="http://mixi.jp/share.pl"] {
/* display: none !important; */
}
iframe[src^="http://share.gree.jp/share"] {
display: none !important;
}
View 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 = (
View whoswho.txt
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/
View gist:82716
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;
View gist:61684
use strict;
use warnings;
use Class::Sniff;
sub package_of {
my ($path) = @_;
if ($path !~ m|/?lib/(.*)\.pm$|) {
die;
}
View daftpunk.txt
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 Sep 15, 2008
Filter::FlickrContactPhotos
View gist:10849
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 Sep 15, 2008
Because Flickr::API returns gzipped response.
View gist:10830
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 Sep 15, 2008
Added "no critic" comment to pass t/99-perlcritic.
View gist:10825
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 {
You can’t perform that action at this time.