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/env perl | |
use strict; | |
use warnings; | |
use AnyEvent::Twitter::Stream; | |
use AnyEvent::HTTP; | |
use HTTP::Request::Common; | |
my $done = AnyEvent->condvar; |
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/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Net::Twitter; | |
use DateTime; | |
use DateTime::Format::HTTP; |
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
diff -cr KeyRemap4MacBook-5.1.0/files/prefpane/checkbox.xml KeyRemap4MacBook-5.1.0.new/files/prefpane/checkbox.xml | |
*** KeyRemap4MacBook-5.1.0/files/prefpane/checkbox.xml 2010-01-25 23:05:49.000000000 +0900 | |
--- KeyRemap4MacBook-5.1.0.new/files/prefpane/checkbox.xml 2010-01-25 22:59:20.000000000 +0900 | |
*************** | |
*** 1018,1023 **** | |
--- 1018,1027 ---- | |
<name>Remap Command_L to Option_L</name> | |
<sysctl>remap.app_term_commandL2optionL</sysctl> | |
</item> | |
+ <item> |
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 Test::Models; | |
use strict; | |
use warnings; | |
use Ark::Models -base; | |
register foo => sub { | |
my $self = shift; | |
$self->get('conf'); | |
}; |
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
Function.prototype.bind = function(self) { | |
var f = this; | |
return function() { | |
return f.apply(self, Array.prototype.slice.call(arguments)); | |
}; | |
}; | |
// e.g | |
var obj = { | |
name: "hokamura", |
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
<!DOCTYPE html> | |
<html lang="ja" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<div class="blink">hoge</div> | |
<script type="text/javascript" src="js/jquery.js"></script> | |
<script type="text/javascript" src="js/jquery-blink.js"></script> | |
<script type="text/javascript"> |
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
" コピペ | |
nnoremap y "xy | |
vnoremap y "xy | |
nnoremap d "xd | |
vnoremap d "xd | |
nnoremap c "xc | |
vnoremap c "xc | |
vnoremap p "xp | |
nnoremap <C-p> :<C-u>set opfunc=OverridePaste<CR>g@ | |
nnoremap <C-p><C-p> :<C-u>set opfunc=OverridePaste<CR>g@g@ |
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/env perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
use Pod::Usage; | |
use File::Which qw/which/; | |
use File::Temp; | |
use Path::Class qw/dir/; | |
my $root = '.'; |
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/env perl | |
use strict; | |
use warnings; | |
use FindBin; | |
use Getopt::Long; | |
use Pod::Usage; | |
use AnyEvent::Socket; |
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/env perl | |
### sugyanのtweetを自動でfavるscript | |
use strict; | |
use warnings; | |
use AnyEvent::HTTP 'http_request'; | |
use Config::Pit 'pit_get'; | |
use Encode 'encode_utf8'; |