View NSInvocationSample.m
#import <Foundation/Foundation.h>
/*!
@header
@abstract NSInvocationを使ってメッセージ送信するサンプル
@disucussion Cocoaじゃないと動かないと思います
*/
@interface TestObj : NSObject
- (void)run;
- (BOOL)foo:(BOOL)value;
@end
View gist:2249596
REVISION=$(svn info 2> /dev/null | grep Revision | sed -e 's/Revision: //')
if [ -z ${REVISION} ]; then
REVISION=$(git svn info 2> /dev/null | grep Revision | sed -e 's/Revision: //')
fi
if [ -z ${REVISION} ]; then
REVISION="no rev"
fi
cat<<EOH>Environment.h
#import <Foundation/Foundation.h>
#define REVISION @"${REVISION}"
View zshrc
autoload colors
colors
UID_COLOR=${fg[green]}
case ${UID} in
0)
UID_COLOR=${fg[red]}
;;
*)
;;
View config
[auto-props]
Localizable.strings = svn:mime-type=text/plain;charset=UTF-16
View atnd_users_to_csv.rb
#!/usr/bin/env ruby
require 'pp'
require 'optparse'
require 'net/http'
require 'json'
Version=0.5
class User
attr_accessor :atnd_name, :is_regular
View screenrc
startup_message off
shell /bin/zsh
caption always "%{= wk} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wb}%y/%m/%d(%D) %{=b wb}%c"
View App.pch
#ifdef DEBUG
extern void _objc_autoreleasePoolPrint();
#define _objc_autoreleasePoolPrint() _objc_autoreleasePoolPrint()
#define __BASENAME__ (strrchr(__FILE__, '/') + 1)
/*!
@define
@abstract デバッグ時のみ出力されるログ
@param 第一引数はフォーマット文字列、以降可変引数
*/
#define LOG(...) \
View .tmux.conf
set-option -g default-shell /bin/zsh
set-window-option -g mode-keys emacs
View make.conf
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
USE="mmx sse sse2"
USE="$USE bash-completion zsh-completion vim-syntax"
USE="$USE git"
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"
View .ssh_config
Host *.rackbox.net
IdentityFile ~/.ssh/id_rsa.rackhub