Permalink
..
Failed to load latest commit information.
development Move positioning sample to dev Feb 19, 2018
packaging RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
potato_chopping Implemented show and hide methods. But they are available for image e… Oct 17, 2012
sounds RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
unsupported RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
README.md Revise sample running tasks, write a README Feb 19, 2018
avatar.png Further sample tweaks for static file move to shoes-core Nov 26, 2014
blue-box.png Better examples of using image patterns Apr 29, 2015
class-book.yaml Add files from brown shoes May 25, 2012
cy.png Implemented Shoes.url. Try out sample35.rb. Nov 14, 2012
expert_class_book.rb Enough with the good prefix... Feb 19, 2018
expert_clock.rb Enough with the good prefix... Feb 19, 2018
expert_definr.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
expert_follow.rb Enough with the good prefix... Feb 19, 2018
expert_funnies.rb Remove busted comic link, put back another Feb 19, 2018
expert_game_of_life.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
expert_irb.rb Rubocop: Style/FormatStringToken Nov 25, 2017
expert_minesweeper.rb Rubocop: Style/GuardClause Nov 28, 2017
expert_othello.rb Rubocop: Style/GuardClause Nov 28, 2017
expert_pong.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
expert_potato_chopping.rb Enough with the good prefix... Feb 19, 2018
expert_psychidelic_circles.rb Enough with the good prefix... Feb 19, 2018
expert_reminder.rb Enough with the good prefix... Feb 19, 2018
expert_snake.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
expert_tankspank.rb Rubocop: Style/GuardClause Nov 28, 2017
expert_tetris.rb Rubocop: Style/GuardClause Nov 28, 2017
expert_vjot.rb Enough with the good prefix... Feb 19, 2018
loogink.png Implemented Shoes.url. Try out sample35.rb. Nov 14, 2012
menu-corner1.png Move sample images to samples directory for samples/simple-form.rb Nov 26, 2014
menu-corner2.png Move sample images to samples directory for samples/simple-form.rb Nov 26, 2014
menu-gray.png Move sample images to samples directory for samples/simple-form.rb Nov 26, 2014
menu-left.png Move sample images to samples directory for samples/simple-form.rb Nov 26, 2014
menu-right.png Move sample images to samples directory for samples/simple-form.rb Nov 26, 2014
menu-top.png Move sample images to samples directory for samples/simple-form.rb Nov 26, 2014
nks_booklist.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_breadsticks.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_dancing_circle.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_dictionary.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_edit_box.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_edit_line.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_notes.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_poem.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_self.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_text_sizes.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
nks_trurl.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
red-box.png Better examples of using image patterns Apr 29, 2015
simple-form.shy Add files from brown shoes May 25, 2012
simple_accordion.rb RuboCop Auto Correct: Layout/IndentHeredoc Nov 7, 2017
simple_alert.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_altered_para.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_anim_shapes.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_anim_text.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_animate.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_another_bounce.rb Enough with the good prefix... Feb 19, 2018
simple_arc.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_border_image.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_borderless.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_bounce.rb Darker background color for bounce sample Feb 19, 2018
simple_brightness_transitions.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_button_animate.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_calc.rb RuboCop Auto Correct: Style/PercentLiteralDelimiters Nov 7, 2017
simple_clipboard.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_color_selector.rb Set the initial selection correctly Feb 19, 2018
simple_color_transitions.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_concentric_circles.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_console.rb RuboCop Auto Correct: Style/PercentLiteralDelimiters Nov 7, 2017
simple_control_sizes.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_count_and_draw.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_curve.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_dialogs.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_dialogs_outside.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_displace.rb Enough with the good prefix... Feb 19, 2018
simple_downloader.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_draw.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_editor.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_face.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_flashing.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_flow_wrap.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_font.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_form.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_fullscreen.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_gradient_shapes.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_guess_game.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_image_as_stroke.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_image_dl.rb Enough with the good prefix... Feb 19, 2018
simple_image_fill.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_image_stroke.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_iterated_content.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_keypress.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_loogink_cy.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_lorem_ipsum.rb Add centered text to make lorem more useful Feb 19, 2018
simple_manual.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_menu.rb Rubocop: Style/GuardClause Nov 28, 2017
simple_mouse_follow.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_moving_arc.rb Better naming for arc sample Feb 19, 2018
simple_oval.rb More colorful ovals Feb 19, 2018
simple_polygon_line.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_progress_bar.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_rainbow.rb rubocop. and better comments. Dec 7, 2017
simple_random_bubbles.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_sample_executor_all.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_scroll.rb Recalculate height on getting scroll_max Nov 9, 2017
simple_sesame_street_shoes.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_shoes_intro.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_slide.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_star.rb handle center points for stars with centered styling. Jan 17, 2018
simple_stripes.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_system_background.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_text_movement.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_tictactoe.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_timer.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_translate.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_visibility.rb RuboCop Auto Correct: Layout/EmptyLineAfterMagicComment Nov 7, 2017
simple_visit.rb Rubocop's the boss around here Jan 21, 2018

README.md

Shoes Samples

Welcome to the Shoes Samples! The Ruby files immediately in this directory are meant to show off what Shoes can do for newcomers and experienced folks alike.

You can run the samples via:

bundle exec rake samples

Got a new sample for everyone? Put it in this directory!

Naming

There are three basic naming forms for the samples:

  • simple_* shouldn't be more than a handful of lines, typically demonstrating one concept/method.
  • expert_* are more fully formed apps. Go wild!
  • nks_* are samples from _why's "Nobody Knows Shoes"

The line between simple and expert is a little arbitrary, but new samples should pick one or the other.

Other Directories

Code in subdirectories isn't picked up by default, but you can force all the samples to run via:

bundle exec rake samples:all

We have a couple directories:

  • development contains samples of interest to the Shoes team, but not much for everyone else
  • packaging contains subfolders so we can easily test packaging without picking up all the samples in the bundle.
  • sounds contains some samples with large audio files we also don't want bundled up in the shoes gem
  • unsupported contains a small set of samples that older versions of Shoes allowed but aren't anymore. These are kept for historical reference and with hope to someday move them out!