Skip to content

Instantly share code, notes, and snippets.

View hokaccha's full-sized avatar

Kazuhito Hokamura hokaccha

View GitHub Profile
#!/usr/bin/env perl
use strict;
use warnings;
use AnyEvent::Twitter::Stream;
use AnyEvent::HTTP;
use HTTP::Request::Common;
my $done = AnyEvent->condvar;
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Net::Twitter;
use DateTime;
use DateTime::Format::HTTP;
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>
package Test::Models;
use strict;
use warnings;
use Ark::Models -base;
register foo => sub {
my $self = shift;
$self->get('conf');
};
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",
<!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">
" コピペ
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@
#!/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 = '.';
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use Getopt::Long;
use Pod::Usage;
use AnyEvent::Socket;
#!/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';