Permalink
Browse files

Reorganize 2008 and 2009 into new structure.

  • Loading branch information...
1 parent 4690a6a commit ca97e182e128aed4d071945051ffc6c026cfc9d7 @dignifiedquire committed Mar 30, 2013
Showing with 0 additions and 489 deletions.
  1. +0 −48 2008-11-23/recursive_combinators.rb
  2. +0 −67 2008-11-28/string_to_proc.rb
  3. +0 −1 2008-12-1/anonymous_module.rb
  4. +0 −373 2008-12-1/keep_your_privates_to_yourself.md
  5. 0 {2008-10-28 → 2008/10}/and_and_or.markdown
  6. 0 {2008-10-31 → 2008/10}/cardinal.rb
  7. 0 {2008-10-29 → 2008/10}/inside.rb
  8. 0 {2008-10-30 → 2008/10}/into.rb
  9. 0 {2008-10-29 → 2008/10}/kestrel.markdown
  10. 0 {2008-10-30 → 2008/10}/let.rb
  11. 0 {2008-10-31 → 2008/10}/songs_of_the_cardinal.markdown
  12. 0 {2008-10-30 → 2008/10}/thrush.markdown
  13. 0 {2008-10-27 → 2008/10}/unfold.markdown
  14. 0 {2008-10-27 → 2008/10}/unfold.rb
  15. 0 {2008-10-30 → 2008/10}/why_im_using_git.markdown
  16. 0 {2008-10-29 → 2008/10}/you_keep_using_that_idiom.markdown
  17. 0 {2008-11-07 → 2008/11}/README.md
  18. 0 {2008-11-12 → 2008/11}/andand.rb
  19. 0 {2008-11-07 → 2008/11}/before_and_after_advice.rb
  20. 0 {2008-11-07 → 2008/11}/before_and_after_advice_spec.rb
  21. 0 {2008-11-04 → 2008/11}/blank_slate.rb
  22. 0 {2008-11-21 → 2008/11}/cdr.md
  23. 0 {2008-11-12 → 2008/11}/combinator_chemistry.md
  24. 0 {2008-11-07 → 2008/11}/comment_on_implementing_advice.markdown
  25. 0 {2008-11-23 → 2008/11}/divide_and_conquer.rb
  26. 0 {2008-11-21 → 2008/11}/divide_and_conquer_helper.rb
  27. 0 {2008-11-21 → 2008/11}/double_mockingbird.rb
  28. 0 {2008-11-07 → 2008/11}/from_birds_that_compose_to_method_advice.markdown
  29. 0 {2008-11-16 → 2008/11}/joy.md
  30. 0 {2008-11-26 → 2008/11}/legacy_recursive_combinators.rb
  31. 0 {2008-11-23 → 2008/11}/linear_recursion.rb
  32. 0 {2008-11-23 → 2008/11}/merge_sort.rb
  33. 0 {2008-11-07 → 2008/11}/naive_before_advice.rb
  34. 0 {2008-11-26 → 2008/11}/old_merge_sort.rb
  35. 0 {2008-11-26 → 2008/11}/partial_application_recursive_combinators.rb
  36. 0 {2008-11-26 → 2008/11}/practical_recursive_combinators.md
  37. 0 {2008-11-26 → 2008/11}/practicum.rb
  38. 0 {2008-11-09 → 2008/11}/proc_arity.markdown
  39. 0 {2008-11-04 → 2008/11}/quirky_bird.rb
  40. 0 {2008-11-04 → 2008/11}/quirky_birds_and_meta_syntactic_programming.markdown
  41. 0 {2008-11-04 → 2008/11}/quirky_songs.rb
  42. 0 {2008-11-23 → 2008/11}/recursive_combinators.md
  43. 0 {2008-11-26 → 2008/11}/recursive_combinators.rb
  44. 0 {2008-11-04 → 2008/11}/returning.rb
  45. 0 {2008-11-23 → 2008/11}/rotate.rb
  46. 0 {2008-11-26 → 2008/11}/string_to_proc.rb
  47. 0 {2008-11-23 → 2008/11}/sum_squares.rb
  48. 0 {2008-11-21 → 2008/11}/template_method.rb
  49. 0 {2008-11-21 → 2008/11}/templates_double_mockingbirds_and_helpers.md
  50. 0 {2008-11-12 → 2008/11}/the_obdurate_kestrel.md
  51. 0 {2008-11-04 → 2008/11}/unary_ampersand_in_ruby.markdown
  52. 0 {2008-11-03 → 2008/11}/with_unhygienic_and_call-by-name_semantics_in_rewrite.markdown
  53. 0 {2008-11-28 → 2008/11}/you_cant_be_serious.md
  54. 0 {2008-12-01 → 2008/12}/anonymous_module.rb
  55. 0 {2008-12-17 → 2008/12}/another_fibonacci.md
  56. 0 {2008-12-17 → 2008/12}/another_fibonacci.rb
  57. 0 {2008-12-23 → 2008/12}/bah_humbug.md
  58. 0 {2008-12-18 → 2008/12}/called_by_name.md
  59. 0 {2008-12-12 → 2008/12}/fibonacci.md
  60. 0 {2008-12-12 → 2008/12}/fibonacci.rb
  61. 0 {2008-12-01 → 2008/12}/keep_your_privates_to_yourself.md
  62. 0 {2008-12-09 → 2008/12}/nuno_job_on_rewrite.md
  63. 0 {2008-12-03 → 2008/12}/proc_rcall.rb
  64. 0 {2008-12-03 → 2008/12}/rcall.md
  65. 0 {2008-12-16 → 2008/12}/welcome.md
  66. 0 {2009-01-14 → 2009/01}/advertisement.md
  67. 0 {2009-01-05 → 2009/01}/andand_even_more.md
  68. 0 {2009-01-02 → 2009/01}/flight_of_the_phoenix.md
  69. 0 {2009-01-13 → 2009/01}/maybe.md
  70. 0 {2009-01-12 → 2009/01}/mundane.md
  71. 0 {2009-01-21 → 2009/01}/old.md
  72. 0 {2009-01-06 → 2009/01}/rewrite_rails.md
  73. 0 {2009-02-12 → 2009/02}/a_question.md
  74. 0 {2009-02-02 → 2009/02}/hopeless_egocentricity.md
  75. 0 {2009-02-16 → 2009/02}/vilfredo_federico_damaso_pareto.md
  76. 0 {2009-03-12 → 2009/03}/another_question.md
  77. 0 {2009-03-03 → 2009/03}/circular.md
  78. 0 {2009-03-07 → 2009/03}/number.rb
  79. 0 {2009-03-07 → 2009/03}/surreal.md
  80. 0 {2009-04-17 → 2009/04}/eggs.md
  81. 0 {2009-04-28 → 2009/04}/extension_methods.md
  82. 0 {2009-04-15 → 2009/04}/keywords.md
  83. 0 {2009-04-09 → 2009/04}/my_objection_to_sum.md
  84. BIN {2009-04-28 → 2009/04}/rumpole.jpg
  85. 0 {2009-04-08 → 2009/04}/sick.md
  86. 0 {2009-05-20 → 2009/05}/all_yall.rb
  87. 0 {2009-05-01 → 2009/05}/optimism.md
  88. 0 {2009-05-25 → 2009/05}/rubyjobfair.md
  89. 0 {2009-05-20 → 2009/05}/surprising.md
  90. 0 {2009-05-13 → 2009/05}/tough_crowd.md
  91. 0 {2009-06-02 → 2009/06}/functional_complexity.md
  92. 0 {2009-06-26 → 2009/06}/no_hire.md
  93. 0 {2009-06-05 → 2009/06}/tsttcpw.md
  94. 0 {2009-06-05 → 2009/06}/tsttcpw.rb
  95. 0 {2009-06-29 → 2009/06}/wrapping_combinators.md
  96. 0 {2009-08-29 → 2009/08}/returning.md
  97. 0 {2009-09-22 → 2009/09}/anaphora.md
  98. 0 {2009-10-20 → 2009/10}/high_anxiety.md
  99. 0 {2009-10-08 → 2009/10}/metalinguistic.md
  100. 0 {2009-10-08 → 2009/10}/no_hire.md
  101. 0 {2009-12-09 → 2009/12}/block_styling.markdown
  102. 0 {2009-12-04 → 2009/12}/kestrels_on_rails.md
