Permalink
Browse files

Renaming and cleaning up crappy / blank sheets

  • Loading branch information...
tj committed Oct 22, 2009
1 parent 7025365 commit 3d06a29e4059f94633ff8ac13c2e88bed21500c6
Showing with 9 additions and 5,242 deletions.
  1. +0 −20 bash.complete.sheet
  2. 0 elad.sheet
  3. 0 emacs_basics.sheet → emacs.basics.sheet
  4. 0 emacs_psvn.sheet → emacs.psvn.sheet
  5. 0 emacs_slime.sheet → emacs.slime.sheet
  6. 0 emacs_tips.sheet → emacs.tips.sheet
  7. +0 −18 environments.sheet
  8. 0 fela.sheet
  9. +0 −3 foo.sheet
  10. +7 −0 fopen.sheet
  11. +0 −3 form_for.sheet
  12. +0 −28 gazpacho.sheet
  13. +0 −35 gem.sheet
  14. 0 gitsvn.sheet → git.svn.sheet
  15. 0 gmail.sheet → google.gmail.sheet
  16. 0 greader.sheet → google.reader.sheet
  17. +0 −33 gtd.sheet
  18. 0 has_and_belongs_to_many.sheet
  19. +0 −38 has_many.sheet
  20. +0 −12 has_one.sheet
  21. +0 −3 help.sheet
  22. +0 −23 highline.sheet
  23. 0 hobo_template.sheet
  24. +0 −111 htaccess4.sheet
  25. +0 −252 html.entity.sheet
  26. +0 −1,277 iana_port_list.sheet
  27. +0 −7 iomodes.sheet
  28. +0 −57 jedit_ruby_editor_plugin.sheet
  29. 0 prototype.sheet → js.prototype.sheet
  30. +0 −23 kenzu_ryu.sheet
  31. 0 leopard.sheet
  32. +0 −2 less.sheet
  33. +0 −9 lighthouse.sheet
  34. +0 −10 link_to_remote.sheet
  35. +0 −23 linux_network_boot.sheet
  36. 0 pddd.sheet → lisp.emacs.pddd.sheet
  37. +0 −3 ln.sheet
  38. +0 −719 lotus_domino_url.sheet
  39. +0 −2 ls.sheet
  40. +0 −3 mac_glyphs.sheet
  41. +0 −24 matz_bot.sheet
  42. +0 −8 merb.sheet
  43. 0 microformats_helper.sheet → microformats.sheet
  44. +0 −19 military_alphabet.sheet
  45. 0 mktime.sheet
  46. +0 −36 permalink_fu.sheet
  47. +0 −8 radrails.sheet
  48. +0 −205 radrails_rhtml.sheet
  49. +0 −787 radrails_ruby.sheet
  50. +0 −15 rails.edge.sheet
  51. +0 −55 rails.environment.sheet
  52. +0 −39 ratpoison.sheet
  53. 0 readme.sheet
  54. +0 −11 regex_lib.sheet
  55. +0 −42 rjs.sheet
  56. 0 rubyio.sheet → ruby-io-comparison.sheet
  57. +0 −43 ruby.$.sheet
  58. 0 migrations.sheet → ruby.activerecord.migrations.sheet
  59. 0 rubydebug.sheet → ruby.debug.sheet
  60. 0 enumerable.sheet → ruby.enumerable.sheet
  61. 0 exceptions.sheet → ruby.exceptions.sheet
  62. 0 globals.sheet → ruby.globals.sheet
  63. 0 gruff.sheet → ruby.gruff.sheet
  64. 0 hobo.sheet → ruby.hobo.sheet
  65. 0 hpricot.sheet → ruby.hpricot.sheet
  66. 0 status_codes.sheet → ruby.http.status.sheet
  67. 0 irb.sheet → ruby.irb.sheet
  68. 0 markaby.sheet → ruby.markaby.sheet
  69. 0 mocha.sheet → ruby.mocha.sheet
  70. 0 ruby1line.sheet → ruby.oneliners.sheet
  71. 0 passenger.sheet → ruby.passenger.sheet
  72. 0 rubyprof.sheet → ruby.profiling.sheet
  73. 0 rails.console.sheet → ruby.rails.console.sheet
  74. 0 rails.migrations.sheet → ruby.rails.migrations.sheet
  75. 0 rails.plugin_creation.sheet → ruby.rails.plugin_creation.sheet
  76. 0 rails.rake_tasks.sheet → ruby.rails.rake_tasks.sheet
  77. 0 rails.request_object.sheet → ruby.rails.request_object.sheet
  78. 0 rails.reserved_words.sheet → ruby.rails.reserved_words.sheet
  79. 0 rest.sheet → ruby.rails.rest.sheet
  80. 0 rails.routes.sheet → ruby.rails.routes.sheet
  81. 0 rails.sheet → ruby.rails.sheet
  82. 0 rails.svn.sheet → ruby.rails.svn.sheet
  83. 0 rails.tasks.sheet → ruby.rails.tasks.sheet
  84. 0 rails.tips.sheet → ruby.rails.tips.sheet
  85. 0 rails.to_s.sheet → ruby.rails.to_s.sheet
  86. 0 rails.vim.sheet → ruby.rails.vim.sheet
  87. 0 rdebug.sheet → ruby.rdebug.sheet
  88. 0 rdoc.sheet → ruby.rdoc.sheet
  89. 0 readline.sheet → ruby.readline.sheet
  90. 0 regex.sheet → ruby.regexp.sheet
  91. 0 rope.sheet → ruby.rope.sheet
  92. 0 rspec_formats.sheet → ruby.rspec.formats.sheet
  93. 0 rspec.sheet → ruby.rspec.sheet
  94. 0 sake.sheet → ruby.sake.sheet
  95. 0 scrapi.sheet → ruby.scrapi.sheet
  96. 0 sequel.sheet → ruby.sequel.sheet
  97. 0 shoes.sheet → ruby.shoes.sheet
  98. 0 shoulda.sheet → ruby.shoulda.sheet
  99. 0 sti.sheet → ruby.sti.sheet
  100. 0 string.sheet → ruby.string.sheet
  101. 0 string_unpack.sheet → ruby.string.unpack.sheet
  102. 0 tempfile.sheet → ruby.tempfile.sheet
  103. +0 −6 runescape.sheet
  104. +0 −10 scaffold_resource.sheet
  105. +0 −14 sed.delete.sheet
  106. +0 −3 sed.numbering.sheet
  107. +0 −3 sed.spacing.sheet
  108. +0 −6 selenium.sheet
  109. +0 −22 selenium_on_rails.sheet
  110. +0 −6 semweb.sheet
  111. +0 −27 seo.sheet
  112. 0 sness.sheet
  113. +0 −20 solaris_smf.sheet
  114. 0 spc.sheet
  115. +0 −3 sprintf.sheet
  116. +0 −3 strptime.sheet
  117. 0 svnmerge.sheet → svn.merge.sheet
  118. +2 −11 symlink.sheet
  119. +0 −3 syntax.sheet
  120. 0 tcpdump.sheet
  121. 0 test.sheet
  122. +0 −3 test2.sheet
  123. +0 −29 test_spec.sheet
  124. +0 −106 test_spec_rails.sheet
  125. +0 −28 test_unit.sheet
  126. +0 −4 testtesttest.sheet
  127. +0 −16 textmate_rails.sheet
  128. +0 −24 textmate_ruby.sheet
  129. +0 −22 twitterrific.sheet
  130. +0 −212 ubyubyuby.sheet
  131. 0 unix_text.sheet → unix.text-editing.sheet
  132. +0 −36 validations.sheet
  133. +0 −7 vi.sheet
  134. +0 −18 vim.folding.sheet
  135. +0 −136 vim.sheet
  136. +0 −24 vim_goodies.sheet
  137. +0 −81 watir_ie.sheet
  138. +0 −10 websphere.sheet
  139. +0 −12 win32_sc.sheet
  140. +0 −18 wmii3.sheet
  141. 0 word.sheet
  142. +0 −261 wxd.sheet
  143. +0 −18 xmonad.sheet
  144. +0 −19 xpath_result_type.sheet
  145. 0 yui_fonts.sheet → yui.fonts.sheet
  146. 0 yui_grids.sheet → yui.grids.sheet
  147. 0 zsh.case.sheet
  148. +0 −15 zsh.modifiers.sheet
