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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import com.google.appengine.repackaged.com.google.common.base.StringUtil; |
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
" vim:set ts=8 sts=2 sw=2 tw=0: (この行に関しては:help modelineを参照) | |
" | |
" An example for a Japanese version vimrc file. | |
" 日本語版のデフォルト設定ファイル(vimrc) - Vim7用試作 | |
" | |
" Last Change: 24-Jul-2007. | |
" Maintainer: MURAOKA Taro <[email protected]> | |
" | |
" 解説: | |
" このファイルにはVimの起動時に必ず設定される、編集時の挙動に関する設定が書 |
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/perl | |
use strict; | |
use warnings; | |
my ($first, @cmd); | |
while ( <> ) { | |
if ( /^([a-zA-Z0-9\-]+)/ ) { | |
$first = $1; | |
} elsif ( /^\s*(:[a-zA-Z0-9\-]+)/ ) { |
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 Cwd; | |
use Data::Section::Simple qw/get_data_section/; | |
if($#ARGV < 0){ |
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
var SITEINFO = [ | |
{ | |
url: 'http://www.pixiv.net/member_illust.php\\?mode=medium&illust_id=', | |
nextLink: '//div[@class="centeredNavi"]/ul/li/a[contains(text(),"≫")]', | |
pageElement: '//div[@class="two_column_body"]', | |
}, | |
] |
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 lib $ENV{'CASSANDRA_HOME'}.'/interface/gen-perl/'; | |
use Cassandra::Cassandra; | |
use Cassandra::Constants; | |
use Cassandra::Types; |
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 lib $ENV{'CASSANDRA_HOME'}.'/interface/gen-perl/'; | |
use Cassandra::Cassandra; | |
use Cassandra::Constants; | |
use Cassandra::Types; |
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
grep use lib/ -h -r | perl -e '%hash; while(<>){if(/use (\w+(::)?)+/){if($& =~ /use (.+)/){$hash{$1}++}}}; foreach(keys %hash){print $_."\n"}' | egrep -v 'strict|warnings|base' | xargs |
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
#!/bin/sh | |
color() { | |
printf '\033[%sm%s\033[m\n' "$@" | |
} | |
while true | |
do | |
DATE=`date | sed -e 's/\r\n/\n/g' | sed -e 's/\n//g'` | |
SBM=`echo "show slave status\G" | mysql -u root | grep Seconds | sed -e 's/ Seconds_Behind_Master: //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
" lhs comments | |
vmap ,# :s/^/#/<CR>:nohlsearch<CR> | |
vmap ,/ :s/^/\/\//<CR>:nohlsearch<CR> | |
vmap ,> :s/^/> /<CR>:nohlsearch<CR> | |
vmap ," :s/^/\"/<CR>:nohlsearch<CR> | |
vmap ,% :s/^/%/<CR>:nohlsearch<CR> | |
vmap ,! :s/^/!/<CR>:nohlsearch<CR> | |
vmap ,; :s/^/;/<CR>:nohlsearch<CR> | |
vmap ,- :s/^/--/<CR>:nohlsearch<CR> | |
vmap ,c :s/^\/\/\\|^--\\|^> \\|^[#"%!;]//<CR>:nohlsearch<CR> |
OlderNewer