Skip to content

Instantly share code, notes, and snippets.

@cat-in-136
cat-in-136 / using-iframe.html
Last active August 29, 2015 01:03
MS edge ms-settings test...
<iframe src="ms-settings:personalization"></iframe>
<!-- On MS Edge, the setting window is suddenly opened just after opening this file. -->
@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%;
}
@cat-in-136
cat-in-136 / README.md
Last active August 29, 2015 14:00
doxygen の xml 出力を利用して、C言語構造体の構造を JSON で吐き出すスクリプト

How to run (example)

$ ls
foobar.h
$ cat foobar.h
// foobar.h
typedef enum _BarType {
  BAR_TYPE_A,
  BAR_TYPE_B

} BarType;

@cat-in-136
cat-in-136 / non-compression-zip-comparison-text.html
Last active August 29, 2015 14:00
non-compress-zip-comparison-text
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>non-compress-zip-comparison-text</title>
<script type="application/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.js"></script>
<!-- Preparation code -->
<!-- inspired by http://jsperf.com/zlib-comparison-text-1musk10/3,
http://jsperf.com/zip-comparison-text
@cat-in-136
cat-in-136 / transparent_fuse.c
Last active August 29, 2015 14:01
Transparent Filesystem, for study FUSE
/*
* Transparent Filesystem, for study FUSE
* Copyright (C) 2014 @cat_in_136
*
* Avarilable under MIT License <http://opensource.org/licenses/mit-license.php>
*
* How to build:
* gcc -Wall -o transparent_fuse transparent_fuse.c `pkg-config fuse --cflags --libs`
*
* How to use:
@cat-in-136
cat-in-136 / cybozlive_notification_hack.js
Created August 9, 2014 04:04
サイボウズLiveのWeb Notification API勝手に対応ハック
Notification.requestPermission(function(status) {
var NotificationCount = require("common/cbaToolMenu").NotificationCount;
var doSuccess_orig = NotificationCount.doSuccess;
NotificationCount.doSuccess = function (e) {
doSuccess_orig(e);
var text = "";
if (e.updateCount > 0) { text += "新着情報x" + e.updateCount + "\n"; }
if (e.goodCount > 0) { text += "いいね!x" + e.goodCount + "\n"; }
if (e.enqueteCount > 0) { text += "アンケートx" + e.enqueteCount + "\n"; }
@cat-in-136
cat-in-136 / adobe-source-han-sans-jp-fonts-fontconfig.conf
Created October 26, 2014 12:07
adobe-source-han-sans-jp-fonts RPM spec and so on
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="lang">
<string>ja</string>
</test>
<test name="family">
<string>monospace</string>
</test>
@cat-in-136
cat-in-136 / .gitignore
Last active August 29, 2015 14:08
UTF-8-japanese HACK for tgif based on the fedora pkg ( git://pkgs.fedoraproject.org/tgif.git )
tgif-QPL-4.2.2.tar.gz
/tgif-QPL-4.2.3.tar.gz
/tgif-QPL-4.2.4.tar.gz
/tgif-QPL-4.2.5.tar.gz
@cat-in-136
cat-in-136 / README.md
Last active August 29, 2015 14:17
江戸城濠・城門(明治17年、東京5千分の1彩色図から)

江戸城濠・城門(明治17年、東京5千分の1彩色図から)

江戸城濠データに関するメモ

@cat-in-136
cat-in-136 / README.md
Created May 12, 2015 14:57
My answer to "Five programming problems every Software Engineer should be able to solve in less than 1 hour"