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> | |
<title>helix on the globe on canvas</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<!-- IEな場合、excanvas.js をどっかから取ってきて、同一ディレクトリに配置し、本コメントを外す。 | |
<script type="text/javascript" src="excanvas.js"></script> | |
--> | |
<script type="text/javascript"> | |
function onLoad() { |
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
javascript:void(window.open('http://www.pixiv.net/bookmark_detail.php?'%20+%20location.href.substring(location.href.indexOf('illust_id')),'_blank')) |
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
// ==UserScript== | |
// @name StaccfeedAutoPager | |
// @namespace http://github.com/lolicsystem | |
// @description Auto-pager for Staccfeed in Pixiv | |
// @include http://www.pixiv.net/stacc/* | |
// @author Chiemimaru Kai (lolicsystem) | |
// @version 0.1 | |
// ==/UserScript== | |
(function(){ |
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
// ==UserScript== | |
// @name table_grep | |
// @namespace http://github.com/lolicsystem | |
// @description table grep | |
// @include * | |
// @author lolicsystem | |
// @version 0.1 | |
// ==/UserScript== | |
(function () { |
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/perl | |
use strict; | |
use warnings; | |
use Web::Scraper; | |
use URI; | |
use YAML::Syck qw/Dump/; | |
my $scraper = scraper { | |
process '//tr//tr', 'tr[]' => scraper { | |
process ' ', "html" => '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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use DBI; | |
use feature ":5.10"; | |
my $dbh = DBI->connect("dbi:SQLite:dbname=ankpixiv.sqlite", | |
undef, | |
undef, | |
{ |
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> | |
<title>クロージャを使って、今日昨日明日の日付を表示</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function date_string() { | |
var nt = new Date(); | |
var now = nt.getTime(); |
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
// | |
// 昨日の日付を表す6桁の数値を表示する | |
// | |
var uYear, uMon, uDate; | |
var nt = new Date(); | |
nt.setTime(nt.getTime() - 86400000); | |
uYear = ("00" + (nt.getYear() - 100).toString()).slice(-2); | |
uMon = ("00" + (nt.getMonth() + 1).toString()).slice(-2); |
NewerOlder