View
@@ -1,20 +0,0 @@
- # mategem. complete with installed gem directories
- _mategem()
- {
- local curw
- COMPREPLY=()
- curw=${COMP_WORDS[COMP_CWORD]}
- local gems="$(gem environment gemdir)/gems"
- COMPREPLY=($(compgen -W '$(ls $gems)' -- $curw));
- return 0
- }
- complete -F _mategem -o dirnames mategem
-
- # chit
- _chit()
- {
- COMPREPLY=($(compgen -W '$(chit all)' -- ${COMP_WORDS[COMP_CWORD]}));
- return 0
- }
- complete -F _chit chit
-
View
No changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,18 +0,0 @@
- From http://glu.ttono.us/articles/2006/05/22/configuring-rails-environments-the-cheat-sheet\r\n\
- \r\n\
- General Options\r\n breakpoint_server\r\n Whether or not to use the breakpoint server (boolean)\r\n cache_classes\r\n Whether or not classes should be cached (set to false if you want application classes to be reloaded on each request) \r\n connection_adapters \r\n The list of connection adapters to load.\r\n By default, all connection adapters are loaded. You can set this to be just the adapter(s) you will use to reduce your application\xE2\x80\x99s load time. \r\n controller_paths\r\n The list of paths that should be searched for controllers.\r\n Defaults to app/controllers and components.\r\n database_configuration_file\r\n The path to the database configuration file to use.\r\n Defaults to config/database.yml.\r\n frameworks\r\n The list of rails framework components that should be loaded.\r\n Defaults to :active_record, :action_controller, :action_view, :action_mailer, and \r\n :action_web_service.\r\n load_paths\r\n An array of additional paths to prepend to the load path.\r\n By default, all app, lib, vendor and mock paths are included in this list.\r\n log_level\r\n The log level to use for the default Rails logger.\r\n In production mode, this defaults to :info. In development mode, it defaults to :debug.\r\n log_path\r\n The path to the log file to use.\r\n Defaults to log/#{environment}.log (e.g. log/development.log or log/production.log).\r\n logger\r\n The specific logger to use.\r\n By default, a logger will be created and initialized using #log_path and #log_level, but a programmer may specifically set the logger to use via this accessor and it will be used directly.\r\n view_path\r\n The root of the application's views.\r\n Defaults to app/views.\r\n whiny_nils\r\n Set to true if you want to be warned (noisily) when you try to invoke any method of nil. \r\n Set to false for the standard Ruby behavior.\r\n plugin_paths\r\n The path to the root of the plugins directory.\r\n By default, it is in vendor/plugins.\r\n\
- \r\n\
- ActiveRecord Options\r\n\
- Each of these options should be prepended with config.active_record. when \r\n\
- used with a Rails::Initializer do |config| block.\r\n\
- \r\n primary_key_prefix_type\r\n Accessor for the prefix type that will be prepended to every primary key column name. \r\n The options are :table_name and :table_name_with_underscore. If the first is specified, the Product class will look for \"productid\" instead of \"id\" as the primary column. If the latter is specified, the Product class will look for \"product_id\" instead of \"id\". Remember that this is a global setting for all Active Records.\r\n table_name_prefix\r\n The string to prepend to every table name.\r\n By default, the prefix is an empty string\r\n table_name_suffix\r\n The same as table_name_prefix, but it appends the string to the table name.\r\n pluralize_table_names\r\n Indicates whether or not table names should be the pluralized versions of the corresponding class names.\r\n Defaults to true.\r\n colorize_logging\r\n Should logs have ANSI color codes in logging statments?\r\n Defaults to true\r\n default_timezone\r\n Determines whether to use Time.local (using :local) or Time.utc (using :utc) when pulling dates and times from the database.\r\n Defaults to :local by default.\r\n allow_concurrency\r\n Determines whether or not to use a connection for each thread, or a single shared connection for all threads.\r\n Defaults to false. Set to true if you're writing a threaded application.\r\n generate_read_methods\r\n Determines whether to speed up access by generating optimized reader methods to avoid expensive calls to method_missing when accessing attributes by name. \r\n You might want to set this to false in development mode, because the methods would be regenerated on each request.\r\n schema_format\r\n Specifies whether to dump the database in ruby or sql. It takes :ruby or :sql as options, and defaults to :ruby\r\n\
- \r\n\
- ActionController Options\r\n\
- Each of these options should be prepended with config.action_controller. when \r\n\
- used with a Rails::Initializer do |config| block.\r\n\
- \r\n view_controller_internals\r\n Determines whether the view has access to controller internals @request, @response, @session, and @template.\r\n assert_host\r\n Prepends all the URL-generating helpers from AssetHelper (eg. image_tag)\r\n consider_all_requests_local\r\n All requests are considered local by default (true), so everyone will be exposed to \r\n detailed debugging screens on errors.\r\n Defaults to true\r\n debug_routes\r\n Enable or disable the collection of failure information for RoutingErrors.\r\n Defaults to true.\r\n allow_concurrency\r\n Controls whether the application is thread-safe.\r\n Defaults to false.\r\n param_parsers\r\n Lets you register handlers wich will process the http body and add parameters to the @params hash.\r\n Defaults to { Mime::XML => :xml_simple }\r\n template_root\r\n Sets the default template location. For example, a call to render(\"test/template\") \r\n will be converted to \"#{template_root}/test/template.rhtml\" logger\r\n Can be set to nil for no logging or a logger conforming to the interface of Log4r or the default Ruby 1.8+ Logger class.\r\n ignore_missing_templates\r\n Turn on ignore_missing_templates if you want to unit test actions without making the associated templates.\r\n\
- \r\n\
- ActionView Options\r\n\
- Each of these options should be prepended with config.action_view. when \r\n\
- used with a Rails::Initializer do |config| block.\r\n\
- \r\n cache_template_loading\r\n Specify whether file modification times should be checked to see if a template needs recompilation\r\n cache_template_extensions\r\n Specify whether file extension lookup should be cached. Should be false for development environments.\r\n Defaults to true.\r\n local_assigns_support_string_keys\r\n Specify whether local_assigns should be able to use string keys.\r\n Defaults to true.\r\n String keys are deprecated and will be removed shortly.\r\n debug_rjs\r\n Specify whether RJS responses should be wrapped in a try/catch block that alert()s \r\n the caught exception (and then re-raises it).\r\n Defaults to false.\r\n logger\r\n Can be set to nil for no logging or a logger conforming to the interface of Log4r or the default Ruby 1.8+ Logger class.\r\n"
View
No changes.
View
@@ -1,3 +0,0 @@
- FOO SHEET
- ----------
- TTHis is the foo sheet THis is the foo sheet THis is the foo sheet THis is the foo sheet THis is the foo sheet THis is the foo sheet THis is the foo sheet His is the foo sheet
View
@@ -0,0 +1,7 @@
+ "r" Read-only, starts at beginning of file (default mode).
+ "r+" Read-write, starts at beginning of file.
+ "w" Write-only, truncates existing file to zero length or creates a new file for writing.
+ "w+" Read-write, truncates existing file to zero length or creates a new file for reading and writing.
+ "a" Write-only, starts at end of file if file exists, otherwise creates a new file for writing.
+ "a+" Read-write, starts at end of file if file exists, otherwise creates a new file for reading and writing.
+ "b" (DOS/Windows only) Binary file mode (may appear with any of the key letters listed above).
View
@@ -1,3 +0,0 @@
- form_for :table do |table|
- table.text_field :table_field
- end
View
@@ -1,28 +0,0 @@
- ========\r\n\
- Gazpacho soup, usually simply referred to as gazpacho, is a cold Spanish soup originating in the Southern region of Andalusia. It is widely consumed throughout Spain, neighboring Portugal (where it is known as gaspacho) and certain Latin American countries. It descends from an ancient Andalusian concoction based on a combination of stale bread, garlic, olive oil, salt, and vinegar \xE2\x80\x94 a cold breadsoup. With the Columbian Exchange beginning in 1492, the tomato and the bell pepper were brought to Europe.\r\n\
- \r\n\
- INGREDIENTS\r\n\
- ===========\r\n\
- * 6 ripe tomatoes, peeled and chopped\r\n\
- * 1 purple onion, finely chopped\r\n\
- * 1 cucumber, peeled, seeded, chopped\r\n\
- * 1 sweet red bell pepper (or green) seeded and chopped\r\n\
- * 2 stalks celery, chopped\r\n\
- * 1-2 Tbsp chopped fresh parsley\r\n\
- * 2 Tbsp chopped fresh chives\r\n\
- * 1 clove garlic, minced\r\n\
- * 1/4 cup red wine vinegar\r\n\
- * 1/4 cup olive oil\r\n\
- * 2 Tbsp freshly squeezed lemon juice\r\n\
- * 2 teaspoons sugar\r\n\
- * Salt and fresh ground pepper to taste\r\n\
- * 6 or more drops of Tabasco sauce to taste\r\n\
- * 1 teaspoon Worcestershire sauce (omit for vegetarian option)\r\n\
- * 4 cups tomato juice\r\n\
- \r\n\
- METHOD\r\n\
- ======\r\n\
- Combine all ingredients. Blend slightly, to desired consistency. Place in non-metal, non-reactive storage container, cover tightly and refrigerate overnight, allowing flavors to blend.\r\n\
- Serves 8.\r\n\
- \r\n\
- [Sample recipe courtesy of http://www.elise.com/recipes/archives/000603gazpacho.php]"
View
@@ -1,35 +0,0 @@
- Install a gem
-
- gem install [gem name]
-
- Update to latest Rubygems (if any):
-
- gem update --system
-
- Get list of outdated gems and update as necessary:
-
- gem outdated
-
- Clean up outdated gems:
-
- gem clean
-
- Current Local Gem Repository:
-
- gem environment
-
- or
-
- ruby -rrubygems -e"puts Gem.path"
-
- Discover Dependency for a Gem:
-
- gem dependency [gem name]
-
- Don't generate Ri and RDoc when installing gems:
-
- gem install [gem name] --no-ri --no-rdoc
-
- to set this as default behavior:
-
- echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,33 +0,0 @@
- Getting Things Done (GTD)
- For more info see http://www.davidco.com/
-
- Weekly Review
- -------------
- 1. Gather all loose papers and process. For each decide to
- * Make it an action. Do it if it takes less than two minutes.
- * Trash it;
- * Add it to my Someday/Maybe list; or
- * File it for future reference.
- 2. Process any note-taking capture areas (notepads, computer-based notebooks)
- 3. Review previous week's calendar data
- 4. Review upcoming calendar
- 5. Review your action lists
- 6. Review your @WaitingFor list
- 7. Review project lists. Look for new next actions to generate.
- 8. Review Someday/Maybe lists
-
- Project verbs
- -------------
- Finalize Resolve Handle
- Look into Submit Maximize
- Organize Design Complete
- Ensure Roll out Update
- Install Implement Set-up
-
- Next-action verbs
- -------------
- Call Organize Review
- Buy Fill out Find
- Purge Look into Gather
- Print Take Waiting for
- Load Draft Email
No changes.
View
@@ -1,38 +0,0 @@
- \r\n\
- Options for has_many\r\n\
- \r\n\
- :class_name - specify the class name of the association. Use it only if that name can\xE2\x80\x99t be inferred from the association name. So has_many :products will by default be linked to the Product class, but if the real class name is SpecialProduct, you\xE2\x80\x99ll have to specify it with this option.\r\n\
- \r\n\
- :conditions - specify the conditions that the associated objects must meet in order to be included as a \"WHERE\" sql fragment, such as \"price > 5 AND name LIKE \xE2\x80\x98B%\xE2\x80\x99\".\r\n\
- \r\n\
- :order - specify the order in which the associated objects are returned as a \"ORDER BY\" sql fragment, such as \"last_name, first_name DESC\"\r\n\
- \r\n\
- :group - specify the attribute by which the associated objects are returned as a \"GROUP BY\" sql fragment, such as \"category\"\r\n\
- \r\n\
- :foreign_key - specify the foreign key used for the association. By default this is guessed to be the name of this class in lower-case and \"_id\" suffixed. So a Person class that makes a has_many association will use \"person_id\" as the default foreign_key.\r\n\
- \r\n\
- :dependent - if set to :destroy all the associated objects are destroyed alongside this object by calling their destroy method. If set to :delete_all all associated objects are deleted without calling their destroy method. If set to :nullify all associated objects\xE2\x80\x99 foreign keys are set to NULL without calling their save callbacks. NOTE: :dependent => true is deprecated and has been replaced with :dependent => :destroy. May not be set if :exclusively_dependent is also set.\r\n\
- \r\n\
- :exclusively_dependent - Deprecated; equivalent to :dependent => :delete_all. If set to true all the associated object are deleted in one SQL statement without having their before_destroy callback run. This should only be used on associations that depend solely on this class and don\xE2\x80\x99t need to do any clean-up in before_destroy. The upside is that it\xE2\x80\x99s much faster, especially if there\xE2\x80\x99s a counter_cache involved. May not be set if :dependent is also set.\r\n\
- \r\n\
- :finder_sql - specify a complete SQL statement to fetch the association. This is a good way to go for complex associations that depend on multiple tables. Note: When this option is used, find_in_collection is not added.\r\n\
- \r\n\
- :counter_sql - specify a complete SQL statement to fetch the size of the association. If +:finder_sql+ is specified but +:counter_sql+, +:counter_sql+ will be generated by replacing SELECT \xE2\x80\xA6 FROM with SELECT COUNT(*) FROM.\r\n\
- \r\n\
- :extend - specify a named module for extending the proxy, see \"Association extensions\".\r\n\
- \r\n\
- :include - specify second-order associations that should be eager loaded when the collection is loaded.\r\n\
- \r\n\
- :group: An attribute name by which the result should be grouped. Uses the GROUP BY SQL-clause.\r\n\
- \r\n\
- :limit: An integer determining the limit on the number of rows that should be returned.\r\n\
- \r\n\
- :offset: An integer determining the offset from where the rows should be fetched. So at 5, it would skip the first 4 rows.\r\n\
- \r\n\
- :select: By default, this is * as in SELECT * FROM, but can be changed if you for example want to do a join, but not include the joined columns.\r\n\
- \r\n\
- :as: Specifies a polymorphic interface (See belongs_to).\r\n\
- \r\n\
- :through: Specifies a Join Model to perform the query through. Options for :class_name and :foreign_key are ignored, as the association uses the source reflection. You can only use a :through query through a belongs_to or has_many association.\r\n\
- \r\n\
- :source: Specifies the source association name used by has_many :through queries. Only use it if the name cannot be inferred from the association. has_many :subscribers, :through => :subscriptions will look for either +:subscribers+ or +:subscriber+ on Subscription, unless a +:source+ is given.\r\n"
View
@@ -1,12 +0,0 @@
- \r\n\
- :class_name - specify the class name of the association. Use it only if that name can\xE2\x80\x99t be inferred from the association name. So has_one :manager will by default be linked to the Manager class, but if the real class name is Person, you\xE2\x80\x99ll have to specify it with this option.\r\n\
- \r\n\
- :conditions - specify the conditions that the associated object must meet in order to be included as a \"WHERE\" sql fragment, such as \"rank = 5\".\r\n\
- \r\n\
- :order - specify the order from which the associated object will be picked at the top. Specified as an \"ORDER BY\" sql fragment, such as \"last_name, first_name DESC\"\r\n\
- \r\n\
- :dependent - if set to :destroy (or true) all the associated objects are destroyed when this object is. Also, association is assigned.\r\n\
- \r\n\
- :foreign_key - specify the foreign key used for the association. By default this is guessed to be the name of this class in lower-case and \"_id\" suffixed. So a Person class that makes a has_one association will use \"person_id\" as the default foreign_key.\r\n\
- \r\n\
- :include - specify second-order associations that should be eager loaded when this object is loaded.\r\n"
View
@@ -1,3 +0,0 @@
- Hey, welcome to cheat. Thanks for trying it out.
-
- For a real, honest-to-goodness help page, run `cheat cheat`.
View
@@ -1,23 +0,0 @@
- agree( yes_or_no_question, character = nil ) # return boolean \r\n\
- ask( question, answer_type = String ) {|question| ...} # string by default\r\n\
- choose( *items, &details ) # string\r\n\
- list( items, mode = :rows, option = nil ) # string\r\n # Other modes available :columns_across , :columns_down and :inline\r\n\
- ##############################################################################\r\n ## FROM THE HIGHLINE RDOC ##\r\n\
- Basic usage:\r\n\
- \r\n ask(\"Company? \") { |q| q.default = \"none\" }\r\n\
- \r\n\
- Validation:\r\n\
- \r\n ask(\"Age? \", Integer) { |q| q.in = 0..105 }\r\n ask(\"Name? (last, first) \") { |q| q.validate = /\\A\\w+, ?\\w+\\Z/ }\r\n\
- \r\n\
- Type conversion for answers:\r\n\
- \r\n ask(\"Birthday? \", Date)\r\n ask(\"Interests? (comma sep list) \", lambda { |str| str.split(/,\\s*/) })\r\n\
- \r\n\
- Reading passwords:\r\n\
- \r\n ask(\"Enter your password: \") { |q| q.echo = false }\r\n ask(\"Enter your password: \") { |q| q.echo = \"x\" }\r\n\
- \r\n\
- ERb based output (with HighLine\xE2\x80\x99s ANSI color tools):\r\n\
- \r\n say(\"This should be <%= color('bold', BOLD) %>!\")\r\n\
- \r\n\
- Menus:\r\n\
- \r\n choose do |menu|\r\n menu.prompt = \"Please choose your favorite programming language? \"\r\n\
- \r\n menu.choice(:ruby) { say(\"Good choice!\") }\r\n menu.choices(:python, :perl) { say(\"Not from around here, are you?\") }\r\n end\r\n"
View
No changes.
Oops, something went wrong.

0 comments on commit 3d06a29

Please sign in to comment.