Tying Your Shoes

42
Tying Your Shoes A Whirlwind Guide To v z

Transcript of Tying Your Shoes

Page 1: Tying Your Shoes

Tying Your ShoesA Whirlwind Guide Tov

z

Page 2: Tying Your Shoes

What Is Shoes ?T

Page 3: Tying Your Shoes

A Little Historyd

Page 4: Tying Your Shoes

A Little Historyd

Page 5: Tying Your Shoes

A Little Historyd

Page 6: Tying Your Shoes

A Little Historyd

Page 7: Tying Your Shoes

This Is Familiarl

Page 8: Tying Your Shoes

gem install shoese

Page 9: Tying Your Shoes

gem install shoese

NO!

Page 10: Tying Your Shoes

How Do I Get Shoes ?v

http://shoooes.net

Page 11: Tying Your Shoes

How Do I Get Shoes ?v

http://shoooes.net

beware the “o”s

Page 13: Tying Your Shoes

Shoes Is For Everyoneh

Page 14: Tying Your Shoes

Loop It, Swoop It& Pulla

How To Tie Your Shoes

p

Page 15: Tying Your Shoes

Shoes.app do

end

Page 16: Tying Your Shoes
Page 17: Tying Your Shoes

Shoes.app :title => 'Talon' do background '#fff'end

Page 18: Tying Your Shoes
Page 19: Tying Your Shoes

Shoes.app :title => 'Talon' do background '#fff' background 'talon.jpg', :bottom => 0, :right => -20 flow :width => '100%' do background '#df9', :curve => 12 title 'Talon', :stroke => '#691FFF', :align => 'center' endend

Page 20: Tying Your Shoes
Page 21: Tying Your Shoes
Page 22: Tying Your Shoes

stack :margin => ['10%', '15%', '10%', '0px'] do background '#df9', :curve => 12 title "Who goes there?", :stroke => '#691FFF', :align => 'center' # ... entries and buttons go hereend

Page 23: Tying Your Shoes

STACKS

Page 24: Tying Your Shoes

STACKS

Page 25: Tying Your Shoes

iFlows

Page 26: Tying Your Shoes
Page 27: Tying Your Shoes

flow do stack :width => '150px' do para 'Nom de tweet' end @user_box = edit_line :width => '-170px' stack :width => '150px' do para 'Sekrit' end @pass_box = edit_line :width => '-170px', :secret => trueendbutton 'That is who I am!', :width => '100%' do do_loginend

Page 28: Tying Your Shoes

Shoes & Gemsz

Page 29: Tying Your Shoes

Shoes.setup do gem 'twitter'end

require 'twitter'

Page 30: Tying Your Shoes

Shoes.setup do gem 'twitter'end

require 'twitter'

Page 31: Tying Your Shoes

def do_login user = @user_box.text pass = @pass_box.text @twitter =

Twitter::Base.new(user, pass) begin @twitter.verify_credentials @login.hide show_logged_in_timeline rescue Twitter::CantConnect => e incorrect_login endend

Page 32: Tying Your Shoes

def incorrect_login if @incorrect_login_anim.nil? @incorrect_login_anim = animate do |i| @login.displace((Math.sin(i) * 6).to_i, 0) end end @incorrect_login_anim.start timer(2) do @incorrect_login_anim.stop @login.displace(0,0) endend

Page 33: Tying Your Shoes

def incorrect_login if @incorrect_login_anim.nil? @incorrect_login_anim = animate do |i| @login.displace((Math.sin(i) * 6).to_i, 0) end end @incorrect_login_anim.start timer(2) do @incorrect_login_anim.stop @login.displace(0,0) endend

Page 34: Tying Your Shoes

def incorrect_login if @incorrect_login_anim.nil? @incorrect_login_anim = animate do |i| @login.displace((Math.sin(i) * 6).to_i, 0) end end @incorrect_login_anim.start timer(2) do @incorrect_login_anim.stop @login.displace(0,0) endend

Page 35: Tying Your Shoes

TyingMore Complicated

Knotsd

Page 36: Tying Your Shoes

Drawingk

Page 37: Tying Your Shoes

Custom Controlsv

Page 38: Tying Your Shoes

Organising Your Shoesw

Page 39: Tying Your Shoes

Organising Your Shoesw

class Book < Shoes url '/', :index url '/incidents/(\d+)', :incident

def index incident(0) end # More code goes here...

Page 40: Tying Your Shoes

Packaging Your Appi

Page 41: Tying Your Shoes

Find Out Moreb

“shoes --manual” or ⌘m in a Shoes apphttp://hackety.org/press - Nobody Knows Shoes

http://shoooes.net - the main placehttp://the-shoebox.org - gallery of apps

http://github.com/why/shoes - code and wikihttp://hackety.org - why’s blog

http://github.com/hlame/talon - my awesome app

Page 42: Tying Your Shoes

Without Whoma

tying shoes - http://flickr.com/photos/fil/2127072888/paint background - http://flickr.com/photos/shaireproductions/2315054854/

html book - http://flickr.com/photos/ianlloyd/2542795166/ruby gemstone - http://flickr.com/photos/alphadesigner/354936159/

3-eyelet brogue - http://flickr.com/photos/diamondgeyser/3028055172/old poster - http://flickr.com/photos/ulikleafar/2146994022/

matches - http://flickr.com/photos/bitzi/265057397/ruby books - http://flickr.com/photos/maguisso/1028969342/jewelled shoes - http://flickr.com/photos/roaz/2279682461/packages - http://flickr.com/photos/pleasewait/476789507/drawing - http://flickr.com/photos/squintlog/272876653/

control panel - http://flickr.com/photos/electropod/2922782588/