- 海野 弘成
- Increments
- 伊藤 勝悟
- MUGENUP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
// OS の判定 | |
var OS_IOS = Ti.Platform.osname === 'iphone' || Ti.Platform.osname === 'ipad', | |
OS_ANDROID = Ti.Platform.osname === 'android'; | |
// resumed / paused イベント | |
Ti.App.addEventListener('resumed', function () { | |
console.debug('resumed'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ios><plist><dict> | |
<key>UILaunchImages</key> | |
<array> | |
<dict> | |
<key>UILaunchImageMinimumOSVersion</key> | |
<string>7.0</string> | |
<key>UILaunchImageName</key> | |
<string>Default7</string> | |
<key>UILaunchImageOrientation</key> | |
<string>Portrait</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1 / 1000 [ms] (3rd argument, true, The ready-to-run in the first call.) | |
var func = _.debounce(function () { | |
console.log('Debounced function.'); | |
}, 1000, true); | |
func(); // Debounced function. | |
func(); // nop | |
func(); // nop | |
func(); // nop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var core, Model, model; | |
core = Object.create(Backbone.Events); | |
Model = Backbone.Model.extend(); | |
model = new Model(); | |
core.listenTo(model, 'myEvent', function () { | |
console.log('Hello, World'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint devel:true */ | |
/*global Titanium */ | |
(function (Ti) { | |
"use strict"; | |
var tabGroup, tab, win, sview; | |
tabGroup = Ti.UI.createTabGroup(); | |
win = Ti.UI.createWindow({ | |
backgroundColor: "#FFFFFF", | |
title: "Photo Gallery", | |
tabBarHidden: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Appcelerator Titanium Module Packager | |
# | |
# | |
import os | |
import subprocess | |
import sys | |
import glob | |
import string |