Skip to content

Instantly share code, notes, and snippets.

import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
public class RedmondLookAndFeel extends WindowsLookAndFeel {
public String getDescription() {
return "This is " + getName();
}
public String getID() {
return "RedmondLookAndFeel";
@cat-in-136
cat-in-136 / bijo
Created February 18, 2012 08:23
美女Linuxがコマンドから呼び出せないと不便なのでbijoコマンドを作ってみたお
#!/bin/env ruby
# Copyright (C) 2011-2012 by cat_in_136
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
@cat-in-136
cat-in-136 / webvibrator.html
Created March 19, 2012 13:29
Web Vibrator (R18?) (ウェブバイブ; たぶん18禁)
<!DOCTYPE html>
<!-- Android版Firefoxなどでご利用ください。 -->
<html>
<head>
<meta charset="UTF-8" />
<meta name="rating" content="adult" />
<title>Wrong use of Vibration API (R18?) (Vibration APIの間違った使い方; たぶん18禁)</title>
<script type="text/javascript">
var WebVibrator = {
mode: 0,
@cat-in-136
cat-in-136 / Tポイントツールバーに対する検索履歴汚染攻撃の検討.html
Created August 10, 2012 01:31
Tポイントツールバーに対する検索履歴汚染攻撃の検討(取扱注意)
<!DOCTYPE html>
<!--
本コードはTポイントツールバー規約の第4条3項に違反する恐れがあるため、
Tポイントツールバーのユーザはこのファイルを開いてはいけません。
-->
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Tポイントツールバーに対する検索履歴汚染攻撃の検討</title>
@cat-in-136
cat-in-136 / prompt_simplevcs_setup
Created August 26, 2012 07:39
my simplevcs prompt theme for zsh
# Written by @cat_in_136
#
prompt_simplevcs_help() {
cat <<'EOF'
This prompt is color-scheme-able. You can invoke it thus:
prompt simplevcs [<color1> [<color2> [<color3> [<color4> [<check4changes]]]]]
<color1> the right prompt color.
@cat-in-136
cat-in-136 / 51-gr-sakura.rules
Created September 16, 2012 14:38
USB virtual COM port rule for GR-SAKURA
# Gadget Renesas SAKURA (idVendor=2129, idProduct=0531)
KERNEL=="ttyACM[0-9]*", ATTRS{product}=="Gadget Renesas SAKURA", MODE="0660", GROUP="plugdev", SYMLINK+="ttyUSB-Sakura"
@cat-in-136
cat-in-136 / PdfConcatWithBookmark.java
Created February 17, 2013 01:25
PDF concatination with merging the bookmarks
package com.blogspot.catin136.pdfconcatwithbookmark;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@cat-in-136
cat-in-136 / libtar-list.c
Last active August 18, 2022 11:47
Study for reading/writing a tar file using libtar
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <libtar.h>
int main(int argc, char *argv[]) {
TAR *tar = NULL;
int ret = 0;
int exitcode = 0;
@cat-in-136
cat-in-136 / super_long_exposure.cpp
Last active December 23, 2015 04:09
C++/OpenCV implementation of super long exposure ( www.flickr.com/photos/27992339@N00/9655979716/ )
// vim: filetype=cpp fileencoding=UTF-8 shiftwidth=2 tabstop=2 autoindent expandtab
//
// compile
// % g++ -o super_long_exposure super_long_exposure.cpp -fopenmp -O3 -Wall `pkg-config --libs --cflags opencv` -lm
#include <opencv2/opencv.hpp>
#include <iostream>
#include <climits>
#include <cassert>
@cat-in-136
cat-in-136 / index.css
Last active August 29, 2015 13:57
空想都市中村市勝手にスクロールマップ
html, body, #map_canvas {
margin: 0;
padding: 0;
height: 100%;
}