Skip to content

Instantly share code, notes, and snippets.

View tsukkee's full-sized avatar

Takayuki Tsukitani tsukkee

View GitHub Profile
URxvt.termName: rxvt-256color
URxvt.foreground: White
URxvt.background: Gray10
URxvt.geometry: 130x45
URxvt.scrollBar: false
URxvt.saveLines: 1000
URxvt.font:\
xft:Inconsolata:style=Medium:size=13:antialias=true,\
xft:Osaka:style=Regular-Mono
diff --git a/vim/autoload/ref/refe.vim b/vim/autoload/ref/refe.vim
index 1daaada..fba0b2f 100755
--- a/vim/autoload/ref/refe.vim
+++ b/vim/autoload/ref/refe.vim
@@ -50,7 +50,9 @@ endfunction
function! ref#refe#complete(query) " {{{2
- return split(system(g:ref_refe_cmd . ' -l -s ' . a:query), "\n")
+ let refe_version = matchstr(system(g:ref_refe_cmd . ' --version'), '[0-9.]\+')
@tsukkee
tsukkee / css.vim
Created December 8, 2009 07:22 — forked from hail2u/css.vim
http://www.vim.org/scripts/script.php?script_id=2150 にrgb()/rgba()のサポートを追加したものに,256colors ターミナルで遅くなる問題対策を加えたもの
" Language: Colored CSS Color Preview
" Maintainer: Niklas Hofer <[email protected]>
" URL: svn://lanpartei.de/vimrc/after/syntax/css.vim
" Last Change: 2008 Feb 12
" Licence: No Warranties. Do whatever you want with this. But please tell me!
" Version: 0.6
" Modified Date: 2010 Jan 19
" Original Version: 0.7
" Current Version: 0.7.2
URxvt.termName: rxvt-256color
URxvt.foreground: White
URxvt.background: Gray10
URxvt.geometry: 120x38
URxvt.scrollBar: false
URxvt.saveLines: 1000
URxvt.font:\
xft:Menlo:style=Normal:size=10:antialias=true,\
xft:Osaka:style=Regular-Mono
// ==UserScript==
// @name tumblr iphone
// @namespace http://relaxedcolumn.blog8.fc2.com/
// @description enable to auto load next page and open reblog window in new tab
// @include http://www.tumblr.com/iphone*
// ==/UserScript==
//
// Bookmarklet for iPhone
// javascript:({update:500,remain:1000,url:'http://gist.github.com/137617.txt',_:function(d,e){e=d.createElement('script');e.src=this.url+"#"+this.update+","+this.remain;e.charset='utf-8';d.body.appendChild(e)}})._(document)
<?php
function array_unique_callback($array, $callback) {
return array_intersect_key($array, array_unique(array_map($callback, $array)));
}
function book_compare_func($book) {
return $book->get_title();
}
class Book
@tsukkee
tsukkee / tabFx2Compatible.xml
Created April 16, 2009 12:55
Vimperator 2.3 patch for Tree Style Tab
<?xml version="1.0"?>
<!--
Firefox 2 compatible tab structure library for Firefox 3 or later
Usage:
<?xul-overlay href="tabFx2Compatible.xul"?>
lisence: The MIT License, Copyright (c) 2009 SHIMODA "Piro" Hiroshi
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/license.txt
original:
js <<EOM
commands.addUserCommand(["javascriptincontent", "jsc"],
"Run a JavaScript command in content context",
function (args)
{
try
{
let s = new Components.utils.Sandbox(buffer.URL);
s.window = content.window;
s.document = content.document;
# $Id: Portfile 44195 2008-12-23 18:48:45Z [email protected] $
PortSystem 1.0
name asciidoc
version 8.2.7
categories textproc
maintainers boeyms openmaintainer
description Formatter/translator for text files to numerous formats
long_description \
// ==UserScript==
// @name ldr smooth scroll
// @namespace http://relaxedcolumn.blog8.fc2.com/
// @description smoothing scroll for livedoor reader (ldr) and fastladder
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/public/*
// @include http://fastladder.com/reader/
// ==/UserScript==
//