Skip to content

Instantly share code, notes, and snippets.

@onishi
onishi / wget.pl
Created November 14, 2012 09:30
HTMLまるごと保存
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use DateTime;
use Digest::SHA1 qw(sha1_hex);
use Encode;
use File::Path qw/make_path/;
use HTML::Parser;
@onishi
onishi / domain.psgi
Last active August 29, 2015 14:02
QUERY_STRINGにドメイン入れるとical形式でリマインダのカレンダー吐いてくれるの
use strict;
use warnings;
use Net::Domain::ExpireDate 'expire_date';
use Time::Seconds;
use Data::ICal;
use Data::ICal::Entry::Todo;
use Data::ICal::Entry::Event;
@onishi
onishi / private.xml
Created October 9, 2014 03:05
Karabiner configuration for Slack
<?xml version="1.0"?>
<root>
<appdef>
<appname>SLACK</appname>
<equal>com.tinyspeck.slackmacgap</equal>
</appdef>
<item>
<name>For Slack CTRL+TAB=move unread channel</name>
<identifier>private.app_slack_move_channel_with_ctrl_tab</identifier>
<only>SLACK</only>
@onishi
onishi / cube_shuffle
Created August 19, 2021 00:45
ルービックキューブをシャッフルしたい
#!/usr/bin/env perl
use strict;
use warnings;
my $count = shift || 20;
my @random = qw/R R F F U U L D M/;
my $rate_2 = 0.3;
my $rate_prime = 0.3;
my @result;
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
binmode STDOUT, ':utf8';
binmode STDERR, ":utf8";
use Encode;
use LWP::Simple 'get';