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/local/bin/perl | |
while(<DATA>){s/(I|X|A|P|A|R|T|\n| )//g;@sa=split('S',$_);foreach $sa (@sa){print chr($sa)}} | |
__DATA__ | |
SI 7X 4A PARTS1 I1XA7 | |
PA RT S1 IX1APA5RTSIX1AP1A6 | |
RT S3IX 2A PRTS 6IXAPART5SI1XAP1AR0T | |
SI XAPA 11 1R TS IXAPARTSIX11APA6RT | |
SIXA PART S1I0XAPART 4SIX1AP0AR1TSIXA | |
PART SIXA PA RTSI1X14APAR |
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 | |
$_ = 'Drink coffee! Supported by Six Apart'; | |
tr/a-z/Blogging after this event!/; | |
tr/N-ZA-z/A-za-m/; | |
@m = split //, $_; $_ = chr(87) . lc(join(chr(0), @m[3, 2, 29, 15, 3, 2]) . chr(104) . '<3' . $m[15] . '<3' . join('', @m[31, 16, 12])); | |
s/<3/i/g; | |
print; |
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 | |
$_ = 'Drink coffee! Supported by Six Apart'; | |
tr/a-z/Blogging after this event!/; | |
@m = split //, $_; print chr(87) . $m[15] . $m[2] . chr(97) . $m[3] . $m[15] . $m[2] . chr(104) . $m[1] . $m[3] . $m[1] . $m[29] . $m[10] . $m[12]; |
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 | |
$_ = 'Drink coffee! Supported by Six Apart'; | |
tr/a-z/Blogging after this event!/; | |
tr/N-ZA-z/A-za-m/; | |
@m = split //, $_; | |
$j = sub { join(chr(0), @_) }; | |
$_ = chr(104) . $j->(@m[10, 11]) . pack("H*", join('', qw/70 3a 2f 2f/)); | |
$_ .= $m[4] . chr(46) . $m[4] . '<3'; |
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 5.010000; | |
use JSON; | |
use LWP::UserAgent; | |
use URI; |
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
"error": { | |
"errors": [ | |
{ | |
"domain": "global", | |
"reason": "authError", | |
"message": "Invalid Credentials", | |
"locationType": "header", | |
"location": "Authorization" | |
} | |
], |
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
--- closure-library/closure/bin/build/jscompiler.py 2013-03-13 18:21:16.000000000 +0900 | |
+++ closure-library/closure/bin/build/jscompiler.py 2013-03-13 19:22:12.000000000 +0900 | |
@@ -33,7 +33,7 @@ | |
def _GetJavaVersionString(): | |
"""Get the version string from the Java VM.""" | |
- return subprocess.check_output(['java', '-version'], stderr=subprocess.STDOUT) | |
+ return subprocess.Popen(['java', '-version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0] | |
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 XML::LibXML; | |
my $filename = $ARGV[0]; | |
my $parser = XML::LibXML->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/env/perl | |
use strict; | |
use warnings; | |
use feature qw/say/; | |
use FindBin; | |
use Google::API::Client; | |
use OAuth2::Client; |
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
# Create a new event | |
say '=== Create a new event ==='; | |
my $new_event = { | |
'summary' => '宇宙兄弟', | |
'location' => '日本テレビ', | |
'start' => { | |
'dateTime' => '2012-08-12T07:00:00+09:00', | |
}, | |
'end' => { | |
'dateTime' => '2012-08-12T07:30:00+09:00', |
NewerOlder