old_sql 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
  2. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
  3. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
  4. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
  5. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
  6. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
  7. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
  8. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
  9. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
  10. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
  11. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +54 -0
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +150 -0
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +130 -0
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
  180. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
  181. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
  182. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
  183. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
  184. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
  185. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
  186. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
  187. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
  188. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
  189. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
  190. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
  191. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
  192. data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
  193. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
  194. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
  195. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
  196. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
  197. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
  198. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
  199. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
  200. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
  201. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
  202. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
  203. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +62 -0
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  228. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +58 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
  233. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
  234. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +38 -0
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
  263. metadata +264 -2
@@ -0,0 +1,203 @@
1
+ /*
2
+
3
+ On page load, the SortableManager:
4
+
5
+ - Finds the table by its id (sortable_table).
6
+ - Parses its thead for columns with a "mochi:format" attribute.
7
+ - Parses the data out of the tbody based upon information given in the
8
+ "mochi:format" attribute, and clones the tr elements for later re-use.
9
+ - Clones the column header th elements for use as a template when drawing
10
+ sort arrow columns.
11
+ - Stores away a reference to the tbody, as it will be replaced on each sort.
12
+ - Performs the first sort.
13
+
14
+
15
+ On sort request:
16
+
17
+ - Sorts the data based on the given key and direction
18
+ - Creates a new tbody from the rows in the new ordering
19
+ - Replaces the column header th elements with clickable versions, adding an
20
+ indicator (↑ or ↓) to the most recently sorted column.
21
+
22
+ */
23
+
24
+ SortableManager = function () {
25
+ this.thead = null;
26
+ this.tbody = null;
27
+ this.columns = [];
28
+ this.rows = [];
29
+ this.sortState = {};
30
+ this.sortkey = 0;
31
+ };
32
+
33
+ mouseOverFunc = function () {
34
+ addElementClass(this, "over");
35
+ };
36
+
37
+ mouseOutFunc = function () {
38
+ removeElementClass(this, "over");
39
+ };
40
+
41
+ ignoreEvent = function (ev) {
42
+ if (ev && ev.preventDefault) {
43
+ ev.preventDefault();
44
+ ev.stopPropagation();
45
+ } else if (typeof(event) != 'undefined') {
46
+ event.cancelBubble = false;
47
+ event.returnValue = false;
48
+ }
49
+ };
50
+
51
+
52
+ update(SortableManager.prototype, {
53
+
54
+ "initWithTable": function (table) {
55
+ /***
56
+
57
+ Initialize the SortableManager with a table object
58
+
59
+ ***/
60
+ // Ensure that it's a DOM element
61
+ table = getElement(table);
62
+ // Find the thead
63
+ this.thead = table.getElementsByTagName('thead')[0];
64
+ // get the mochi:format key and contents for each column header
65
+ var cols = this.thead.getElementsByTagName('th');
66
+ for (var i = 0; i < cols.length; i++) {
67
+ var node = cols[i];
68
+ var attr = null;
69
+ try {
70
+ attr = node.getAttribute("mochi:format");
71
+ } catch (err) {
72
+ // pass
73
+ }
74
+ var o = node.childNodes;
75
+ this.columns.push({
76
+ "format": attr,
77
+ "element": node,
78
+ "proto": node.cloneNode(true)
79
+ });
80
+ }
81
+ // scrape the tbody for data
82
+ this.tbody = table.getElementsByTagName('tbody')[0];
83
+ // every row
84
+ var rows = this.tbody.getElementsByTagName('tr');
85
+ for (var i = 0; i < rows.length; i++) {
86
+ // every cell
87
+ var row = rows[i];
88
+ var cols = row.getElementsByTagName('td');
89
+ var rowData = [];
90
+ for (var j = 0; j < cols.length; j++) {
91
+ // scrape the text and build the appropriate object out of it
92
+ var cell = cols[j];
93
+ var obj = scrapeText(cell);
94
+ switch (this.columns[j].format) {
95
+ case 'isodate':
96
+ obj = isoDate(obj);
97
+ break;
98
+ case 'str':
99
+ break;
100
+ case 'istr':
101
+ obj = obj.toLowerCase();
102
+ break;
103
+ // cases for numbers, etc. could be here
104
+ default:
105
+ break;
106
+ }
107
+ rowData.push(obj);
108
+ }
109
+ // stow away a reference to the TR and save it
110
+ rowData.row = row.cloneNode(true);
111
+ this.rows.push(rowData);
112
+
113
+ }
114
+
115
+ // do initial sort on first column
116
+ this.drawSortedRows(this.sortkey, true, false);
117
+
118
+ },
119
+
120
+ "onSortClick": function (name) {
121
+ /***
122
+
123
+ Return a sort function for click events
124
+
125
+ ***/
126
+ return method(this, function () {
127
+ log('onSortClick', name);
128
+ var order = this.sortState[name];
129
+ if (order == null) {
130
+ order = true;
131
+ } else if (name == this.sortkey) {
132
+ order = !order;
133
+ }
134
+ this.drawSortedRows(name, order, true);
135
+ });
136
+ },
137
+
138
+ "drawSortedRows": function (key, forward, clicked) {
139
+ /***
140
+
141
+ Draw the new sorted table body, and modify the column headers
142
+ if appropriate
143
+
144
+ ***/
145
+ log('drawSortedRows', key, forward);
146
+ this.sortkey = key;
147
+ // sort based on the state given (forward or reverse)
148
+ var cmp = (forward ? keyComparator : reverseKeyComparator);
149
+ this.rows.sort(cmp(key));
150
+ // save it so we can flip next time
151
+ this.sortState[key] = forward;
152
+ // get every "row" element from this.rows and make a new tbody
153
+ var newBody = TBODY(null, map(itemgetter("row"), this.rows));
154
+ // swap in the new tbody
155
+ this.tbody = swapDOM(this.tbody, newBody);
156
+ for (var i = 0; i < this.columns.length; i++) {
157
+ var col = this.columns[i];
158
+ var node = col.proto.cloneNode(true);
159
+ // remove the existing events to minimize IE leaks
160
+ col.element.onclick = null;
161
+ col.element.onmousedown = null;
162
+ col.element.onmouseover = null;
163
+ col.element.onmouseout = null;
164
+ // set new events for the new node
165
+ node.onclick = this.onSortClick(i);
166
+ node.onmousedown = ignoreEvent;
167
+ node.onmouseover = mouseOverFunc;
168
+ node.onmouseout = mouseOutFunc;
169
+ // if this is the sorted column
170
+ if (key == i) {
171
+ // \u2193 is down arrow, \u2191 is up arrow
172
+ // forward sorts mean the rows get bigger going down
173
+ var arrow = (forward ? "\u2193" : "\u2191");
174
+ // add the character to the column header
175
+ node.appendChild(SPAN(null, arrow));
176
+ if (clicked) {
177
+ node.onmouseover();
178
+ }
179
+ }
180
+
181
+ // swap in the new th
182
+ col.element = swapDOM(col.element, node);
183
+ }
184
+ }
185
+ });
186
+
187
+ sortableManager = new SortableManager();
188
+
189
+ addLoadEvent(function () {
190
+ sortableManager.initWithTable('sortable_table');
191
+ });
192
+
193
+ // rewrite the view-source links
194
+ addLoadEvent(function () {
195
+ var elems = getElementsByTagAndClassName("A", "view-source");
196
+ var page = "sortable_tables/";
197
+ for (var i = 0; i < elems.length; i++) {
198
+ var elem = elems[i];
199
+ var href = elem.href.split(/\//).pop();
200
+ elem.target = "_blank";
201
+ elem.href = "../view-source/view-source.html#" + page + href;
202
+ }
203
+ });
@@ -0,0 +1,177 @@
1
+
2
+ /* Main style for the table */
3
+
4
+ .dp-highlighter {
5
+ width: 100%;
6
+ overflow: auto;
7
+ line-height: 100% !important;
8
+ margin: 18px 0px 18px 0px;
9
+ }
10
+
11
+ .dp-highlighter table {
12
+ width: 100%;
13
+ margin: 2px 0px 2px 0px;
14
+ border-collapse: collapse;
15
+ border-bottom: 2px solid #eee;
16
+ background-color: #fff;
17
+ }
18
+
19
+ .dp-highlighter tbody.hide { display: none; }
20
+ .dp-highlighter tbody.show { display: table-row-group; _display: block; }
21
+
22
+ .dp-highlighter td
23
+ {
24
+ font-family: Courier New;
25
+ font-size: 11px;
26
+ }
27
+
28
+ /* Styles for the tools */
29
+
30
+ .dp-highlighter .tools-corner {
31
+ background-color: #eee;
32
+ font-size: 9px;
33
+ }
34
+
35
+ .dp-highlighter .tools {
36
+ background-color: #eee;
37
+ padding: 3px 8px 3px 10px;
38
+ border-bottom: 1px solid gray;
39
+ font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
40
+ color: silver;
41
+ }
42
+
43
+ .dp-highlighter .tools-corner {
44
+ background-color: #eee;
45
+ }
46
+
47
+ .dp-highlighter .tools a {
48
+ font-size: 9px;
49
+ color: gray;
50
+ text-decoration: none;
51
+ }
52
+
53
+ .dp-highlighter .tools a:hover {
54
+ color: red;
55
+ text-decoration: underline;
56
+ }
57
+
58
+ /* Gutter with line number */
59
+
60
+ .dp-highlighter .gutter {
61
+ padding-right: 5px;
62
+ padding-left: 10px;
63
+ width: 5px;
64
+ background-color: #eee;
65
+ border-right: 1px solid gray;
66
+ color: gray;
67
+ text-align: right;
68
+ vertical-align: top;
69
+ }
70
+
71
+ /* Single line style */
72
+
73
+ .dp-highlighter .line1, .line2 {
74
+ padding-left: 10px;
75
+ border-bottom: 1px solid #F7F7F7;
76
+ white-space:nowrap;
77
+ }
78
+
79
+ .dp-highlighter .line2 {
80
+ background-color: #F7F7F7;
81
+ }
82
+
83
+ /* About dialog styles */
84
+
85
+ .dp-about {
86
+ background-color: #fff;
87
+ margin: 0px;
88
+ }
89
+
90
+ .dp-about table {
91
+ width: 100%;
92
+ height: 100%;
93
+ font-size: 11px;
94
+ font-family: Tahoma, Verdana, Arial, sans-serif !important;
95
+ }
96
+
97
+ .dp-about td {
98
+ padding: 10px;
99
+ vertical-align: top;
100
+ }
101
+
102
+ .dp-about .copy {
103
+ border-bottom: 1px solid #ACA899;
104
+ height: 95%;
105
+ }
106
+
107
+ .dp-about .title {
108
+ color: red;
109
+ font-weight: bold;
110
+ }
111
+
112
+ .dp-about .para {
113
+ margin-bottom: 4px;
114
+ }
115
+
116
+ .dp-about .footer {
117
+ background-color: #ECEADB;
118
+ border-top: 1px solid #fff;
119
+ text-align: right;
120
+ }
121
+
122
+ .dp-about .close {
123
+ font-size: 11px;
124
+ font-family: Tahoma, Verdana, Arial, sans-serif !important;
125
+ background-color: #ECEADB;
126
+ width: 60px;
127
+ height: 22px;
128
+ }
129
+
130
+ /* Language specific styles */
131
+
132
+ .dp-c {}
133
+ .dp-c .comment { color: green; }
134
+ .dp-c .string { color: blue; }
135
+ .dp-c .preprocessor { color: gray; }
136
+ .dp-c .keyword { color: blue; }
137
+ .dp-c .vars { color: #d00; }
138
+
139
+ .dp-vb {}
140
+ .dp-vb .comment { color: green; }
141
+ .dp-vb .string { color: blue; }
142
+ .dp-vb .preprocessor { color: gray; }
143
+ .dp-vb .keyword { color: blue; }
144
+
145
+ .dp-sql {}
146
+ .dp-sql .comment { color: green; }
147
+ .dp-sql .string { color: red; }
148
+ .dp-sql .keyword { color: blue; }
149
+ .dp-sql .func { color: #ff1493; }
150
+ .dp-sql .op { color: #808080; }
151
+
152
+ .dp-xml {}
153
+ .dp-xml .cdata { color: #ff1493; }
154
+ .dp-xml .comments { color: green; }
155
+ .dp-xml .tag { color: blue; }
156
+ .dp-xml .tag-name { color: black; font-weight: bold; }
157
+ .dp-xml .attribute { color: red; }
158
+ .dp-xml .attribute-value { color: blue; }
159
+
160
+ .dp-delphi {}
161
+ .dp-delphi .comment { color: #008200; font-style: italic; }
162
+ .dp-delphi .string { color: blue; }
163
+ .dp-delphi .number { color: blue; }
164
+ .dp-delphi .directive { color: #008284; }
165
+ .dp-delphi .keyword { font-weight: bold; color: navy; }
166
+ .dp-delphi .vars { color: #000; }
167
+
168
+ .dp-py {}
169
+ .dp-py .comment { color: green; }
170
+ .dp-py .string { color: red; }
171
+ .dp-py .docstring { color: brown; }
172
+ .dp-py .keyword { color: blue; font-weight: bold;}
173
+ .dp-py .builtins { color: #ff1493; }
174
+ .dp-py .magicmethods { color: #808080; }
175
+ .dp-py .exceptions { color: brown; }
176
+ .dp-py .types { color: brown; font-style: italic; }
177
+ .dp-py .commonlibs { color: #8A2BE2; font-style: italic; }
@@ -0,0 +1,339 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
+ "http://www.w3.org/TR/html4/loose.dtd">
3
+ <html>
4
+ <head>
5
+ <title>dp.SyntaxHighlighter testing</title>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+
8
+ <link type="text/css" rel="stylesheet" href="SyntaxHighlighter.css"></link>
9
+
10
+ <style>
11
+ /* @import url(SyntaxHighlighter.css); */
12
+
13
+ body {
14
+ font-family: Arial;
15
+ font-size: 12px;
16
+ }
17
+ </style>
18
+ </head>
19
+
20
+ <body bgcolor="#cecece">
21
+
22
+ <h3>Smart Tabs &amp; First Line</h3>
23
+
24
+ <textarea name="code" class="c#:firstline[42]">
25
+ 1 2 3 4 5 6 7 8 9
26
+ string path = "";
27
+ string safeReferrer = null;
28
+ FileInfo fileInfo = new FileInfo(string.Format("{0}/{1}", path, image));
29
+ int index = 0;
30
+ </textarea>
31
+
32
+ <h3>C Sharp</h3>
33
+
34
+ <textarea name="code" class="c#:collapse">
35
+ // single line comments
36
+ // second single line
37
+ override protected void OnLoad(EventArgs e)
38
+ {
39
+ if(Attributes["class"] != null)
40
+ {
41
+ //_year.CssClass = _month.CssClass = _day.CssClass = Attributes["class"];
42
+ }
43
+ // base.OnLoad(e);
44
+ }
45
+
46
+ /***********************************
47
+ ** Multiline block comments
48
+ **********************************/
49
+
50
+ /// <summary>
51
+ /// Gets or sets currently selected date of birth or <see cref="DateTime.MinValue"/> if selection is incomplete or invalid.
52
+ /// </summary>
53
+ public DateTime Date
54
+ {
55
+ String stringWithUrl = "http://blog.dreamprojections.com";
56
+
57
+ get
58
+ {
59
+ #region Hello world
60
+ try
61
+ {
62
+ /*
63
+ DateTime result = new DateTime(
64
+ int.Parse(_year.SelectedItem.Value),
65
+ int.Parse(_month.SelectedItem.Value),
66
+ int.Parse(_day.SelectedItem.Value)
67
+ );
68
+
69
+ i *= 2;
70
+ */
71
+ return result;
72
+ }
73
+ catch
74
+ {
75
+ /* return _minDate; */
76
+ }
77
+ #endregion
78
+ }
79
+ set
80
+ {
81
+ Day = value.Day;
82
+ Month = value.Month;
83
+ Year = value.Year;
84
+ }
85
+ }
86
+ </textarea>
87
+
88
+ <h3>JavaScript</h3>
89
+
90
+ <textarea name="code" class="javascript">
91
+ /***********************************
92
+ ** Multiline block comments
93
+ **********************************/
94
+
95
+ var stringWithUrl1 = "http://blog.dreamprojections.com";
96
+ var stringWithUrl2 = 'http://www.dreamprojections.com';
97
+
98
+ // callback for the match sorting
99
+ dpSyntaxHighlighter.prototype.SortCallback = function(m1, m2)
100
+ {
101
+ // sort matches by index first
102
+ if(m1.index < m2.index)
103
+ return -1;
104
+ else if(m1.index > m2.index)
105
+ return 1;
106
+ else
107
+ {
108
+ /*
109
+ // if index is the same, sort by length
110
+ if(m1.length < m2.length)
111
+ return -1;
112
+ else if(m1.length > m2.length)
113
+ return 1;
114
+ */
115
+ }
116
+
117
+ alert('hello // world');
118
+ return 0;
119
+ }
120
+ </textarea>
121
+
122
+ <h3>Visual Basic</h3>
123
+
124
+ <textarea name="code" class="vb">
125
+ '
126
+ ' This is a VB test
127
+ '
128
+
129
+ Imports System.Collections
130
+
131
+ Dim stringWithUrl = "http://blog.dreamprojections.com"
132
+
133
+ Public Class MyVbClass
134
+ Private m_MyString As String
135
+
136
+ Public Sub New()
137
+ myString = "Hello there"
138
+ End Sub
139
+
140
+ Public Property MyString() As String
141
+ Get
142
+ Return m_MyString
143
+ End Get
144
+ Set(ByVal Value As String)
145
+ m_MyString = Value
146
+ End Set
147
+ End Property
148
+
149
+ #Region "This is my region"
150
+ ' This is a comment
151
+ Public Function MyFunction( ByVal i as Integer ) As Double
152
+ MyFunction = 123.456
153
+ End Function
154
+ #End Region
155
+ End Class
156
+ </textarea>
157
+
158
+ <h3>XML / HTML</h3>
159
+
160
+ <textarea name="code" class="xml">
161
+ <?xml version="1.0" encoding="utf-8" ?>
162
+
163
+ <!-- comments -->
164
+ <rootNode>
165
+ <childNodes>
166
+ <childNode attribute = "value" attribute='value' attribute=/>
167
+ <childNode />
168
+ <childNode />
169
+ <childNode />
170
+ <childNode attribute="value"></childNode>
171
+ <childNode>
172
+ &lt;![CDATA[
173
+ this is some CDATA content
174
+ <!-- comments inside cdata -->
175
+ <b alert='false'>tags inside cdata</b>
176
+ ]]>
177
+ </childNode>
178
+ </childNodes>
179
+ </rootNode>
180
+
181
+ <!--
182
+ -- Multiline comments <b>tag</b>
183
+ -->
184
+ </textarea>
185
+
186
+ <h3>PHP</h3>
187
+
188
+ <textarea name="code" class="php">
189
+ /***********************************
190
+ ** Multiline block comments
191
+ **********************************/
192
+
193
+ $stringWithUrl = "http://blog.dreamprojections.com";
194
+ $stringWithUrl = 'http://www.dreamprojections.com';
195
+
196
+ ob_start("parseOutputBuffer"); // Start Code Buffering
197
+ session_start();
198
+
199
+ function parseOutputBuffer($buf) {
200
+ global $portal_small_code, $portal_gzcompress;
201
+ global $PHP_SELF, $HTTP_ACCEPT_ENCODING;
202
+
203
+ // cleaning out the code.
204
+ if($portal_small_code && !$portal_gzcompress) {
205
+ $buf = str_replace(" ", "", $buf);
206
+ $buf = str_replace("\n", "", $buf);
207
+ $buf = str_replace(chr(13), "", $buf);
208
+ }
209
+ }
210
+ </textarea>
211
+
212
+ <h3>SQL</h3>
213
+
214
+ <textarea name="code" class="sql">
215
+ SELECT TOP 10
216
+ FirstName,
217
+ LastName,
218
+ Email,
219
+ --SUBSTRING(Phone, 2, 3) AS CityCode,
220
+ SUBSTRING(Phone, 7, 8) AS PhoneNumber,
221
+ upper(LanguagePref) AS Language,
222
+ Address1,
223
+ UpdatedOn AS CreatedOn
224
+ FROM
225
+ profiles
226
+ WHERE
227
+ -- Exclude all test emails
228
+ Email NOT LIKE '%test%'
229
+ AND Email NOT LIKE '%asdf%'
230
+ ORDER BY
231
+ UpdatedOn DESC
232
+ </textarea>
233
+
234
+ <h3>Delphi</h3>
235
+
236
+ <textarea name="code" id="dd" class="delphi">
237
+ {$IFDEF VER140}
238
+ (***********************************
239
+ ** Multiline block comments
240
+ **********************************)
241
+ procedure TForm1.Button1Click(Sender: TObject); var
242
+ Number, I, X: Integer;
243
+ Y: Integer;
244
+ begin
245
+ str := 'http://blog.dreamprojections.com';
246
+
247
+ Number := 12356;
248
+ Caption := 'The Number is ' + IntToStr(Number);
249
+ for I := 0 to Number do
250
+ begin
251
+ Inc(X);
252
+ {
253
+ Dec(X);
254
+ X := X * 1.0;
255
+ }
256
+ Y := $F5D3;
257
+ ListBox1.Items.Add(IntToStr(X));
258
+
259
+ (*
260
+ ShowMessage('Hello'); *)
261
+ end;
262
+ asm
263
+ MOV AX,1234H
264
+ // MOV Number,AX
265
+ end;
266
+ end;
267
+ </textarea>
268
+
269
+ <h3>Python</h3>
270
+
271
+ <textarea name="code" class="python:nogutter:nocontrols">
272
+ cache = {}
273
+
274
+ string s = "## comments inside a string"
275
+
276
+ def arrange(plans, lines, totalMinutes):
277
+ """arrangements of plans taken lines times with an heuristic that the sum
278
+ of values in one arrangement is less then totalMinutes
279
+ """
280
+ #if in cache we are done otherwise start calculating and save them to cache
281
+ if (plans, lines, totalMinutes) in cache:
282
+ return cache[(plans, lines, totalMinutes)]
283
+ if lines==1:
284
+ r = [[plan] for plan in plans]
285
+ cache[(plans, lines, totalMinutes)] = r
286
+ return r
287
+ solutions = []
288
+ for plan in plans:
289
+ for ar in sort(list(arrange(plans, lines-1, totalMinutes))):
290
+ try:
291
+ one_solution = tuple(sort([plan] + list(ar)))
292
+ if sum(one_solution) <= totalMinutes and one_solution not in solutions:
293
+ solutions.append(one_solution)
294
+ except Exception, e:
295
+ print "Error:", str(e)
296
+ cache[(plans, lines, totalMinutes)] = solutions
297
+ return solutions
298
+
299
+ if __name__ == "__main__":
300
+ import sys
301
+ lines, totalMinutes = int(sys.argv[1]), int(sys.argv[2])
302
+ plans = tuple([int(p) for p in sys.argv[3:]])
303
+ print "for", lines, totalMinutes, plans
304
+ for sol in arrange(plans, lines, totalMinutes):
305
+ print sol
306
+ </textarea>
307
+
308
+ <h3>Auto Overflow Test</h3>
309
+
310
+ 400px
311
+ <div style="width: 400px; border-top: 2px solid black;">
312
+
313
+ <textarea id="Textarea1" name="code" class="xml">
314
+ // this is a long line that will stretch the whole box causing it to scroll horizontally.
315
+ if($portal_small_code && !$portal_gzcompress) {
316
+ $buf = str_replace(" ", "", $buf);
317
+ $buf = str_replace("\n", "", $buf);
318
+ $buf = str_replace(chr(13), "", $buf);
319
+ }
320
+ </textarea>
321
+
322
+ </div>
323
+
324
+ </div>
325
+ <script class="javascript" src="shCore.js"></script>
326
+ <script class="javascript" src="shBrushCSharp.js"></script>
327
+ <script class="javascript" src="shBrushPhp.js"></script>
328
+ <script class="javascript" src="shBrushJScript.js"></script>
329
+ <script class="javascript" src="shBrushVb.js"></script>
330
+ <script class="javascript" src="shBrushSql.js"></script>
331
+ <script class="javascript" src="shBrushXml.js"></script>
332
+ <script class="javascript" src="shBrushDelphi.js"></script>
333
+ <script class="javascript" src="shBrushPython.js"></script>
334
+ <script class="javascript">
335
+ dp.SyntaxHighlighter.HighlightAll('code');
336
+ </script>
337
+
338
+ </body>
339
+ </html>