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
package Email::MIME::CreateHTML::Resolver::CustomUA; | |
use base qw(Email::MIME::CreateHTML::Resolver); | |
use Clone; | |
sub _select_resolver { | |
my ($self, $uri) = @_; | |
my $resolver = $self->SUPER::_select_resolver($uri); | |
return $resolver unless ($self->{ua}); |
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
############################################################################### | |
# Purpose : Build HTML emails | |
# Author : Tony Hennessy | |
# Created : Aug 2006 | |
# CVS : $Header: /home/cvs/software/cvsroot/email/lib/Email/MIME/CreateHTML.pm,v 1.26 2006/08/24 21:41:37 johna Exp $ | |
############################################################################### | |
package Email::MIME::CreateHTML; | |
use strict; |
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
package WebScraper::Wassr::Timeline; | |
use warnings; | |
use strict; | |
use base qw(Class::Accessor::Fast); | |
use Carp; | |
use HTML::ResolveLink; | |
use URI::Escape; | |
use WWW::Mechanize; |
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
use Net::Twitter; | |
use Encode; | |
use File::Slurp; | |
use YAML; | |
use utf8; | |
my $username = 'yourname'; | |
my $password = 'yourpassword'; | |
my $max_id = undef; |
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
use utf8; | |
use strict; | |
use warnings; | |
use Encode; | |
use Growl::GNTP; | |
use HTTP::Request::Common; | |
use URI; | |
use WWW::Mechanize; | |
use YAML; |
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
use utf8; | |
use strict; | |
use warnings; | |
print &generate_password(@ARGV); | |
sub generate_password { | |
my $length = shift || 8; | |
my $seeds = shift || [['a'..'z'],['A'..'Z'],[0..9],[qw(! $ % & @ ? * + -),'#']]; |
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
package WWW::OpenPNE3::API::Client; | |
use utf8; | |
use strict; | |
use warnings; | |
use Carp; | |
use base 'WWW::Mechanize'; | |
use Encode; | |
use JSON -support_by_pp; |
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
対象ウィンドウタイトル = STATUS(0, ST_TITLE) | |
対象ウィンドウID = ウィンドウID取得(対象ウィンドウタイトル) | |
// 状態表示 | |
print 対象ウィンドウタイトル //タイトル表示 | |
print "X=" + STATUS(対象ウィンドウID, ST_X) + ",Y=" + STATUS(対象ウィンドウID, ST_Y) | |
print "幅=" + STATUS(対象ウィンドウID, ST_WIDTH) + ",高=" + STATUS(対象ウィンドウID, ST_HEIGHT) | |
print "IsICON=" + STATUS(対象ウィンドウID, ST_ICON) | |
print "IsVISIBLE=" + STATUS(対象ウィンドウID, ST_VISIBLE) | |
print "IsACTIVE=" + STATUS(対象ウィンドウID, ST_ACTIVE) |
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
set IFNAME="ローカル エリア接続" | |
set IFIP="10.0.1.2" | |
set IFMASK="255.255.255.0" | |
set IFGW="none" | |
set ROUTEDEST="10.0.2.0" | |
set ROUTEMASK="255.255.255.0" | |
set ROUTEGW="10.0.1.254" | |
netsh interface ip set address name=%IFNAME% source=static addr=%IFIP% mask=%IFMASK% %IFGW% |
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
package MySAXHandler; | |
use base qw(XML::SAX::Base); | |
# --- SYNOPSYS --- | |
# use XML::SAX; | |
# use MySAXHandler; | |
# my $parser = XML::SAX::ParserFactory->parser(Handler => MySAXHandler->new); | |
# $parser->parse_uri("sample.xml"); | |
sub start_document { |
OlderNewer