全体として太一が感覚的に実践している事を論理的に説明しようと試みている為、
説明の粒度が適切でなかったり一貫性が無いように見える部分があるかもしれない。
普段やっているけども書ききれていない事も多分きっとある。
- コードを嗜む
- コードを学ぶ
- 武器を手に入れる
| package natntech; | |
| import java.io.OutputStream; | |
| import java.net.InetSocketAddress; | |
| import java.net.ServerSocket; | |
| import java.net.Socket; | |
| import com.google.appengine.tools.development.DevAppServerMain; | |
| /** |
| # エンティティの定義 | |
| # これに対するクラスができる | |
| Body = { | |
| item_id : string; | |
| price : decimal; | |
| }; | |
| # 射影の定義 | |
| # これに対するインターフェースができる | |
| @fragment Header = { |
| #!/bin/sh | |
| # Just copy and paste the lines below (all at once, it won't work line by line!) | |
| # MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
| function abort { | |
| echo "$1" | |
| exit 1 | |
| } | |
| set -e |
| tmp | |
| .DS_Store | |
| build/iphone/* | |
| !build/iphone/.gitignore | |
| build/android/* | |
| !build/android/.gitignore | |
| .settings | |
| build.log | |
| .fastdev.lock |
| [titanium] | |
| api_token=自分のAPI Token | |
| team_token=Team Token | |
| distribution_list=配布先のDistribution list名 |
| /** | |
| * 指定した時間更新されていない画像キャッシュを削除する。 | |
| * iOS にのみ対応。 | |
| * | |
| * @param {Number} expiredTime キャッシュ保持期限 (ms) | |
| */ | |
| module.exports = function(expiredTime) { | |
| var cachePath = Ti.Filesystem.applicationDataDirectory + '../Library/Caches/', | |
| cacheDir = Ti.Filesystem.getFile(cachePath), | |
| now = new Date().getTime(); |
| # -*- coding: utf-8 -*- | |
| """ | |
| This scripts reqire a third party module 'requests'. | |
| You can get it from PyPI, i.e. you can install it using | |
| easy_install or pip. | |
| http://docs.python-requests.org/en/v0.10.4/ | |
| Original source code is written by shin1ogawa, which is in Java. |
| (function(){ | |
| jQuery.fn.__init = jQuery.fn.init; | |
| var old_expr = /^(?:[^<]*(<[\w\W]+>)[^>]*$)/; | |
| var strict_expr = /^\s*</; | |
| jQuery.fn.init = function(selector, context, rootjQuery){ | |
| if (typeof selector === "string") { | |
| // console.log(selector); | |
| if (old_expr.test(selector) && !strict_expr.test(selector)) { | |
| throw 'Syntax error, html string must start with "<"'; | |
| } |
| # Preferences.sublime-settings | |
| # | |
| # { | |
| # ... | |
| # "google_translate_mode": "en>ja", | |
| # "google_translate_api_key": "API-KEY" | |
| # } | |
| # | |
| # Default.sublime-keymap | |
| # |