Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 1.
["吳志揚","楊秋興","鄭文燦","陳水扁","陳致中","韓國瑜","高嘉瑜"] https://newtalk.tw/news/view/2018-10-04/147896
["吳敦義","宋楚瑜","張忠謀","蔡英文"] https://newtalk.tw/news/view/2018-10-04/148136
["吳清"] http://sports.ltn.com.tw/news/breakingnews/2570964
["吳琪銘","吳秉叡","張宏陸","林淑芬","江永昌","沈發惠","羅致政","蘇貞昌","高志鵬"] https://newtalk.tw/news/view/2018-10-04/148120
["吳祥輝","柯文哲"] https://newtalk.tw/news/view/2018-10-04/147914
["吳祥輝","柯文哲"] https://newtalk.tw/news/view/2018-10-04/148079
["姚文智","柯文哲"] https://newtalk.tw/news/view/2018-10-04/148040
["宋楚瑜","柯文哲"] https://newtalk.tw/news/view/2018-10-04/147883
["張嘉元"] https://newtalk.tw/news/view/2018-10-03/147587
["張天欽"] https://newtalk.tw/news/view/2018-10-04/147701
http://focustaiwan.tw/
http://hellotw.com/
http://msnews.n.yam.com/
http://news.101media.com.tw/
http://news.tvb.com/
http://tc.news.tnn.tw/
http://www.5ch.com.tw/
http://www.bcc.com.tw/
http://www.cna.com.tw/
http://www.ctitv.com.tw/
> time cat dict-revised.json > /dev/null
cat dict-revised.json > /dev/null 0.00s user 0.04s system 41% cpu 0.116 total
> cat dict-revised.json | time json_reformat > /dev/null
json_reformat > /dev/null 0.77s user 0.01s system 99% cpu 0.787 total
> cat dict-revised.json | time json-print > /dev/null
json-print > /dev/null 50.82s user 0.50s system 99% cpu 51.736 total
se strict;
close(STDERR);
close(STDOUT);
open OUT1, ">:utf8", "out1.txt";
open OUT2, ">:utf8", "out2.txt";
system("perl", "-Mutf8", "-c", "-e", 'my $a = 42');
#!/bin/bash
function wait_until_job_vacancy() {
local limit=${1:-4}
while [[ ! "$(jobs -p | wc -l)" -lt $limit ]]
do
sleep 1
done
}
@gugod
gugod / a=123.pl
Created January 19, 2018 15:03
my ($a,$а,$α)= (1,2,3);
use strict;
use utf8;
my ($a,$а,$α)= (1,2,3);
if($a==1 && $а==2 && $α==3) {
print "Hello World\n";
}
@gugod
gugod / a=123.pl
Created January 19, 2018 14:50
($aᅠ==1 && $a== 2 && $aᅠᅠ==3)
use strict;
use utf8;
my ($aᅠ,$a,$aᅠᅠ) = (1,2,3);
if($aᅠ==1 && $a== 2 && $aᅠᅠ==3) {
print "Hello World\n";
}
@gugod
gugod / a=123_with_tie.pl
Created January 19, 2018 13:59
($a == 1 && $a == 2 && $a == 3)
use strict;
package ObjA {
sub TIESCALAR { bless [$_[1]], $_[0] }
sub FETCH { $_[0][0]++; };
};
tie my $a, 'ObjA', 1;
if ($a == 1 && $a == 2 && $a == 3) {