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 DateTime::Format::W3CDTF; | |
my $dt_string = $ARGV[0]; | |
my $w3cdtf = DateTime::Format::W3CDTF->new; | |
my $dt = $w3cdtf->parse_datetime($dt_string); | |
print $dt->epoch, "\n"; | |
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
require 'socket' | |
class Util | |
def self.empty_port | |
s = TCPServer.open(0) | |
port = s.addr[1] | |
s.close | |
port | |
end | |
end |
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 Getopt::Std; | |
my $opts = { | |
s => 'Standalone', | |
h => '0.0.0.0', | |
p => 5000, |
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 | |
exec -- openssl dgst -sha1 $1 |
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 | |
# NOTE: currently, convert "trk" only. this does not consider "wpt" and "rte" yet. | |
require 'json' | |
require 'rexml/document' | |
require 'time' | |
json_file = ARGV[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 feature ':5.10'; | |
use Encode::Argv; | |
use File::Basename 'dirname'; | |
use File::Spec; |
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 | |
This program checks whether an image is able to be embedded by AtomicParsley. | |
=cut | |
use strict; | |
use warnings; |
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 | |
A sample of streaming. | |
This sends dynamic contents on "Transfer-Encoding: chunked". | |
See also the source: t/mojolicious/longpolling_lite_app.t | |
=cut |
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 5.12.0; | |
use warnings; | |
use Geo::Gpx; | |
use Getopt::Std; | |
use Mac::PropertyList; | |
#-- setting | |
my $options = {}; |
OlderNewer