Skip to content

Instantly share code, notes, and snippets.

View lolicsystem's full-sized avatar

lolicsystem lolicsystem

View GitHub Profile
@lolicsystem
lolicsystem / helix_globe_on_canvas.html
Created August 21, 2010 03:09
HTML5なcanvas要素を使って、球の上に螺旋を描画。1点透視の遠近処理有り。
<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() {
@lolicsystem
lolicsystem / gist:512364
Created August 7, 2010 02:50
Pixivで、個別イラストページから被ブクマ状態を参照するbookmarklet
javascript:void(window.open('http://www.pixiv.net/bookmark_detail.php?'%20+%20location.href.substring(location.href.indexOf('illust_id')),'_blank'))
@lolicsystem
lolicsystem / StaccfeedAutoPager.user.js
Created July 29, 2010 15:37
PixivのStaccfeedで、Auto Pager (自動継ぎ足し)するグリモン
// ==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(){
@lolicsystem
lolicsystem / table_grep.user.js
Created January 7, 2010 16:05
tr タグと li タグを grep するグリモン。grepの元ネタは http://0xcc.net/blog/archives/000008.html (グリモンの皮を被せただけ)
// ==UserScript==
// @name table_grep
// @namespace http://github.com/lolicsystem
// @description table grep
// @include *
// @author lolicsystem
// @version 0.1
// ==/UserScript==
(function () {
@lolicsystem
lolicsystem / megahit の IV リストから、new のやつだけ抜き出す
Created December 8, 2009 14:56
megahit の IV リストから、new のやつだけ抜き出す
#!/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';
@lolicsystem
lolicsystem / anktagcloud.pl
Created November 11, 2009 18:01
anktagcloud.pl -- Ank Pixiv Tool で取得した絵のタグから、自分の性癖を知るためのスクリプト
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
use feature ":5.10";
my $dbh = DBI->connect("dbi:SQLite:dbname=ankpixiv.sqlite",
undef,
undef,
{
<html>
<head>
<title>クロージャを使って、今日昨日明日の日付を表示</title>
</head>
<body>
<script type="text/javascript">
function date_string() {
var nt = new Date();
var now = nt.getTime();
@lolicsystem
lolicsystem / 昨日の日付を表す6桁の数値を表示する
Created November 1, 2009 11:26
JSで昨日の日付表す6桁の数値を得てみる
//
// 昨日の日付を表す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);