Skip to content

Instantly share code, notes, and snippets.

@guehara
guehara / create_issue.sh
Created Mar 7, 2013
Gitlab API create issue memo
View create_issue.sh
#!/bin/sh
curl -L -X POST -d '{"private_token":"xxxxxxxxxxxxxxxxx","title":"title", "description":"description"}' http://gitlab.host/api/v3/projects/ape/issues
@guehara
guehara / helm-consadole-uniform-number-2013.el
Last active Dec 14, 2015
helm-consadole-uniform-number-2013
View helm-consadole-uniform-number-2013.el
;; Original Source
;; http://niku.name/articles/diary/2013/02/21/helm%E3%81%A7%E3%82%B3%E3%83%B3%E3%82%B5%E3%83%89%E3%83%BC%E3%83%AC%E6%9C%AD%E5%B9%8C2013%E3%82%B7%E3%83%BC%E3%82%BA%E3%83%B3%E9%81%B8%E6%89%8B%E8%83%8C%E7%95%AA%E5%8F%B7%E3%82%92%E6%8E%A2%E3%81%99
(defvar helm-consadole-uniform-number-2013-source
'((name . "consadole sapporo uniform number 2013")
(candidates . (("1 GK 曵地 裕哉")
("16 GK イ ホスン")
("21 GK 阿波加 俊太")
("30 GK 杉山 哲")
("2 DF 日高 拓磨")
@guehara
guehara / emacs-xcode-document-viewer.diff
Created Oct 12, 2012
emacs-xcode-document-viewer patch for Xcode 4.5
View emacs-xcode-document-viewer.diff
--- xcode-document-viewer.el.orig 2012-10-12 11:25:14.000000000 +0900
+++ xcode-document-viewer.el 2012-10-12 11:19:19.000000000 +0900
@@ -48,7 +48,7 @@
(defcustom xcdoc:document-path nil
"please set docset full path like:
-\"/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiPhone3_1.iPhoneLibrary.docset\"")
+\"/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiPhone6.0.iPhoneLibrary.docset\"")
(defcustom xcdoc:open-w3m-other-buffer nil
@guehara
guehara / gist:3445221
Created Aug 24, 2012
auto-complete-clang settings for iOS5.1 with ARC
View gist:3445221
(require 'auto-complete-clang)
(setq ac-clang-flags '("-Wall" "-Wextra" "-std=gnu99" "-fblocks" "-fobjc-arc" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk" "-I." "-include ../*.pch" "-include /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/include" "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/" "-D__IPHONE_OS_VERSION_MIN_REQUIRED=50100"))
@guehara
guehara / gist:3445213
Created Aug 24, 2012
日付表示の方法をよく忘れるのでメモ
View gist:3445213
(setq display-time-string-forms
'(year "/" month "/" day " " dayname " " 24-hours ":" minutes))
(display-time)
@guehara
guehara / gist:3445212
Created Aug 24, 2012
minor-mode-alistから長すぎるのを削る
View gist:3445212
; abbrevとか長すぎる
(setcar (cdr (assq 'abbrev-mode minor-mode-alist)) " Ab")
; Flymakeも短く
(add-hook 'flymake-mode-hook
(lambda ()
(setcar (cdr (assq 'flymake-mode minor-mode-alist)) " Fly")))
@guehara
guehara / gist:3445183
Created Aug 24, 2012
Makefile for Flymake - iOS5.1 with ARC
View gist:3445183
CLANG = /usr/bin/clang
ARCH = -arch armv7
SDK = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
OS_VER_MIN = -miphoneos-version-min=5.1
OPTIONS = -fsyntax-only -fblocks -fobjc-arc -x objective-c -std=gnu99
WARNINGS = -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value
INCLUDES = -I. -include ./*.pch
FRAMEWORKS = -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks
check-syntax:
@guehara
guehara / gist:3400327
Created Aug 20, 2012
melpha friendly style for stylish
View gist:3400327
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url("http://melpa.milkbox.net/") {
body {
background-color: #555 !important;
}
h1 {
color: #FA8 !important;
}
tr.header {
@guehara
guehara / gist:2692751
Created May 14, 2012
rails+rvm環境でTAGSファイル作成
View gist:2692751
#!/bin/sh
find . -name "*.rb" | xargs etags --language=none --regex='/[ \t]*\(def\|class\|module\)[ \t]\([^ \t]+\)/\2/'
find ~/.rvm/rubies/default/lib/ruby -name "*.rb" | xargs etags -a --language=none --regex='/[ \t]*\(def\|class\|module\)[ \t]\([^ \t]+\)/\2/'
@guehara
guehara / gist:2692728
Created May 14, 2012
linum-mode で行数に応じて幅を調整
View gist:2692728
;; linum
(require 'linum)
(setq linum-format
(lambda (line) (propertize (format (let ((w (length (number-to-string (count-lines (point-min) (point-max)))))) (concat "%" (number-to-string w) "d")) line) 'face 'linum)))
(global-linum-mode t)