Skip to content

Instantly share code, notes, and snippets.

@guehara
guehara / create_issue.sh
Created March 7, 2013 01:31
Gitlab API create issue memo
#!/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 December 14, 2015 05:29
helm-consadole-uniform-number-2013
;; 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 October 12, 2012 02:32
emacs-xcode-document-viewer patch for Xcode 4.5
--- 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 August 24, 2012 03:44
auto-complete-clang settings for iOS5.1 with ARC
(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 August 24, 2012 03:41
日付表示の方法をよく忘れるのでメモ
(setq display-time-string-forms
'(year "/" month "/" day " " dayname " " 24-hours ":" minutes))
(display-time)
@guehara
guehara / gist:3445212
Created August 24, 2012 03:40
minor-mode-alistから長すぎるのを削る
; 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 August 24, 2012 03:35
Makefile for Flymake - iOS5.1 with ARC
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 August 20, 2012 03:38
melpha friendly style for stylish
@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 08:36
rails+rvm環境でTAGSファイル作成
#!/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 08:33
linum-mode で行数に応じて幅を調整
;; 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)