Skip to content

Instantly share code, notes, and snippets.

View hotchpotch's full-sized avatar
🏠
Working from home

Yuichi Tateno (secon) hotchpotch

🏠
Working from home
View GitHub Profile
*** jptemplate.vim.orig 2008-08-20 11:08:51.000000000 +0900
--- jptemplate.vim 2008-08-20 11:37:16.000000000 +0900
***************
*** 23,29 ****
" Reserved variable names
! let s:reservedVariables = ['date','shell','interactive_shell']
" Variable value history
require 'rubygems'
require 'pit'
require 'fusefs'
require 'atomutil'
require 'time'
module Atompub
class HatenaClient < Client
def publish_entry(uri)
@hatena_publish = true
#!/usr/bin/env ruby
$LOAD_PATH << '/opt/local/lib/ruby/gems/1.8/gems/rubyosa-0.4.0/lib'
require 'rbosa'
require 'pp'
require 'nkf'
$KCODE = 'u'
OSA.utf8_strings = true
diff --git a/autopagerize.user.js b/autopagerize.user.js
index cf9fce9..6ae8532 100644
--- a/autopagerize.user.js
+++ b/autopagerize.user.js
@@ -5,6 +5,7 @@
// @include http://*
// @include https://*
// @exclude https://mail.google.com/*
+// @exclude http://b.hatena.ne.jp/*
// ==/UserScript==
// ==UserScript==
// @name Expand star
// @namespace http://rails2u.com/
// @include http://*
// @include https://*
// ==/UserScript==
location.href = "javascript:"+encodeURIComponent(uneval(function () {
(function (Global) {
// ==UserScript==
// @name hatena diarylist otsune mode
// @namespace http://rails2u.com/
// @description 観測範囲が狭い人向け
// @include http://d.hatena.ne.jp/diarylist
// ==/UserScript==
(function() {
const CONTAINER_XPATH = '//div/ul[@class="list-plain"]';
const LIST_XPATH = '//div/ul[@class="list-plain"]/li';
<html>
<head>
<title>url max langth</title>
<script type="text/javascript">
(function() {
var urlLen = location.href.length;
location.hash.match(/l=(\d+)/);
var len;
if (len = RegExp.$1) {
len = len | 0;
// ==UserScript==
// @name with hatebu search
// @namespace http://b.hatena.ne.jp/
// @description google 検索の画面で、はてブ検索へのナビゲーションを出します
// @include http://www.google.co.jp/search*
// @include http://www.google.com/search*
// ==/UserScript==
location.href = "javascript:"+encodeURIComponent(uneval(function () {
(function (Global) {
(function() {
var p = function(arg) {
Application.console.log(arg);
// liberator.log(arg);
}
const HatenaBookmark = {};
HatenaBookmark.Data = new Struct('url', 'title', 'comment', 'icon');
HatenaBookmark.Data.defaultValue('icon', function() bookmarks.getFavicon(this.url));