Skip to content

Instantly share code, notes, and snippets.

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

Shigenobu Nishikawa shishi

🏠
Working from home
View GitHub Profile
// ==UserScript==
// @name Fast look up JP and EN
// @namespace http://d.hatena.ne.jp/jimo1001/
// @description Fast look up Japanese and English character strings.
// @include *
// ==/UserScript==
var VERSION = "2009.03.16";
var SITEINFO_IMPORT_URLS =
[
(let ((default-directory (expand-file-name "~/Dropbox/home/.emacs.d")))
(add-to-list 'load-path default-directory)
(load (expand-file-name "~/Dropbox/home/.emacs.d/subdirs.el") t t t))
(if (file-exists-p (locate-library "init"))
(load (locate-library "init") nil t nil))
@shishi
shishi / install_ruby_by_rvm
Created December 1, 2011 18:31
install rvm & ruby 1.9.2 for ubuntu 11.10
sudo apt-get install curl git-core
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source .bashrc
rvm get latest
rvm pkg install zlib
rvm install 1.9.2 --with-zlib-dir=$rvm_path/usr
rvm use 1.9.2
@shishi
shishi / install watchr
Created December 1, 2011 18:32
install watchr
gem install watchr
@shishi
shishi / watchr.rb
Created December 1, 2011 19:36
watch *.p[lm] and *.t then notify test results
watch('(.*).(p[ml])') { |m| code_changed(m[0]) }
watch('(.*).t') { |m| code_changed(m[0]) }
def code_changed(file)
run "prove -cv"
end
def run(cmd)
result = `#{cmd}`
growl result rescue nil
@shishi
shishi / exec wathcr
Created December 1, 2011 20:04
exec watchr
watchr watchr.rb
@shishi
shishi / emacs.rb
Created December 8, 2011 11:02 — forked from rust/emacs.rb
Homebrew Emacs for OSX Lion with native full-screen
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
@shishi
shishi / emacs.rb
Created December 8, 2011 11:13 — forked from uskanda/emacs.rb
Homebrew Emacs 23.3b for OSX Lion with native full-screen, inline patch
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
@shishi
shishi / init.el
Created January 5, 2012 12:54
rinari in init.el
;; rinari
(require 'rinari)
(setq rinari-tags-file-name "TAGS")
;; rinari nxhtml
(setq
nxhtml-global-minor-mode t
mumamo-chunk-coloring 'submode-colored
nxhtml-skip-welcome t
indent-region-mode t
rng-nxml-auto-validate-flag nil
@shishi
shishi / 00-basic.el
Created January 11, 2012 08:48
init.el basic part
;; basic settings
;; ===============================================================================
;; 日本語設定 (UTF-8)
(set-language-environment "Japanese")
(prefer-coding-system 'utf-8-unix)
(set-default-coding-systems 'utf-8-unix)
(set-terminal-coding-system 'utf-8-unix)
(set-keyboard-coding-system 'utf-8-unix)
(set-clipboard-coding-system 'utf-8-unix)