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
public static class ControlInvokerEx | |
{ | |
public static object InvokeEx(this Control ctl, Delegate act) | |
{ | |
return InvokeEx(ctl,act,null); | |
} | |
public static object InvokeEx(this Control ctl, Delegate act,params object[] args) | |
{ | |
if (!ctl.InvokeRequired) |
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 URIShorten; | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
use JSON::XS qw(decode_json); | |
use URI::Escape; | |
sub new |
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 | |
#cf. http://d.hatena.ne.jp/W53SA/20130109/1357750514 | |
use strict; | |
use LWP::Simple; | |
use XML::Atom::Feed; | |
use URI; | |
use File::Basename; | |
use Digest::HMAC_SHA1; |
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 IRCSay; | |
use strict; | |
use warnings; | |
use IO::Socket; | |
use Encode; | |
sub new | |
{ | |
my $class = shift; |
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
#include <stdio.h> | |
#include <windows.h> | |
#include <WinInet.h> | |
#include "_ininet.h" | |
#define HINTERNET void* | |
EXTERN_C HINTERNET STDAPICALLTYPE d_HttpOpenRequestA( | |
__in HINTERNET hConnect, | |
__in_opt LPCSTR lpszVerb, |
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 | |
use strict; | |
use Device::SerialPort; | |
use IO::Socket; | |
use IO::Pipe; | |
use IO::Select; | |
my $pipe = IO::Pipe->new(); | |
my $pid = fork(); |
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 | |
use strict; | |
use warnings; | |
use AnyEvent::Twitter; | |
use AnyEvent::Twitter::Stream; | |
use Encode; | |
use Date::Parse; |
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 | |
use strict; | |
use warnings; | |
use Encode; | |
use OAuth::Lite::Consumer; | |
use IO::Socket::SSL; | |
use JSON; | |
use Date::Parse; |
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 | |
use strict; | |
use warnings; | |
use Date::Parse; | |
use Net::Twitter::Lite; | |
my $nt = Net::Twitter::Lite->new( | |
consumer_key => 'consumer key', | |
consumer_secret => 'consumer secret', |
NewerOlder