Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
## See also: http://qiita.com/mechamogera/items/bf2ed20e332dc31d2352 | |
require 'google/api_client' | |
require 'json' | |
require 'date' | |
require 'optparse' |
This file contains 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 | |
=pod | |
=head1 NAME | |
cps_loop.pl - examples to loop CPS functions | |
=head1 SYNOPSIS |
This file contains 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
=pod | |
=head1 NAME | |
Load Twitter user_timeline repeatedly using AnyEvent, Async::Defer and Promises | |
=head1 SYNOPSIS | |
This script demonstrates how we can use Async::Defer or Promises | |
module to send requests to twitter.com repeatedly in an asynchronous |
This file contains 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 | |
=pod | |
=head1 NAME | |
Comparing Promises, Future and Async::Defer in four (+1) scenarios | |
=head1 SYNOPSIS |
This file contains 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
#!/bin/sh | |
E2E=/usr/bin/eps2eps | |
EGREP=/bin/egrep | |
SED=/bin/sed | |
infile="$1" | |
bb=`$E2E -sOutputFile=- "$infile" dummy | $EGREP '%%BoundingBox: *-?[0-9]+ +-?[0-9]+ +-?[0-9]+ +-?[0-9]+$'` | |
$SED -e "s/^%%BoundingBox:.*\$/$bb/" "$infile" | $SED -e "s/^%%PageBoundingBox:.*$//" |