SlideShare une entreprise Scribd logo
1  sur  42
Télécharger pour lire hors ligne
A Whirlwind Guidev
                 To

Tying Yourz
          Shoes
What Is ShoesT?
A Little Historyd
A Little Historyd
A Little Historyd
A Little Historyd
This Is Familiarl
gem installe
           shoes
gem installe
           shoes




   NO!
How Do I Get Shoesv?

        http://shoooes.net
How Do I Get Shoesv?

           http://shoooes.net

 beware
the “o”s
How Do I Get Shoesv?

           http://shoooes.net
                    123
 beware          1       3
the “o”s             2
             3 “o”s in shoooes
           3 eyelets in a shoe
Shoes Is ForhEveryone
How To TiepYour
        Shoes
 Loop It, Swoop It
      & Pulla
Shoes.app do

end
Shoes.app :title => 'Talon' do
  background '#fff'
end
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'
  end
end
stack :margin => ['10%', '15%',
'10%', '0px'] do
  background '#df9', :curve => 12
  title quot;Who goes there?quot;,
        :stroke => '#691FFF',
        :align => 'center'
  # ... entries and buttons go here
end
S
T
A
C
K
S
S
T
A
C
K
S
Flowsi
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 => true
end
button 'That is who I am!', :width => '100%' do
  do_login
end
Shoes & Gemsz
Shoes.setup do
  gem 'twitter'
end

require 'twitter'
Shoes.setup do
  gem 'twitter'
end

require 'twitter'
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
  end
end
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)
  end
end
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)
  end
end
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)
  end
end
Tying
More Complicatedd
         Knots
Drawingk
Custom Controlsv
Organising YourwShoes
Organising YourwShoes

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

  def index
    incident(0)
  end

  # More code goes here...
Packaging YouriApp
Find Out Moreb

    “shoes --manual” or ⌘m in a Shoes app
http://hackety.org/press - Nobody Knows Shoes
       http://shoooes.net - the main place
     http://the-shoebox.org - gallery of apps
  http://github.com/why/shoes - code and wiki
         http://hackety.org - why’s blog

http://github.com/hlame/talon - my awesome app
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/

Contenu connexe

Tendances

Pure boomark list947
Pure boomark list947Pure boomark list947
Pure boomark list947
Tony Brush
 
Using HTML5 for a great Open Web
Using HTML5 for a great Open WebUsing HTML5 for a great Open Web
Using HTML5 for a great Open Web
Robert Nyman
 
Good web designs
Good web designsGood web designs
Good web designs
kidmanmatch
 
Five things for you - Yahoo developer offers
Five things for you - Yahoo developer offersFive things for you - Yahoo developer offers
Five things for you - Yahoo developer offers
Christian Heilmann
 

Tendances (16)

博客积累
博客积累博客积累
博客积累
 
How to Remove Search-offersbar.com For Free
How to Remove Search-offersbar.com For FreeHow to Remove Search-offersbar.com For Free
How to Remove Search-offersbar.com For Free
 
Pure boomark list947
Pure boomark list947Pure boomark list947
Pure boomark list947
 
Performance mufflers
Performance mufflersPerformance mufflers
Performance mufflers
 
metodologia integradora
metodologia integradorametodologia integradora
metodologia integradora
 
Al Fazl International - 26th February 2016 Weekly UK
Al Fazl International - 26th  February  2016 Weekly UKAl Fazl International - 26th  February  2016 Weekly UK
Al Fazl International - 26th February 2016 Weekly UK
 
Chala
ChalaChala
Chala
 
Flex入門
Flex入門Flex入門
Flex入門
 
Using HTML5 for a great Open Web
Using HTML5 for a great Open WebUsing HTML5 for a great Open Web
Using HTML5 for a great Open Web
 
List of search engines 2012
List of search engines 2012List of search engines 2012
List of search engines 2012
 
Good web designs
Good web designsGood web designs
Good web designs
 
Cenone capodanno
Cenone capodannoCenone capodanno
Cenone capodanno
 
Five things for you - Yahoo developer offers
Five things for you - Yahoo developer offersFive things for you - Yahoo developer offers
Five things for you - Yahoo developer offers
 
masterbet99.co adalah Agen Bandar Judi Bola Online Terpercaya di Indonesia
masterbet99.co adalah Agen Bandar Judi Bola Online Terpercaya di Indonesia masterbet99.co adalah Agen Bandar Judi Bola Online Terpercaya di Indonesia
masterbet99.co adalah Agen Bandar Judi Bola Online Terpercaya di Indonesia
 
Ancient Greek Poems
Ancient Greek PoemsAncient Greek Poems
Ancient Greek Poems
 
1991 clasificatoria
1991 clasificatoria1991 clasificatoria
1991 clasificatoria
 

Similaire à Tying Your Shoes

Lecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITPLecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITP
yucefmerhi
 
Rails 3 And The Real Secret To High Productivity Presentation
Rails 3 And The Real Secret To High Productivity PresentationRails 3 And The Real Secret To High Productivity Presentation
Rails 3 And The Real Secret To High Productivity Presentation
railsconf
 
Itsecteam shell
Itsecteam shellItsecteam shell
Itsecteam shell
ady36
 

Similaire à Tying Your Shoes (20)

Front End on Rails
Front End on RailsFront End on Rails
Front End on Rails
 
