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
#!/bin/sh | |
# 初期設定 | |
EMACS_VER=24.2 | |
WORK_DIR=$HOME/Builds/Emacs | |
BUILD_DIR=$WORK_DIR/build | |
PATCH_DIR=$WORK_DIR/patch | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
export CC='/usr/bin/clang' |
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
// Add support for subscripting to the iOS 5 SDK. | |
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 60000 | |
@interface NSObject (PSPDFSubscriptingSupport) | |
- (id)objectAtIndexedSubscript:(NSUInteger)idx; | |
- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx; | |
- (void)setObject:(id)obj forKeyedSubscript:(id <NSCopying>)key; | |
- (id)objectForKeyedSubscript:(id)key; | |
@end |
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* ((fontset-name "myfonts") ; フォントセットの名前 | |
(size 12) ; ASCIIフォントのサイズ [9/10/12/14/15/17/19/20/...] | |
(asciifont "Menlo") ; ASCIIフォント | |
(jpfont "Hiragino Maru Gothic ProN") ; 日本語フォント | |
(font (format "%s-%d:weight=normal:slant=normal" asciifont size)) | |
(fontspec (font-spec :family asciifont)) | |
(jp-fontspec (font-spec :family jpfont)) | |
(fsn (create-fontset-from-ascii-font font nil fontset-name))) | |
(set-fontset-font fsn 'japanese-jisx0213.2004-1 jp-fontspec) |
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
(defface dired-todays-face '((t (:foreground "forest green"))) nil) | |
(defvar dired-todays-face 'dired-todays-face) | |
(defconst month-name-alist | |
'(("1" . "Jan") ("2" . "Feb") ("3" . "Mar") ("4" . "Apr") | |
("5" . "May") ("6" . "Jun") ("7" . "Jul") ("8" . "Aug") | |
("9" . "Sep") ("10" . "Oct") ("11" . "Nov") ("12" . "Dec"))) | |
(defun dired-today-search (arg) | |
"Fontlock search function for dired." |
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
;; インデントの関数の再設定 | |
(add-hook 'js2-mode-hook | |
#'(lambda () | |
(require 'js) | |
(setq js-indent-level 4 | |
js-expr-indent-offset 4 | |
indent-tabs-mode nil) | |
(set (make-local-variable 'indent-line-function) 'js-indent-line))) |
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
dispatch_semaphore_t semaphore = dispatch_semaphore_create(1); | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
sleep(1); | |
dispatch_semaphore_signal(semaphore); | |
sleep(1); | |
dispatch_semaphore_signal(semaphore); | |
sleep(1); | |
dispatch_semaphore_signal(semaphore); | |
}); |
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
package controllers { | |
import play._ | |
import play.mvc._ | |
object Scalate { | |
import java.io._ | |
import org.fusesource.scalate._ |
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
import java.util.Date; | |
import javax.persistence.Column; | |
import javax.persistence.MappedSuperclass; | |
import javax.persistence.PrePersist; | |
import javax.persistence.PreUpdate; | |
import javax.persistence.Temporal; | |
import javax.persistence.TemporalType; | |
import play.db.jpa.Model; |
NewerOlder