Skip to content

Instantly share code, notes, and snippets.

use strict;
use warnings;
use utf8;
use AnyEvent;
use Coro;
use Coro::AnyEvent;
use AnyEvent::WebService::Lingr;
use AnyEvent::WebService::ImKayac;
use Encode qw/encode_utf8/;
Running Makefile.PL
syntax error at Makefile.PL line 49, near ")"
(Might be a runaway multi-line () string starting on line 43)
Bareword "tests_recursive" not allowed while "strict subs" in use at Makefile.PL line 39.
Execution of Makefile.PL aborted due to compilation errors.
use strict;
use warnings;
use DBI;
use Time::Piece;
my $dbh = DBI->connect("DBI:mysql:database=test;host=localhost;", "root", "") or die $DBI::errstr;
my @words = qw/hgoe fuga yap unk piyo gep/;
my $base_time = Time::Piece->strptime("2010-01-01 00:00:00", "%Y-%m-%d %T");
use strict;
use warnings;
use Net::Twitter;
use AnyEvent;
use AnyEvent::WebService::ImKayac;
use Config::Pit;
use Path::Class qw/file/;
use FindBin;
use Array::Diff;
package Hoge::Server::Template;
use strict;
use warnings;
use utf8;
use Router::Simple;
use Text::Xslate;
use Text::Xslate::Bridge::TT2Like;
use Hoge;
async {
# The evil thread
$Coro::main->ready;
};
my $done = Coro::Signal->new;
async {
print "Please wait.\n";
cede;
@soh335
soh335 / run
Created September 6, 2011 09:02 — forked from sugyan/run
twitter streaming notification using notifo.com #notwife
#!/bin/sh
exec setuidgid sugyan multilog t n1 s1048576 .
use strict;
use warnings;
use AnyEvent;
use AnyEvent::Twitter::Stream;
use AnyEvent::Twitter;
use Config::Pit;
use List::Util qw/first/;
my $conf = pit_get("quick-favorite");
use strict;
use warnings;
use Benchmark qw/:all/;
use Cache::Memcached::Fast;
use Geo::Hash::XS;
use Geo::Hash;
my $memd = Cache::Memcached::Fast->new({
servers => ["localhost:11211"]
use strict;
use warnings;
use Benchmark qw/:all/;
use Cache::Memcached::Fast;
use Geo::Hash::XS;
use Geo::Hash;
my $memd = Cache::Memcached::Fast->new({
servers => ["localhost:11211"]