Skip to content

Instantly share code, notes, and snippets.

View unarist's full-sized avatar

unarist unarist

View GitHub Profile
@unarist
unarist / pukiwiki-hilight-toc.user.js
Created April 8, 2015 13:37
PukiWiki Plus!の検索でハイライト部分の一覧を作る何か
// ==UserScript==
// @name PukiWiki Plus!の検索でハイライト部分の一覧を作るあれ
// @namespace http://github.com/unarist/
// @version 0.1
// @description enter something useful
// @author unarist
// @match http://wikiwiki.jp/*/?*&word=*
// @match http://*.swiki.jp/index.php?*&word=*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/sugar/1.4.1/sugar.min.js
@unarist
unarist / gist:aa026f6a9fc6895d34f1
Last active August 29, 2015 14:21
パターンマッチ的な何か
public static class MatchExt
{
public static MatchState<TResult> BeginMatch<TResult>(this object source)
{
return new MatchState<TResult>(source);
}
}
public struct MatchState<TResult>
{
@unarist
unarist / .vimrc
Last active August 29, 2015 14:21
portable vimrc
" https://gist.githubusercontent.com/unarist/c9f69e31dfe757c7d2fd/raw/.vimrc
set encoding=utf-8
set fileencodings=utf-8,iso-2022-jp,cp932,eucjp,default
filetype plugin on
filetype indent on
colorscheme torte
@unarist
unarist / post-receive
Created June 24, 2015 09:11
pushdeploy
#!/bin/sh
set -e
# cd .git/hooks/../..
cd $(dirname "$0")/../..
unset GIT_DIR
# read arguments
read oldrev newrev refname
branch=${refname#refs/heads/}
@unarist
unarist / .user.js
Last active August 29, 2015 14:24
アマゾンポチと入れさせないやつ.user.js
// ==UserScript==
// @name アマゾンポチと入れさせないやつ
// @namespace http://github.com/unarist/
// @version 0.2
// @description 「#アマゾンポチ と入れて@返信でカートに追加・後で買う」「@amazonJPさんから」を消す
// @author unarist
// @match http://www.amazon.co.jp/*dp/*
// @match http://www.amazon.co.jp/gp/product/*
// @grant none
// ==/UserScript==
@unarist
unarist / README.md
Last active April 27, 2021 12:59
Wikipediaで他言語版のリンクをh1の隣に持ってくる.user.js

これはなに

他言語版のリンクをh1の隣に持ってくるやつ。

image

ja,en,itという並びは適当。

@unarist
unarist / README.md
Created December 31, 2015 02:43 — forked from ento/README.md
Treemap of Stack Exchange Sites

Stack Exchangeのサイトをさまざまな指標にもとづいたツリーマップで表示します。色分けはサイト一覧上のカテゴリによります。

@unarist
unarist / test.cs
Last active January 12, 2016 13:11
別プロセスのコンソールバッファを読み取るサンプル
// for http://ja.stackoverflow.com/a/20861/
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace Sample
@unarist
unarist / .user.js
Last active June 17, 2016 13:39
pso2swiki 検索結果のコメント系を折りたたむ
// ==UserScript==
// @name pso2swiki 検索結果のコメント系を折りたたむ
// @namespace https://github.com/unarist/
// @updateURL https://gist.github.com/unarist/6e4e55a1fafec9942024/raw
// @version 0.2
// @author unarist
// @match http://pso2.swiki.jp/?*&cmd=search&*
// @match http://pso2m.swiki.jp/?*&cmd=search&*
// @grant none
// ==/UserScript==
@unarist
unarist / .user.js
Created March 23, 2016 05:55
SE: 信用度にカーソルを乗せると権限を一覧するやつ
// ==UserScript==
// @name SE: 信用度にカーソルを乗せると権限を一覧するやつ
// @namespace https://github.com/unarist/
// @version 0.1
// @author unarist
// @match http://ja.stackoverflow.com/*
// @match http://meta.ja.stackoverflow.com/*
// @grant none
// ==/UserScript==
/* jshint -W097 */