Skip to content

Instantly share code, notes, and snippets.

@anekos
anekos / anktagcloud.pl
Created October 9, 2012 16:26 — forked from lolicsystem/anktagcloud.pl
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,
{
XML.ignoreProcessingInstructions = false;
let xml = <>
<?xml-stylesheet type="text/css" href="chrome://browser/skin/"?>
<window id="twitt-popup"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
pack="start"
ondblclick="window.close()">
<box id="dialog" style="padding: 10px; border: 2px solid #7B969C;">
<hbox align="center" pack="center">
@anekos
anekos / heuristic-search.js
Created February 14, 2010 08:51 — forked from hitode909/heuristic-search.js
ヒューリスティックに検索する
var PLUGIN_INFO =
<VimperatorPlugin>
<name>heuristic-search</name>
<description>Heuristic search</description>
<author mail="hitode909@gmail.com" homepage="http://www.hatena.ne.jp/hitode909/">hitode909</author>
<version>0.2</version>
<detail><![CDATA[
== Commands ==
:hsearch {keywords}
@anekos
anekos / gist:257573
Created December 16, 2009 04:00 — forked from teramako/dealCards.js
カード配り (10分プログラミング)
//テーマはvar, letを使わないこと
(function(n,c)c.match('(.{'+n+'})+')[0].split("").reduce(function(p,c,i)(p[i%n]=(p[i%n]||'')+c,p),[]))(6,"01234501234501234578")