Skip to content

Instantly share code, notes, and snippets.

@zuzu
zuzu / mokujiCreate.vba
Last active August 29, 2015 14:10
Excelでブック内のシート目次を作ってくれるマクロ
'元ネタはこちら。
'ExcelVBA:マクロでページ数を取得してシート一覧表を作成する方法 | オコモトットとプログラム | オコモトットと。 | オコモトットと。
'http://okomotot.com/?p=1685
'
Sub 別シートで目次生成()
Dim mysheet As Worksheet '各シート
Dim page_sum As Integer 'ページ数
Dim list() As Variant 'シート名とページ数格納用
Dim i As Integer '配列添え字用
@zuzu
zuzu / MeshCodeUtility.cs
Created July 31, 2014 04:34
標準地域メッシュ(世界測位系)処理用C#向けユーティリティークラス
using System;
using System.Drawing;
using System.Threading.Tasks;
namespace MyGIS
{
/*
Original
2011-12-15 【python】緯度経度から標準地域コードの取得
http://d.hatena.ne.jp/letitride/20111215
@zuzu
zuzu / ZeroFix.user.js
Created May 4, 2012 10:43 — forked from miyukki/ZeroFix.user.js
ZeroFix is ZeroWatch of niconico fixer. ZeroWatchが改良するまでの暫定的なユーザースクリプトです。 タイトルの縮小、タグの複数段表示、市場エリアを投稿者情報に、コメント入力エリアを下に、フェードを無効化などの機能があります。
// ==UserScript==
// @name ZeroFix
// @namespace applest.net
// @version 0.9
// @description ZeroFix is ZeroWatch of niconico fixer. ZeroWatchが改良するまでの暫定的なユーザースクリプトです。 タイトルの縮小、タグの複数段表示、市場エリアを投稿者情報に、コメント入力エリアを下に、フェードを無効化などの機能があります。
// @include http://www.nicovideo.jp/watch/*
// @license MIT License(http://en.wikipedia.org/wiki/MIT_License)
// ==/UserScript==
/*********************************************
@zuzu
zuzu / niconicocommentgetter.php
Created April 29, 2012 14:00 — forked from miyukki/niconicocommentgetter.php
Niconico Comment Getter
<?php
define('NICONICO_MAILADDRESS', '<アカウントアドレス>');
define('NICONICO_PASSWORD' , '<アカウントパスワード>');
$id = @$argv[1];
if(!$id) exit('Usage (sm|lv)[\d]+'.PHP_EOL);
if(strpos($id, 'sm') === 0) getVideoComment($id);
if(strpos($id, 'lv') === 0) getLiveComment($id);
if(strpos($id, 'co') === 0) getLiveComment($id);
@zuzu
zuzu / imona_access_count.sh
Created April 10, 2012 12:23
Munin iMona Access Count PlugIn(Munin用に作ったiMonaのアクセスカウンタプラグイン)
# iMona lServer Access Count
#----------------------------------------
#!/bin/sh
if [ "$1" = "config" ]; then
echo 'graph_title iMonaServerAccess' # グラフのタイトル。
echo 'graph_args --base 1000 -l 0' # いわゆるベースとなるY軸の大きさ。一応、1000にしてあるけどアクセス数が多くて既に40Mとか表示されてるorz
echo 'graph_vlabel Access' # グラフのラベル。y軸のとこに出ます。
echo 'graph_category other' # グラフのカテゴリ。一覧のHTMLで表示されるカテゴリ。DiskとかNetworkとかOtherとかProcessesとかのやつ。
echo 'graph_info iMona Access Count.' # グラフの情報。詳細ページの下の方に出る。
@zuzu
zuzu / google_reader_star_opener(chrome).user.js
Created April 24, 2011 02:08
Google Reader Star Opener(for Chrome)
// ==UserScript==
// @name Google Reader Star Opener(for Chrome)
// @namespace http://zuzu-service.net/
// @description Starred item open in a lump for Google Reader for Chrome
// @include http://www.google.co.jp/reader/view/*
// @include http://www.google.com/reader/view/*
// @include https://www.google.com/reader/view/*
// @include https://www.google.co.jp/reader/view/*
// @version 1.0.1
// ==/UserScript==
// ==UserScript==
// @name noref
// @description Aタグにrel="noreferrer"を付ける
// @match http://*/*
// @match https://*/*
// ==/UserScript==
var fn = function(node) {
if (node.nodeName === 'A') {
if (!/(?:^|\s)noreferrer(?:$|\s)/.test(node.rel)) {
// ==UserScript==
// @name STrSM(SidebarTitle replace SidebarMenu)
// @include main
// @include chrome://browser/content/browser.xul
// @version 1.0.0
// @create zuzu(http://zuzu-service.net/)
// @description サイドバーのタイトル部分を切り替えようメニューにします。
// ==/UserScript==
// @version 2010/08/22 制作。
// ==UserScript==
// @name j.mp SidebarOpenStatusbarButton
// @include main
// @include chrome://browser/content/browser.xul
// @version 1.0.0
// @description j.mp(bit.ly)のブックマークレットサイドバーを実行するステータスバーのボタンです。
// ==/UserScript==
// @version 2010/05/03 15:47 制作。
// ==UserScript==
// @name SelectionLinkURLCopy
// @namespace http://zuzu-service.net
// @description Adds 'Selection Link URL Copy' menu.
// @include main
// @compatibility Firefox 3.0, 3.5, 3.6
// @author zuzu
// @version 1.0
// @homepage http://zuzu-service.net/
// ==/UserScript==