View miyako-shukuhaku.js
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
javascript: { | |
const info = new Map([ | |
[ 'HNAME', 'ホテルサザンコースト宮古島' ], | |
[ 'HTEL', '0980-75-3335' ], | |
[ 'ARRDATEY', '2019' ], | |
[ 'ARRDATEM', '4' ], | |
[ 'ARRDATED', '12' ], | |
[ 'DPTDATEY', '2019' ], | |
[ 'DPTDATEM', '4' ], | |
[ 'DPTDATED', '16' ] |
View .cdifrc
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
option default --mecab |
View file0.txt
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
$_ = do { local $/; <> }; | |
if (open(CHLD, '|-') == 0) { | |
print <>; | |
exit; | |
} | |
print CHLD $_; |
View file0.txt
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
tir -rGRc10 |
View file0.txt
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
while (/pattern/g) { | |
my($s, $e) = ($-[0], $+[0]); | |
... |
View cdif.el
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
;;; cdif.el --- cdif and ansi-color interface | |
;;; Code: | |
(autoload 'ansi-color-apply-on-region "ansi-color" nil t) | |
(defun cdif-buffer (&optional prefix) | |
"Execute cdif command on current buffer and apply ansi-color." | |
(interactive "P") | |
(if prefix |
View very-simple-battle-monster.pl
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/perl -CSD | |
use strict; | |
use warnings; | |
use utf8; | |
my %モンスター = ( | |
0 => "ゼクロム", | |
1 => "ワンリキー", | |
2 => "ニョロモ", |
View print_wdiff.pl
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
sub print_wdiff { | |
my %arg = @_; | |
my @matched = @{$arg{matched}}; | |
for (my $i = $#matched; $i >= 0; $i--) { | |
my($s, $e) = @{$matched[$i]}; | |
my $t = substr($_, $s, $e - $s); | |
if ($t =~ s/\A (?:\{\+|\[\-) (.*) (?:\+\}|\-\]) \Z/$1/sx) { | |
substr($_, $s, $e - $s) = $t; | |
$matched[$i][0] = $s - $i * 4; |
View App::Greple::diff.pm
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 App::Greple::diff; | |
1; | |
=head1 NAME | |
diff - greple module for diff command output | |
=head1 SYNOPSIS |
View temp var declaration
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
## なんとなく嫌だ | |
my %seen; | |
@opt_icode = grep { not $seen{$_}++ } @opt_icode; | |
## ダサい | |
{ | |
my %seen; | |
@opt_icode = grep { not $seen{$_}++ } @opt_icode; | |
} |
NewerOlder