Skip to content

Instantly share code, notes, and snippets.

@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);
}
@ataka
ataka / .gitignore
Last active August 29, 2015 14:12
convert-fudeo-2-hagaki-design
*~
*.csv
@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 / recipe.html
Last active December 14, 2015 07:59 — forked from machida/html_practice.html
カレーのレシピ
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。
レシピの作者
山田サチ子さん
材料 ( 8皿分 )
@ataka
ataka / shibuya-el-position-paper.md
Created September 5, 2012 23:35 — forked from ainame/shibuya-el-position-paper.md
shibuya.el のポジションペーパーです

Shibuya.el#1 ポジションペーパー

Personal

@ataka
ataka / mark-blog-entry.el
Created February 17, 2012 04:35
Mark blog entry
(defun mark-blog-entry ()
(interactive)
(search-forward "<title>")
(forward-line -1)
(skip-chars-backward " \n")
(forward-line)
(push-mark nil t t)
(search-backward "<title>")
(forward-line)
(point))
@ataka
ataka / README
Created November 1, 2011 00:52
GDD2011 DevQuiz Web Game
GDD2011 DevQuiz Web Game
ルール
シンプルな神経衰弱ゲームです。カードはクリックすることでめくることができます。全 64 セットを解くことで問題クリアとなります。
@ataka
ataka / Makefile
Created April 22, 2010 18:02
Binary Tree Sample
# Binary Tree sample program
# Author: Masayuki Ataka <masayuki.ataka@gmail.com>
PROGRAM = btree
CC = gcc
CFLAGS = -W -Wall -g -O2 -std=c99
CPPFLAGS = -DDEBUG
all: $(PROGRAM)
@ataka
ataka / README
Created September 14, 2009 16:15
CSS Counter
CSS counter sample script
@ataka
ataka / Makefile
Created June 24, 2009 21:11
History of Blogger
all: blogger-history.png
blogger-history.png: blogger-history.dot
dot -Tpng -o $@ $<