Skip to content

Instantly share code, notes, and snippets.

// ==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)
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
@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
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.]\+')
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
@tsukkee
tsukkee / scroll_bench.c
Created October 1, 2010 03:55
scroll benchmark script for iTerm2
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
void setline(char *s, int n)
{
int l = random() % n;
int j;
for(j = 0; j < l; ++j) {
s[j] = 'A' + (random() % 60);
@tsukkee
tsukkee / move_cursor_with_tmux.vim
Created October 17, 2010 13:32
Vimとtmuxのウィンドウを区別せずに移動したい
function! MoveCursorWithTmux(vim_dir, tmux_dir)
let old_winnr = winnr()
execute "normal! \<C-w>" . a:vim_dir
" フォーカスがうつってなかったら
if old_winnr == winnr()
silent call system('tmux select-pane -' . a:tmux_dir)
endif
endfunction
@tsukkee
tsukkee / unite_sources_tags.vim
Created October 20, 2010 14:22
tags and tags/help sources for unite.vim
" tags, tags/help sources for unite.vim
" Version: 0.0.1
" Last Change: 20 Oct 2010
" Author: tsukkee <takayuki0510 at gmail.com>
" Licence: The MIT License {{{
" Permission is hereby granted, free of charge, to any person obtaining a copy
" of this software and associated documentation files (the "Software"), to deal
" in the Software without restriction, including without limitation the rights
" to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
" copies of the Software, and to permit persons to whom the Software is
@tsukkee
tsukkee / unite_kind_jump_list.diff
Created October 22, 2010 18:35
autoload/kinds/jump_list.vim (2010/10/22 19:27:02, 9c0fd7eb049708de6a4e3256fb090b0072c51c68) に対するパッチです
diff --git a/autoload/unite/kinds/jump_list.vim b/autoload/unite/kinds/jump_list.vim
index 15d6603..6c7b494 100644
--- a/autoload/unite/kinds/jump_list.vim
+++ b/autoload/unite/kinds/jump_list.vim
@@ -61,8 +61,8 @@ let s:kind.action_table.preview = {
function! s:kind.action_table.preview.func(candidate)"{{{
execute 'pedit'
\ (has_key(a:candidate, 'line') && a:candidate.line != '' ? '+'.a:candidate.line : '')
- \ (has_key(a:candidate, 'pattern') && a:candidate.pattern != '' ? '+/'.substitute(escape(a:candidate.pattern, '\. ', 'g'), '[\[\]~/^$]', '\\\\\0', 'g') : '')
- \ '`=a:candidate.word`'
@tsukkee
tsukkee / nerdtree_unite_filerec.vim
Created October 31, 2010 13:54
NERDTreeで選択したノードからUnite file_recする
if exists("g:loaded_nerdtree_unite_filerec")
finish
endif
let g:loaded_nerdtree_unite_filerec = 1
if !exists(':Unite')
echoerr 'This plugin requires unite.vim'
finish
endif