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
@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,
@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();
MyApp =
method: require '/js/method'
$ = MyApp
uiStyle =
# 店舗情報レイヤー
mapSubView:
top: 0
height: '88dp'
backgroundGradient:
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'
@tuki0918
tuki0918 / method.js
Last active December 13, 2015 23:48
// require
var MyApp = {
name: require('')
};
var $ = MyApp;
var platform = Ti.Platform.name;
@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 / _index.html
Last active December 15, 2015 15:58
html5 Initialize with underscore
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="keywords" content="">
<meta name="description" content="">
class DynamicScroll
constructor: (@data, @rows)->
@page = 1
@lastIndex = 0
@maxLength = data.length
hasNext: ->
return @lastIndex < @maxLength
next: ->
stat = @lastIndex
end = @rows * ( @page - 1 ) + @rows
Password =
SYMBOL: '!"#$%&\'()'
NUMBER: '1234567890'
ABC_L: 'abcdefghijklmnopqrstuvwxyz'
ABC_U: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
generate: (len)->
password = ''
# 11以下 -> 12, 17以上 -> 16
len = 12 if typeof len is 'undefined' or len <= 11
<button id="addNewObserver">Add New Observer checkbox</button>
<input id="mainCheckbox" type="checkbox">
<div id="observersContainer"></div>