Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20130126_Titanium新年会LT
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Keigo AOKI
January 26, 2013
Programming
0
570
20130126_Titanium新年会LT
Titanium新年会で披露したLTのスライドです。内容はAlloyの濃い目の小ネタの紹介。
※発表したスライドには会員限定コンテンツの個人情報が含まれていたので、一部をモザイク処理しています。
Keigo AOKI
January 26, 2013
Tweet
Share
More Decks by Keigo AOKI
See All by Keigo AOKI
Potential EM 制度を始めた理由、そして2年後にやめた理由 - EMConf JP 2025
hoyo
3
5.4k
【MediaLive利用事例】ライブ授業配信システムのリニューアル / Renewal of the live lesson streaming system
hoyo
0
330
ライブストリーミングサービスの負荷を捌くためにしたNのこと
hoyo
1
400
20140822_DITS4LT
hoyo
1
530
20140125_Titanium新年会LT
hoyo
0
440
Other Decks in Programming
See All in Programming
Oxlint JS plugins
kazupon
1
980
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
750
Raku Raku Notion 20260128
hareyakayuruyaka
0
350
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
高速開発のためのコード整理術
sutetotanuki
1
410
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
480
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
310
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
dchart: charts from deck markup
ajstarks
3
1k
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
730
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
690
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.2k
HDC tutorial
michielstock
1
390
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
260
Typedesign – Prime Four
hannesfritz
42
2.9k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7k
Navigating Weather and Climate Data
rabernat
0
110
Facilitating Awesome Meetings
lara
57
6.8k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
270
Writing Fast Ruby
sferik
630
62k
The Curse of the Amulet
leimatthew05
1
8.7k
Transcript
None
None
• • • • •
None
None
None
None
None
<Alloy> <Collection src="book" /> <Window class="container"> <TableView dataCollection="book" dataTransform="transformFunction"> <TableViewRow
title="{title}" /> </TableView> </Window> </Alloy> $.index.open(); function transformFunction(model) { var transform = model.toJSON(); transform.title = '[' + transform.title + '] by ' + transform.author; return transform; } Alloy.Collections.book.fetch(); sample.xml • • sample.js
<Alloy> <Model src="session" /> <Window class="container"> <View> <Label id="userName" text="{session.userName}"
/> </View> </Window> </Alloy> $.index.open(); Alloy.Models.session.fetch(); sample.xml • • sample.js
None
None
None
None
None
// 略 var __alloyId70 = function() { $.__alloyId66.text = _.isFunction(Alloy.Models.session.transform)
? Alloy.Models.session.transform().userName : Alloy.Models.session.get("userName"); }; Alloy.Models.session.on("fetch change destroy", __alloyId70); // 略 sample.js • • •
extendModel: function(Model) { _.extend(Model.prototype, { transform: function() { var model
= this.toJSON(); if (_.isEmpty(model.userName)) { model.userName = 'Guest'; } return model; } }); // end extend return Model; }, session.js • • • •
• • •
• • •
None