Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name AutoRemove accesskey Attribute
// @namespace http://d.hatena.ne.jp/esperia/
// @description remove "accesskey" attribute for Vimperator
// @include http://*.wikipedia.org/*
// ==/UserScript==
//
(function(doc){
var removeAccesskey = function() {
// ==UserScript==
// @name test
// @author esperia
// @namespace http://d.hatena.ne.jp/esperia/
// @description test only
// @include http://localhost:8080/
// @version 0.01
// ==/UserScript==
//
// ==UserScript==
// @name test
// @author esperia
// @namespace http://d.hatena.ne.jp/esperia/
// @description テスト用のuserjs
// @include http://localhost:8080/
// @version 0.01
// ==/UserScript==
//
set nocompatible
set number
syntax on
set tabstop=4
" set history=100
set ignorecase
set wrapscan
"set title
set ruler
zen-coding :
html>(head>title{sample}+meta[charset="UTF-8"]+link[rel="stylesheet"][href="./style.css"][type="text/css"]+script[type="text/javascript"])+(body>div#wrap>(header#header>nav>ul#menu>li*5>a)+(section#contents>h1.title)+(footer#footer>div#copyright)
to html :
<html>
<head>
<title>sample</title>
@esperia
esperia / server.js
Created December 2, 2011 11:59 — forked from jeffrafter/server.js
Twitter OAuth with node-oauth for node.js+express
var express = require('express');
var util = require('util');
var oauth = require('oauth');
var app = express.createServer();
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY";
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET";
function consumer() {
@esperia
esperia / kimoine-in-mixi.user.js
Created December 3, 2011 17:24
Mixiにキモいね!ボタンを追加するuserJS拡張。 Chrome(またはFirefox+greasemonkey)で動きます。rawのリンクをクリックするとインストールできます。一時ネタ用なのでキモイね状態は保存されないです。 Chromeの場合、URL欄に chrome://extensions/ と入れたときに出る画面からアンインストールできます
// ==UserScript==
// @name Kimoine! in mixi
// @namespace http://d.hatena.ne.jp/esperia/
// @author esperia
// @description Let's Say, "Kimoine"!
// @include http://mixi.jp/home.pl*
// @match http://mixi.jp/home.pl*
// ==/UserScript==
//
@esperia
esperia / .vimrc
Created January 25, 2012 17:47
自分用のバックアップです。汚くてすみません…
set nocompatible
set number
syntax on
set tabstop=4
set showtabline=1
set shiftwidth=4
set history=255
set ignorecase
set wrapscan
@esperia
esperia / shorten_url.js
Last active September 30, 2015 12:37
CPANのshorten_urlをJavaScript/PHPで移植。
/**
* Make shorten url.
*
* work fine on node.js.
*
* via http://search.cpan.org/~alexbio/Algorithm-URL-Shorten-0.06/lib/Algorithm/URL/Shorten.pm
* based version 0.06.
*/
/*
@esperia
esperia / Logger.java
Last active November 10, 2015 04:10
Androidでログを吐くためのクラス。クラス名とメソッド名はStackTraceから取ってきてるので、Log.d(LOG_TAG, "関数名, 文字列"); って書かなくても Logger.d("文字列"); でいける
package com.esperia09.android.utils;
import com.esperia09.android.BuildConfig;
import android.util.Log;
public class Logger {
private static final boolean debug = BuildConfig.DEBUG;
private static final int TRACE_CALLER_COUNT = 2;