2016 First steps with Angular 2 – enterjs
2016 First steps with Angular 2 – enterjs2016 First steps with Angular 2 – enterjs
2016 First steps with Angular 2 – enterjs
 
Playing With The Web
Playing With The WebPlaying With The Web
Playing With The Web
 
SlideShare Instant
SlideShare InstantSlideShare Instant
SlideShare Instant
 
SlideShare Instant
SlideShare InstantSlideShare Instant
SlideShare Instant
 
Illuminated Hacks -- Where 2.0 101 Tutorial
Illuminated Hacks -- Where 2.0 101 TutorialIlluminated Hacks -- Where 2.0 101 Tutorial
Illuminated Hacks -- Where 2.0 101 Tutorial
 
YQL talk at OHD Jakarta
YQL talk at OHD JakartaYQL talk at OHD Jakarta
YQL talk at OHD Jakarta
 
Evolution of API With Blogging
Evolution of API With BloggingEvolution of API With Blogging
Evolution of API With Blogging
 
August 10th, 2009 Pete De Mulle Twitter
August 10th, 2009 Pete De Mulle TwitterAugust 10th, 2009 Pete De Mulle Twitter
August 10th, 2009 Pete De Mulle Twitter
 
FVCP - Facebook , Twitter and Meetup API / Widgets
FVCP - Facebook , Twitter and Meetup API / WidgetsFVCP - Facebook , Twitter and Meetup API / Widgets
FVCP - Facebook , Twitter and Meetup API / Widgets
 
Spyware/Malware FVCP
Spyware/Malware  FVCPSpyware/Malware  FVCP
Spyware/Malware FVCP
 
LAMP_TRAINING_SESSION_6
LAMP_TRAINING_SESSION_6LAMP_TRAINING_SESSION_6
LAMP_TRAINING_SESSION_6
 
Lecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITPLecture 6 - Comm Lab: Web @ ITP
Lecture 6 - Comm Lab: Web @ ITP
 
Prototípus-fejlesztés 3D nyomtatással (Balássy György és Takács Péter)
Prototípus-fejlesztés 3D nyomtatással (Balássy György és Takács Péter)Prototípus-fejlesztés 3D nyomtatással (Balássy György és Takács Péter)
Prototípus-fejlesztés 3D nyomtatással (Balássy György és Takács Péter)
 
Rails 3 And The Real Secret To High Productivity Presentation
Rails 3 And The Real Secret To High Productivity PresentationRails 3 And The Real Secret To High Productivity Presentation
Rails 3 And The Real Secret To High Productivity Presentation
 
Best practices in museum search
 Best practices in museum search Best practices in museum search
Best practices in museum search
 
Zero to Sixty: AWS Elastic Beanstalk (DMG204) | AWS re:Invent 2013
Zero to Sixty: AWS Elastic Beanstalk (DMG204) | AWS re:Invent 2013Zero to Sixty: AWS Elastic Beanstalk (DMG204) | AWS re:Invent 2013
Zero to Sixty: AWS Elastic Beanstalk (DMG204) | AWS re:Invent 2013
 
Mojolicious on Steroids
Mojolicious on SteroidsMojolicious on Steroids
Mojolicious on Steroids
 
Itsecteam shell
Itsecteam shellItsecteam shell
Itsecteam shell
 
Data Citation from the perspective of tracking data reuse
Data Citation from the perspective of tracking data reuseData Citation from the perspective of tracking data reuse
Data Citation from the perspective of tracking data reuse
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Tying Your Shoes

  • 1. A Whirlwind Guidev To Tying Yourz Shoes
  • 8. gem installe shoes
  • 9. gem installe shoes NO!
  • 10. How Do I Get Shoesv? http://shoooes.net
  • 11. How Do I Get Shoesv? http://shoooes.net beware the “o”s
  • 12. How Do I Get Shoesv? http://shoooes.net 123 beware 1 3 the “o”s 2 3 “o”s in shoooes 3 eyelets in a shoe
  • 14. How To TiepYour Shoes Loop It, Swoop It & Pulla
  • 16.
  • 17. Shoes.app :title => 'Talon' do background '#fff' end
  • 18.
  • 19. 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' end end
  • 20.
  • 21.
  • 22. stack :margin => ['10%', '15%', '10%', '0px'] do background '#df9', :curve => 12 title quot;Who goes there?quot;, :stroke => '#691FFF', :align => 'center' # ... entries and buttons go here end
  • 26.
  • 27. 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 => true end button 'That is who I am!', :width => '100%' do do_login end
  • 29. Shoes.setup do gem 'twitter' end require 'twitter'
  • 30. Shoes.setup do gem 'twitter' end require 'twitter'
  • 31. 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 end end
  • 32. 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) end end
  • 33. 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) end end
  • 34. 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) end end
  • 39. Organising YourwShoes class Book < Shoes url '/', :index url '/incidents/(d+)', :incident def index incident(0) end # More code goes here...
  • 41. Find Out Moreb “shoes --manual” or ⌘m in a Shoes app http://hackety.org/press - Nobody Knows Shoes http://shoooes.net - the main place http://the-shoebox.org - gallery of apps http://github.com/why/shoes - code and wiki http://hackety.org - why’s blog http://github.com/hlame/talon - my awesome app
  • 42. 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/