Submit Search
Upload
Twib in Yokoahma.pm 2010/3/5
•
1 like
•
1,672 views
Yusuke Wada
Follow
Report
Share
Report
Share
1 of 17
Download Now
Download to read offline
Recommended
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
Yusuke Wada
Blog Hacks 2011
Blog Hacks 2011
Yusuke Wada
YAPC::Asia 2010 Twitter解析サービス
YAPC::Asia 2010 Twitter解析サービス
Yusuke Wada
Mojolicious
Mojolicious
Marcos Rebelo
RESTful web services
RESTful web services
Tudor Constantin
Perl5i
Perl5i
Marcos Rebelo
Mojolicious
Mojolicious
Lenz Gschwendtner
Mojo as a_client
Mojo as a_client
Marcus Ramberg
More Related Content
What's hot
Webrtc mojo
Webrtc mojo
bpmedley
Perl web frameworks
Perl web frameworks
diego_k
Inside Bokete: Web Application with Mojolicious and others
Inside Bokete: Web Application with Mojolicious and others
Yusuke Wada
PerlでWeb API入門
PerlでWeb API入門
Yusuke Wada
20 modules i haven't yet talked about
20 modules i haven't yet talked about
Tatsuhiko Miyagawa
Developing apps using Perl
Developing apps using Perl
Anatoly Sharifulin
Web Apps in Perl - HTTP 101
Web Apps in Perl - HTTP 101
hendrikvb
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Dotan Dimet
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
Cosimo Streppone
16.mysql stored procedures in laravel
16.mysql stored procedures in laravel
Razvan Raducanu, PhD
Getting out of Callback Hell in PHP
Getting out of Callback Hell in PHP
Arul Kumaran
Asynchronous programming patterns in Perl
Asynchronous programming patterns in Perl
deepfountainconsulting
Decoupling Objects With Standard Interfaces
Decoupling Objects With Standard Interfaces
Thomas Weinert
Undercover Pods / WP Functions
Undercover Pods / WP Functions
podsframework
Sadi service
Sadi service
Mark Wilkinson
Example code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web Service
Mark Wilkinson
Introduction to the Pods JSON API
Introduction to the Pods JSON API
podsframework
Laravel the right way
Laravel the right way
Matheus Marabesi
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
Matheus Marabesi
4. Php MongoDB view_data
4. Php MongoDB view_data
Razvan Raducanu, PhD
What's hot
(20)
Webrtc mojo
Webrtc mojo
Perl web frameworks
Perl web frameworks
Inside Bokete: Web Application with Mojolicious and others
Inside Bokete: Web Application with Mojolicious and others
PerlでWeb API入門
PerlでWeb API入門
20 modules i haven't yet talked about
20 modules i haven't yet talked about
Developing apps using Perl
Developing apps using Perl
Web Apps in Perl - HTTP 101
Web Apps in Perl - HTTP 101
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
16.mysql stored procedures in laravel
16.mysql stored procedures in laravel
Getting out of Callback Hell in PHP
Getting out of Callback Hell in PHP
Asynchronous programming patterns in Perl
Asynchronous programming patterns in Perl
Decoupling Objects With Standard Interfaces
Decoupling Objects With Standard Interfaces
Undercover Pods / WP Functions
Undercover Pods / WP Functions
Sadi service
Sadi service
Example code for the SADI BMI Calculator Web Service
Example code for the SADI BMI Calculator Web Service
Introduction to the Pods JSON API
Introduction to the Pods JSON API
Laravel the right way
Laravel the right way
TDC2015 Porto Alegre - Automate everything with Phing !
TDC2015 Porto Alegre - Automate everything with Phing !
4. Php MongoDB view_data
4. Php MongoDB view_data
Similar to Twib in Yokoahma.pm 2010/3/5
Perl Web Client
Perl Web Client
Flavio Poletti
Intro To Moose
Intro To Moose
cPanel
Any event intro
Any event intro
qiang
Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)
xSawyer
Mojolicious. Веб в коробке!
Mojolicious. Веб в коробке!
Anatoly Sharifulin
Perl调用微博API实现自动查询应答
Perl调用微博API实现自动查询应答
琛琳 饶
Forget about index.php and build you applications around HTTP!
Forget about index.php and build you applications around HTTP!
Kacper Gunia
Forget about Index.php and build you applications around HTTP - PHPers Cracow
Forget about Index.php and build you applications around HTTP - PHPers Cracow
Kacper Gunia
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
WordCamp Kyiv
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たち
Ryo Miyake
并发模型介绍
并发模型介绍
qiang
What happens in laravel 4 bootstraping
What happens in laravel 4 bootstraping
Jace Ju
Becoming a better WordPress Developer
Becoming a better WordPress Developer
Joey Kudish
Web::Machine - Simpl{e,y} HTTP
Web::Machine - Simpl{e,y} HTTP
Michael Francis
Selenium RC Presentation 20110104
Selenium RC Presentation 20110104
Michael Salvucci
Selenium rc presentation_20110104
Selenium rc presentation_20110104
Michael Salvucci
Snakes on a Treadmill
Snakes on a Treadmill
Chef Software, Inc.
Dirty Secrets of the PHP SOAP Extension
Dirty Secrets of the PHP SOAP Extension
Adam Trachtenberg
以 Laravel 經驗開發 Hyperf 應用
以 Laravel 經驗開發 Hyperf 應用
Shengyou Fan
The promise of asynchronous php
The promise of asynchronous php
Wim Godden
Similar to Twib in Yokoahma.pm 2010/3/5
(20)
Perl Web Client
Perl Web Client
Intro To Moose
Intro To Moose
Any event intro
Any event intro
Asynchronous Programming FTW! 2 (with AnyEvent)
Asynchronous Programming FTW! 2 (with AnyEvent)
Mojolicious. Веб в коробке!
Mojolicious. Веб в коробке!
Perl调用微博API实现自动查询应答
Perl调用微博API实现自动查询应答
Forget about index.php and build you applications around HTTP!
Forget about index.php and build you applications around HTTP!
Forget about Index.php and build you applications around HTTP - PHPers Cracow
Forget about Index.php and build you applications around HTTP - PHPers Cracow
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たち
并发模型介绍
并发模型介绍
What happens in laravel 4 bootstraping
What happens in laravel 4 bootstraping
Becoming a better WordPress Developer
Becoming a better WordPress Developer
Web::Machine - Simpl{e,y} HTTP
Web::Machine - Simpl{e,y} HTTP
Selenium RC Presentation 20110104
Selenium RC Presentation 20110104
Selenium rc presentation_20110104
Selenium rc presentation_20110104
Snakes on a Treadmill
Snakes on a Treadmill
Dirty Secrets of the PHP SOAP Extension
Dirty Secrets of the PHP SOAP Extension
以 Laravel 經驗開發 Hyperf 應用
以 Laravel 經驗開發 Hyperf 應用
The promise of asynchronous php
The promise of asynchronous php
More from Yusuke Wada
僕がつくった 70個のうちの48個のWebサービス達
僕がつくった 70個のうちの48個のWebサービス達
Yusuke Wada
スッとGoを取り入れる
スッとGoを取り入れる
Yusuke Wada
東京脱出計画中
東京脱出計画中
Yusuke Wada
Extreme remote working
Extreme remote working
Yusuke Wada
Podcastを支える技術、エンジニアのためのWebメディア、そしてCPAN
Podcastを支える技術、エンジニアのためのWebメディア、そしてCPAN
Yusuke Wada
創造のプロセスを回せ!v0.01
創造のプロセスを回せ!v0.01
Yusuke Wada
It's not only about "REMOTE"
It's not only about "REMOTE"
Yusuke Wada
事故からはじまるスケールチャンス
事故からはじまるスケールチャンス
Yusuke Wada
Google BigQueryを使ってみた!
Google BigQueryを使ってみた!
Yusuke Wada
Webサービスのコンテンツパターン 或いはデータの活⽤
Webサービスのコンテンツパターン 或いはデータの活⽤
Yusuke Wada
とある Perl Monger の働き方
とある Perl Monger の働き方
Yusuke Wada
5 minutes - YAPC::Asia Tokyo 2014
5 minutes - YAPC::Asia Tokyo 2014
Yusuke Wada
Podcastをカジュアルに 支える技術
Podcastをカジュアルに 支える技術
Yusuke Wada
The master plan ofscaling a web application
The master plan ofscaling a web application
Yusuke Wada
そのWebサービスは本当に「あたりまえ」だったのか?
そのWebサービスは本当に「あたりまえ」だったのか?
Yusuke Wada
Mojoliciousでつくる! Webアプリ入門
Mojoliciousでつくる! Webアプリ入門
Yusuke Wada
10 things to learn from Bokete
10 things to learn from Bokete
Yusuke Wada
僕らの履歴書
僕らの履歴書
Yusuke Wada
僕らがWebサービスをつくる5つの理由
僕らがWebサービスをつくる5つの理由
Yusuke Wada
僕らがつくるための 「5W」について
僕らがつくるための 「5W」について
Yusuke Wada
More from Yusuke Wada
(20)
僕がつくった 70個のうちの48個のWebサービス達
僕がつくった 70個のうちの48個のWebサービス達
スッとGoを取り入れる
スッとGoを取り入れる
東京脱出計画中
東京脱出計画中
Extreme remote working
Extreme remote working
Podcastを支える技術、エンジニアのためのWebメディア、そしてCPAN
Podcastを支える技術、エンジニアのためのWebメディア、そしてCPAN
創造のプロセスを回せ!v0.01
創造のプロセスを回せ!v0.01
It's not only about "REMOTE"
It's not only about "REMOTE"
事故からはじまるスケールチャンス
事故からはじまるスケールチャンス
Google BigQueryを使ってみた!
Google BigQueryを使ってみた!
Webサービスのコンテンツパターン 或いはデータの活⽤
Webサービスのコンテンツパターン 或いはデータの活⽤
とある Perl Monger の働き方
とある Perl Monger の働き方
5 minutes - YAPC::Asia Tokyo 2014
5 minutes - YAPC::Asia Tokyo 2014
Podcastをカジュアルに 支える技術
Podcastをカジュアルに 支える技術
The master plan ofscaling a web application
The master plan ofscaling a web application
そのWebサービスは本当に「あたりまえ」だったのか?
そのWebサービスは本当に「あたりまえ」だったのか?
Mojoliciousでつくる! Webアプリ入門
Mojoliciousでつくる! Webアプリ入門
10 things to learn from Bokete
10 things to learn from Bokete
僕らの履歴書
僕らの履歴書
僕らがWebサービスをつくる5つの理由
僕らがWebサービスをつくる5つの理由
僕らがつくるための 「5W」について
僕らがつくるための 「5W」について
Twib in Yokoahma.pm 2010/3/5
4.
• • •
5.
•
6.
sub run { my $self = shift; my $cv = AnyEvent‐>condvar; my $feed_reader = AnyEvent::Feed‐>new( url => $self‐>url, interval => $self‐>interval, on_fetch => sub { my ( $feed_reader, $entries, $feed, $error ) = @_; if ( defined $error ) { warn "ERROR: $errorn"; $cv‐>send; return; } for (@$entries) { my $entry = Twib::CLI::Feed::Entry‐>new( $_‐>[1] ); if( my $post = $self‐>create_post( $entry ) ){ } } } ); $cv‐>recv; }
7.
•
– – – •
9.
• •
– •
11.
use Noe; #Plack based WAF use DBIx::Skinny; use Imager; use WWW::Favicon; use LWP::UserAgent; use Cache::Memcached::Fast;
12.
• • package MyApp::Controller::Root; sub root { my ( $self, $c ) = @_; $c‐>render('index', { message => $c‐>config‐>{message} } ); } sub hi { my ( $self, $c ) = @_; my $name = $c‐>req‐>param('name') || 'nanashi'; $c‐>render('hi', { name => $name } ); } sub redirect { my ($self, $c ) = @_; $c‐>redirect( $c‐>base ); } 1;
13.
• • • • •
14.
my $rs = $self‐>schema‐>resultset('Link')‐>search( $args, { order_by => 'tweet_count DESC', page => $page, rows => $rows, prefetch => $prefech, } ); if (wantarray) { my $next_page = $self‐>schema‐>resultset('Link') ‐>search( {}, { columns => [qw/me.id/], page => $page + 1,
rows => $rows } )‐>next ? $page + 1 : 0; return ( $rs, $next_page ); } else { return $rs; }
15.
• • •
17.
• • •
Download Now