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
<html> | |
<body> | |
<p>aaaa</p> | |
</body> | |
</html> |
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
{ | |
"name": "hoge", | |
"version": "0.1", | |
"description": "ブコメページへ", | |
"icons": { | |
"128": "hoge.png" | |
}, | |
"background_page": "background.html", | |
"browser_action": { | |
"default_title": "hoge", |
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"> | |
<head> | |
<meta charset="utf-8"> | |
<script> | |
chrome.browserAction.onClicked.addListener(function(tab) { | |
chrome.windows.get(tab.windowId, function(window) { | |
if (window.focused) { | |
var jump_url = "http://b.hatena.ne.jp/entry/"+tab.url; | |
chrome.tabs.update(tab.id, {url: jump_url, selected: tab.selected}, null); |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
</head> | |
<body> | |
<p><a href="http://www.yahoo.co.jp/">yahoo</a></p> | |
<p><a href="http://www.google.co.jp/">google</a></p> |
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
use Encode; | |
$hoge = "あかさたな"; | |
print "まっち" if($hoge =~ /\w/); # 出力されない | |
$hoge = decode('utf8', "あかさたな"); | |
print "マッチ" if($hoge =~ /\w/); # 'マッチ' | |
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
$('img').css({ | |
clip : 'rect(0px 640px 240px 0px)', | |
position: 'absolute' | |
}) |
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
use Regexp::Assemble; | |
use Encode; | |
my $builder = Regexp::Assemble->new; | |
while(my $line = <DATA>){ | |
$line = decode('utf8', $line); | |
$line =~ s/\r\n//g; | |
$builder->add(quotemeta $line); | |
} |
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 File::Monitor::Lite; | |
use HTTP::Request::Common; | |
use IO::File; | |
use LWP::UserAgent; | |
my $upload_path = '/foo/bar'; # ここを直す |
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
# eg/lib/MyApp/Root.pm を少し改造 | |
package MyApp::Root; | |
use strict; | |
use warnings; | |
use Encode; | |
use Nephia; | |
path '/' => sub { |
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
# http://d.hatena.ne.jp/haru-s/20110405/1302006637 に答えがそのままあるが、一応メモ | |
# github fork 追従 で見つけた | |
$ git remote | |
origin | |
# 本家のリモートリポジトリの短縮名を登録する. | |
$ git remote add github git://github.com/liquidz/misaki.git | |
# 本家の更新をローカルで反映させる. |
OlderNewer