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

Dernier (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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...
 
[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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

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/