Skip to content

Instantly share code, notes, and snippets.

@ataka
ataka / recipe.html
Last active December 14, 2015 07:59 — forked from machida/html_practice.html
カレーのレシピ
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。
レシピの作者
山田サチ子さん
材料 ( 8皿分 )
@ataka
ataka / json-reformat-region-align-colon.el
Last active August 29, 2015 14:04
Format JSON script aligned with colon
(defun json-reformat-region-align-colon (beg end)
(interactive "r")
(save-restriction
(narrow-to-region beg end)
(goto-char (point-min))
(while (search-forward "," nil t)
(insert "\n")
(let ((col-prev (progn (forward-line -1)
(end-of-line)
(search-backward ":")
@ataka
ataka / .gitignore
Last active August 29, 2015 14:12
convert-fudeo-2-hagaki-design
*~
*.csv
@ataka
ataka / deviceToken.swift
Created July 29, 2015 00:39
Print deviceToken to console
func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
let trimCharacterSet = NSCharacterSet(charactersInString: "<>");
let deviceTokenString = deviceToken.description.stringByTrimmingCharactersInSet(trimCharacterSet)
.stringByReplacingOccurrencesOfString(" ", withString: "", options: nil, range: nil);
println("application:didRegisterForRemoteNotificationWithDeviceToken: " + deviceTokenString);
}