@@ -1,48 +0,0 @@
-# The MIT License
-#
-# All contents Copyright (c) 2004-2008 Reginald Braithwaite
-# <http://braythwayt.com> except as otherwise noted.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above Copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-#
-# http://www.opensource.org/licenses/mit-license.php
-
-def divide_and_conquer(value, steps)
- if steps[:divisible?].call(value)
- steps[:recombine].call(
- steps[:divide].call(value).map { |sub_value| divide_and_conquer(sub_value, steps) }
- )
- else
- steps[:conquer].call(value)
- end
-end
-
-def linear_recursion(value, steps)
- if steps[:divisible?].call(value)
- trivial_part, sub_problem = steps[:divide].call(value)
- steps[:recombine].call(
- trivial_part, linear_recursion(sub_problem, steps)
- )
- else
- steps[:conquer].call(value)
- end
-end
-
-alias :multirec :divide_and_conquer
-alias :linrec :linear_recursion
@@ -1,67 +0,0 @@
-# The MIT License
-#
-# Copyright (c) 2004-2008 Reginald Braithwaite
-# Portions Copyright (c) 2006 Oliver Steele
-# <http://braythwayt.com> except as otherwise noted.
-#
-# See http://raganwald.com/2007/10/stringtoproc.html
-#
-# Ported from the String Lambdas in Oliver Steele's Functional JavaScript
-# http://osteele.com/sources/javascript/functional/
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above Copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-#
-# http://www.opensource.org/licenses/mit-license.php
-
-class String
- unless ''.respond_to?(:to_proc)
- def to_proc &block
- params = []
- expr = self
- sections = expr.split(/\s*->\s*/m)
- if sections.length > 1 then
- eval sections.reverse!.inject { |e, p| "(Proc.new { |#{p.split(/\s/).join(', ')}| #{e} })" }, block && block.binding
- elsif expr.match(/\b_\b/)
- eval "Proc.new { |_| #{expr} }", block && block.binding
- else
- leftSection = expr.match(/^\s*(?:[+*\/%&|\^\.=<>\[]|!=)/m)
- rightSection = expr.match(/[+\-*\/%&|\^\.=<>!]\s*$/m)
- if leftSection || rightSection then
- if (leftSection) then
- params.push('$left')
- expr = '$left' + expr
- end
- if (rightSection) then
- params.push('$right')
- expr = expr + '$right'
- end
- else
- self.gsub(
- /(?:\b[A-Z]|\.[a-zA-Z_$])[a-zA-Z_$\d]*|[a-zA-Z_$][a-zA-Z_$\d]*:|self|arguments|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/, ''
- ).scan(
- /([a-z_$][a-z_$\d]*)/i
- ) do |v|
- params.push(v) unless params.include?(v)
- end
- end
- eval "Proc.new { |#{params.join(', ')}| #{expr} }", block && block.binding
- end
- end
- end
-end
@@ -1 +0,0 @@
-# This item was incorrectly categorized. Please update links and bookmarks to http://github.com/raganwald/homoiconic/tree/master/2008-12-01/anonymous_module.rb
Oops, something went wrong.

0 comments on commit ca97e18

Please sign in to comment.