This file contains hidden or 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
" w3m | |
function! W3mOpen() | |
let l:url = matchstr(getline('.'), 'htt[p|ps]:\/\/[^>,;:]*') | |
execute ':vs' | |
execute ':W3m' l:url | |
endfunction | |
nnoremap <silent> <c-w> :call W3mOpen()<CR> |
This file contains hidden or 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
" w3m | |
function! W3mOpen() | |
let l:url = matchlist(getline('.'), '\(htt[p|ps]:\/\/[^>,;:]*\)\s') | |
execute ':vs' | |
execute ':W3m' l:url[1] | |
endfunction | |
nnoremap <silent> <c-w> :call W3mOpen()<CR> |
This file contains hidden or 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 utf8; | |
use Net::Twitter::Lite::WithAPIv1_1; | |
use Encode; | |
my $nt = Net::Twitter::Lite::WithAPIv1_1->new( | |
consumer_key => '', |
This file contains hidden or 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
sort -k1,1 num2 | yarr num=1 | sed 's/[ab] //g' | sed 's/ / + /g' | bc |
This file contains hidden or 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
for i in a b ; do grep $i hoge | sort -k2n | tail -1; done |
This file contains hidden or 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
expr $(cat nums | tr "\n" " " | sed 's/ $//' | sed 's/ / + /g') |
This file contains hidden or 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
ls [!a-zA-z]* | xargs rm |
This file contains hidden or 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
seq 1 16 | awk '{if($1%15==0){print "FizzBuzz"}else if($1%3==0){print "Fizz"}else if($1%5==0){print "Buzz"}else{print $1}}' | tr '\n' ',' |
This file contains hidden or 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
awk '{print int($1/10)}' ages | sort -n | uniq -c | awk '{print $2*10"〜"$2*10+9,$1}' |
NewerOlder