Skip to content

Instantly share code, notes, and snippets.

View tuki0918's full-sized avatar
🏠
Working from home

Y.Yamamoto tuki0918

🏠
Working from home
View GitHub Profile
@tuki0918
tuki0918 / app.coffee
Created March 22, 2013 11:29
iOS mail box ぽいの 途中
# Class
class NavGroup
constructor: (@win)->
@NavGroup = Ti.UI.iPhone.createNavigationGroup
window: @win
return @NavGroup
class TableView
constructor: (@win)->
@TableView = Ti.UI.createTableView
@tuki0918
tuki0918 / method.js
Last active December 13, 2015 23:48
// require
var MyApp = {
name: require('')
};
var $ = MyApp;
var platform = Ti.Platform.name;
navBarStyle = (win, title, color='#666')->
win.barColor = '#eee'
win.backButtonTitle = '戻る'
#win.barImage = 'images/navber_bg.png'
#do win.hideTabBar
titleLabel = Ti.UI.createLabel
text: title
textAlign: 'center'
shadowColor: '#ddd'
MyApp =
method: require '/js/method'
$ = MyApp
uiStyle =
# 店舗情報レイヤー
mapSubView:
top: 0
height: '88dp'
backgroundGradient:
@tuki0918
tuki0918 / app.js
Created January 31, 2013 16:43
Titanium Mobile Facebook Oauth認証
(function () {
Ti.UI.setBackgroundColor('#fff');
Ti.Facebook.forceDialogAuth = false;
Ti.Facebook.appid = '【App ID】';
Ti.Facebook.permissions = ['publish_stream'];
var win = Ti.UI.createWindow({ title: 'TiFbOauth', tabBarHidden: true });
var fbLoginBtn = Ti.Facebook.createLoginButton();
@namespace url(http://www.w3.org/1999/xhtml);
ul:before,ul:after,
ol:before,ol:after,
dl:before,dl:after,
dt:before,dt:after,
dd:before,dd:after,
li:before,li:after,
h1:before,h1:after,
h2:before,h2:after,