This file contains hidden or 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
# | |
# after edit this file, type "zcompile .zshrc" | |
# | |
export LANG=ja_JP.UTF-8 | |
HISTFILE=$HOME/.zsh-history | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' |
This file contains hidden or 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
puts "hello world!" |
This file contains hidden or 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 'appscript' | |
include Appscript | |
its = app "iTunes.app" | |
# プレイリストの作成 | |
# playlist = its.make(:new => :user_playlist, :with_properties => {:name => "test"}) | |
# ファイルの追加(プレイリスト指定して追加) | |
#org_track = its.add(MacTypes::FileURL.path(File.expand_path("/path/to/foo.wav")), :to => playlist) |
This file contains hidden or 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
## エスケープキーの設定 | |
escape ^Tt | |
## ビジュアルベルを無効 | |
vbell off | |
## ステータス行の設定 | |
hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w" | |
## スタートアップ時メッセージ無効 |
This file contains hidden or 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
;; 行末のホワイトスペースを表示 | |
(when (boundp 'show-trailing-whitespace) (setq-default | |
show-trailing-whitespace t)) | |
(set-face-background 'trailing-whitespace "plum") |
This file contains hidden or 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
ifconfig en1 | grep netmask | awk '{ print $2 }' | pbcopy && pbpaste |
This file contains hidden or 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
framework 'Cocoa' | |
require 'rubygems' | |
require 'hotcocoa' | |
class Application | |
include HotCocoa | |
def start | |
application(:name => "Postie") do |app| |
This file contains hidden or 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 LikeEverywhereAtBottom | |
// @namespace http://blog.katsuma.tv/ | |
// @include http://* | |
// @include https://* | |
// ==/UserScript== | |
(function (){ | |
if(unsafeWindow.self != unsafeWindow.top){ | |
return; |
This file contains hidden or 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 'rubygems' | |
require 'benchmark' | |
require 'memcache' | |
require 'tokyocabinet' | |
require 'tokyotyrant' | |
require 'redis' | |
include TokyoCabinet | |
include TokyoTyrant |
NewerOlder