This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 = | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install watchr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watchr watchr.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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) |
OlderNewer