Skip to content

Instantly share code, notes, and snippets.

View lopnor's full-sized avatar

Nobuo Danjou lopnor

View GitHub Profile
#!perl
use strict;
use warnings;
use utf8;
use URI;
use Web::Scraper;
use Text::CSV_XS;
my $detail = scraper {
process '//dl', 'data[]', sub {
google docsとPerlを連携させる
google docs to work together and Perl
谷歌docs的共同努力和Perl
#!perl
use strict;
use warnings;
use Config::Pit;
use Getopt::Long;
use Net::Google::Spreadsheets;
use Net::Google::DocumentsList;
use DateTime;
scalar @ARGV == 2 or die 'usage: wallet.pl [--type in] note amount';
#!perl
use strict;
use warnings;
use Config::Pit;
use Net::Google::DocumentsList;
# en: english
# zh-TW: Taiwanese
my $target = shift || 'en';
package Doumeki::Store::Tumblr;
use Any::Moose;
use Carp;
use WWW::Mechanize;
use Web::Scraper;
use HTTP::Request::Common ();
with 'Doumeki::Store::Base';
has email => (
package Doumeki::Store::Twitpic;
use Any::Moose;
use Carp;
use LWP::UserAgent;
use HTTP::Request::Common;
with qw(Doumeki::Store::Base);
has username => (
#!/usr/bin/perl
use strict;
use warnings;
use Net::Google::Spreadsheets;
print "google username?: ";
my $u = <STDIN>;
chomp $u;
print "google password?: ";
my $p = <STDIN>;
#!/bin/sh
MAIL=$1
PASS=$2
TITLE=$3
FORMAT=$4
if [ -z "$MAIL" -o -z "$PASS" -o -z "$TITLE" ]
then
echo "usage: $0 'your.account@gmail.com' 'your_password' 'filename' ['format']" >&2
#!/bin/sh
MAIL=$1
PASS=$2
TITLE=$3
if [ -z "$MAIL" -o -z "$PASS" -o "$TITLE" ]
then
echo "usage: $0 'your.account@gmail.com' 'your_password' 'filename'"
exit 1
#!perl
use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request::Common;
use XML::Atom::Feed;
my $ua = LWP::UserAgent->new;
my $email = 'fill.me@gmail.com';