Permalink
Browse files

new initial commit

  • Loading branch information...
0 parents commit 8b1693c341f3c4c2013ebc4e69315c2e979591f6 @Carreau Carreau committed Aug 3, 2012
Showing with 55,614 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +5 −0 .slugignore
  3. +176 −0 LICENSE-bootstrap
  4. +94 −0 Makefile
  5. +1 −0 Procfile
  6. +28 −0 README.md
  7. +101 −0 app.py
  8. +3 −0 hlog
  9. BIN img/glyphicons-halflings-white.png
  10. BIN img/glyphicons-halflings.png
  11. +10 −0 js/.jshintrc
  12. +112 −0 js/README.md
  13. +90 −0 js/bootstrap-alert.js
  14. +96 −0 js/bootstrap-button.js
  15. +169 −0 js/bootstrap-carousel.js
  16. +157 −0 js/bootstrap-collapse.js
  17. +100 −0 js/bootstrap-dropdown.js
  18. +218 −0 js/bootstrap-modal.js
  19. +98 −0 js/bootstrap-popover.js
  20. +151 −0 js/bootstrap-scrollspy.js
  21. +135 −0 js/bootstrap-tab.js
  22. +275 −0 js/bootstrap-tooltip.js
  23. +61 −0 js/bootstrap-transition.js
  24. +285 −0 js/bootstrap-typeahead.js
  25. +54 −0 js/tests/index.html
  26. +63 −0 js/tests/phantom.js
  27. +14 −0 js/tests/server.js
  28. +56 −0 js/tests/unit/bootstrap-alert.js
  29. +77 −0 js/tests/unit/bootstrap-button.js
  30. +28 −0 js/tests/unit/bootstrap-carousel.js
  31. +54 −0 js/tests/unit/bootstrap-collapse.js
  32. +87 −0 js/tests/unit/bootstrap-dropdown.js
  33. +114 −0 js/tests/unit/bootstrap-modal.js
  34. +21 −0 js/tests/unit/bootstrap-phantom.js
  35. +93 −0 js/tests/unit/bootstrap-popover.js
  36. +31 −0 js/tests/unit/bootstrap-scrollspy.js
  37. +61 −0 js/tests/unit/bootstrap-tab.js
  38. +155 −0 js/tests/unit/bootstrap-tooltip.js
  39. +13 −0 js/tests/unit/bootstrap-transition.js
  40. +148 −0 js/tests/unit/bootstrap-typeahead.js
  41. +9,252 −0 js/tests/vendor/jquery.js
  42. +232 −0 js/tests/vendor/qunit.css
  43. +1,510 −0 js/tests/vendor/qunit.js
  44. +33 −0 less/accordion.less
  45. +58 −0 less/alerts.less
  46. +62 −0 less/bootstrap.less
  47. +24 −0 less/breadcrumbs.less
  48. +191 −0 less/button-groups.less
  49. +191 −0 less/buttons.less
  50. +121 −0 less/carousel.less
  51. +29 −0 less/close.less
  52. +57 −0 less/code.less
  53. +20 −0 less/component-animations.less
  54. +143 −0 less/dropdowns.less
  55. +583 −0 less/forms.less
  56. +5 −0 less/grid.less
  57. +22 −0 less/hero-unit.less
  58. +55 −0 less/labels-badges.less
  59. +17 −0 less/layouts.less
  60. +646 −0 less/mixins.less
  61. +90 −0 less/modals.less
  62. +358 −0 less/navbar.less
  63. +363 −0 less/navs.less
  64. +36 −0 less/pager.less
  65. +56 −0 less/pagination.less
  66. +49 −0 less/popovers.less
  67. +117 −0 less/progress-bars.less
  68. +131 −0 less/reset.less
  69. +26 −0 less/responsive-1200px-min.less
  70. +149 −0 less/responsive-767px-max.less
  71. +17 −0 less/responsive-768px-979px.less
  72. +153 −0 less/responsive-navbar.less
  73. +41 −0 less/responsive-utilities.less
  74. +48 −0 less/responsive.less
  75. +29 −0 less/scaffolding.less
  76. +191 −0 less/sprites.less
  77. +176 −0 less/tables.less
  78. +52 −0 less/tests/css-tests.css
  79. +917 −0 less/tests/css-tests.html
  80. +179 −0 less/tests/forms.html
  81. +108 −0 less/tests/navbar.html
  82. +47 −0 less/thumbnails.less
  83. +35 −0 less/tooltip.less
  84. +232 −0 less/type.less
  85. +23 −0 less/utilities.less
  86. +206 −0 less/variables.less
  87. +27 −0 less/wells.less
  88. +4 −0 nbconvert/.gitignore
  89. +37 −0 nbconvert/README.rst
  90. 0 nbconvert/__init__.py
  91. +10 −0 nbconvert/css/static_html.css
  92. +27 −0 nbconvert/custom_converter.py
  93. +68 −0 nbconvert/decorators.py
  94. +88 −0 nbconvert/dollarmath.py
  95. +17 −0 nbconvert/js/initmathjax.js
  96. +22 −0 nbconvert/lexers.py
  97. +1,439 −0 nbconvert/nbconvert.py
  98. +59 −0 nbconvert/nbstripout.py
  99. +113 −0 nbconvert/preamble.tex
  100. +21 −0 nbconvert/rst2ipynb.py
  101. +124 −0 nbconvert/rst2ipynblib/__init__.py
  102. +210 −0 nbconvert/tests/test.ipynb
  103. +337 −0 nbconvert/tests/test_display.ipynb
  104. +24 −0 nbconvert/tests/test_nbconverter.py
  105. +28 −0 nbconvert/tests/test_rst2ipynb.py
  106. +69 −0 nbconvert/tests/test_simple.py
  107. +396 −0 nbconvert/tests/tutorial.ipynb.ref
  108. +225 −0 nbconvert/tests/tutorial.rst.ref
  109. +22 −0 nbconvert/work_flow.txt
  110. 0 nbformat/__init__.py
  111. +221 −0 nbformat/current.py
  112. 0 nbformat/tests/__init__.py
  113. +24 −0 nbformat/v1/__init__.py
  114. +16 −0 nbformat/v1/convert.py
  115. +72 −0 nbformat/v1/nbbase.py
  116. +54 −0 nbformat/v1/nbjson.py
  117. +47 −0 nbformat/v1/rwbase.py
  118. 0 nbformat/v1/tests/__init__.py
  119. +29 −0 nbformat/v1/tests/nbexamples.py
  120. +14 −0 nbformat/v1/tests/test_json.py
  121. +41 −0 nbformat/v1/tests/test_nbbase.py
  122. +78 −0 nbformat/v2/__init__.py
  123. +50 −0 nbformat/v2/convert.py
  124. +179 −0 nbformat/v2/nbbase.py
  125. +69 −0 nbformat/v2/nbjson.py
  126. +150 −0 nbformat/v2/nbpy.py
  127. +188 −0 nbformat/v2/nbxml.py
  128. +165 −0 nbformat/v2/rwbase.py
  129. 0 nbformat/v2/tests/__init__.py
  130. +109 −0 nbformat/v2/tests/nbexamples.py
  131. +34 −0 nbformat/v2/tests/test_json.py
  132. +113 −0 nbformat/v2/tests/test_nbbase.py
  133. +17 −0 nbformat/v2/tests/test_nbpy.py
  134. +74 −0 nbformat/v3/__init__.py
  135. +59 −0 nbformat/v3/convert.py
  136. +206 −0 nbformat/v3/nbbase.py
  137. +72 −0 nbformat/v3/nbjson.py
  138. +204 −0 nbformat/v3/nbpy.py
  139. +190 −0 nbformat/v3/rwbase.py
  140. 0 nbformat/v3/tests/__init__.py
  141. +63 −0 nbformat/v3/tests/formattest.py
  142. +153 −0 nbformat/v3/tests/nbexamples.py
  143. +33 −0 nbformat/v3/tests/test_json.py
  144. +143 −0 nbformat/v3/tests/test_nbbase.py
  145. +46 −0 nbformat/v3/tests/test_nbpy.py
  146. +4 −0 requirements.txt
  147. +815 −0 static/assets/css/bootstrap-responsive.css
  148. +4,983 −0 static/assets/css/bootstrap.css
  149. +845 −0 static/assets/css/docs.css
  150. BIN static/assets/ico/apple-touch-icon-114-precomposed.png
  151. BIN static/assets/ico/apple-touch-icon-144-precomposed.png
  152. BIN static/assets/ico/apple-touch-icon-57-precomposed.png
  153. BIN static/assets/ico/apple-touch-icon-72-precomposed.png
  154. BIN static/assets/ico/favicon.ico
  155. BIN static/assets/img/Python-logo-notext.png
  156. BIN static/assets/img/bird.png
  157. BIN static/assets/img/example-nb/covariance.png
  158. BIN static/assets/img/example-nb/demo.png
  159. BIN static/assets/img/github-16px.png
  160. BIN static/assets/img/glyphicons-halflings-white.png
  161. BIN static/assets/img/glyphicons-halflings.png
  162. BIN static/assets/img/glyphicons/glyphicons_009_magic.png
  163. BIN static/assets/img/glyphicons/glyphicons_042_group.png
  164. BIN static/assets/img/glyphicons/glyphicons_079_podium.png
  165. BIN static/assets/img/glyphicons/glyphicons_082_roundabout.png
  166. BIN static/assets/img/glyphicons/glyphicons_155_show_thumbnails.png
  167. BIN static/assets/img/glyphicons/glyphicons_163_iphone.png
  168. BIN static/assets/img/glyphicons/glyphicons_214_resize_small.png
  169. BIN static/assets/img/glyphicons/glyphicons_266_book_open.png
  170. BIN static/assets/img/grid-18px-masked.png
  171. BIN static/assets/img/icon-css3.png
  172. BIN static/assets/img/icon-github.png
  173. BIN static/assets/img/icon-html5.png
  174. BIN static/assets/img/icon-twitter.png
  175. BIN static/assets/img/less-logo-large.png
  176. BIN static/assets/img/less-small.png
  177. BIN static/assets/img/responsive-illustrations.png
  178. BIN static/assets/img/th_github.jpeg
  179. +106 −0 static/assets/js/README.md
  180. +184 −0 static/assets/js/application.js
  181. +90 −0 static/assets/js/bootstrap-alert.js
  182. +96 −0 static/assets/js/bootstrap-button.js
  183. +169 −0 static/assets/js/bootstrap-carousel.js
  184. +157 −0 static/assets/js/bootstrap-collapse.js
  185. +100 −0 static/assets/js/bootstrap-dropdown.js
  186. +218 −0 static/assets/js/bootstrap-modal.js
  187. +98 −0 static/assets/js/bootstrap-popover.js
  188. +151 −0 static/assets/js/bootstrap-scrollspy.js
  189. +135 −0 static/assets/js/bootstrap-tab.js
  190. +275 −0 static/assets/js/bootstrap-tooltip.js
  191. +61 −0 static/assets/js/bootstrap-transition.js
  192. +285 −0 static/assets/js/bootstrap-typeahead.js
  193. +1,825 −0 static/assets/js/bootstrap.js
  194. +6 −0 static/assets/js/bootstrap.min.js
  195. +30 −0 static/assets/js/google-code-prettify/prettify.css
  196. +28 −0 static/assets/js/google-code-prettify/prettify.js
  197. +9,252 −0 static/assets/js/jquery.js
  198. +44 −0 static/build/index.js
  199. +93 −0 static/build/node_modules/.bin/hulk
  200. +1 −0 static/build/node_modules/hogan.js/.git_ignore
  201. +3 −0 static/build/node_modules/hogan.js/.gitmodules
  202. +177 −0 static/build/node_modules/hogan.js/LICENSE
  203. +62 −0 static/build/node_modules/hogan.js/Makefile
  204. +93 −0 static/build/node_modules/hogan.js/README.md
  205. +93 −0 static/build/node_modules/hogan.js/bin/hulk
  206. +348 −0 static/build/node_modules/hogan.js/lib/compiler.js
  207. +20 −0 static/build/node_modules/hogan.js/lib/hogan.js
  208. +233 −0 static/build/node_modules/hogan.js/lib/template.js
  209. +20 −0 static/build/node_modules/hogan.js/package.json
  210. +8 −0 static/build/node_modules/hogan.js/test/html/list.html
  211. +13 −0 static/build/node_modules/hogan.js/test/index.html
  212. +848 −0 static/build/node_modules/hogan.js/test/index.js
  213. +90 −0 static/build/node_modules/hogan.js/test/mustache.js
  214. +77 −0 static/build/node_modules/hogan.js/test/spec.js
  215. +31 −0 static/build/node_modules/hogan.js/test/spec/Changes
  216. +65 −0 static/build/node_modules/hogan.js/test/spec/README.md
  217. +27 −0 static/build/node_modules/hogan.js/test/spec/Rakefile
  218. +46 −0 static/build/node_modules/hogan.js/test/spec/TESTING.md
  219. +1 −0 static/build/node_modules/hogan.js/test/spec/specs/comments.json
  220. +103 −0 static/build/node_modules/hogan.js/test/spec/specs/comments.yml
  221. +1 −0 static/build/node_modules/hogan.js/test/spec/specs/delimiters.json
  222. +158 −0 static/build/node_modules/hogan.js/test/spec/specs/delimiters.yml
  223. +1 −0 static/build/node_modules/hogan.js/test/spec/specs/interpolation.json
  224. +230 −0 static/build/node_modules/hogan.js/test/spec/specs/interpolation.yml
  225. +1 −0 static/build/node_modules/hogan.js/test/spec/specs/inverted.json
  226. +193 −0 static/build/node_modules/hogan.js/test/spec/specs/inverted.yml
  227. +1 −0 static/build/node_modules/hogan.js/test/spec/specs/partials.json
  228. +109 −0 static/build/node_modules/hogan.js/test/spec/specs/partials.yml
  229. +1 −0 static/build/node_modules/hogan.js/test/spec/specs/sections.json
  230. +256 −0 static/build/node_modules/hogan.js/test/spec/specs/sections.yml
  231. +1 −0 static/build/node_modules/hogan.js/test/spec/specs/~lambdas.json
  232. +149 −0 static/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml
  233. +8 −0 static/build/node_modules/hogan.js/test/templates/list.mustache
  234. +74 −0 static/build/node_modules/hogan.js/tools/release.js
  235. +32 −0 static/build/node_modules/hogan.js/tools/web_templates.js
  236. +500 −0 static/build/node_modules/hogan.js/web/1.0.0/hogan.js
  237. +14 −0 static/build/node_modules/hogan.js/web/1.0.0/hogan.min.js
  238. +500 −0 static/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js
  239. +14 −0 static/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js
  240. +545 −0 static/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js
  241. +5 −0 static/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js
  242. +576 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js
  243. +576 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js
  244. +572 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js
  245. +5 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js
  246. +5 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js
  247. +5 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js
  248. +5 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js
  249. +619 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js
  250. +233 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js
  251. +5 −0 static/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js
  252. BIN static/build/node_modules/hogan.js/web/favicon.ico
  253. BIN static/build/node_modules/hogan.js/web/images/logo.png
  254. BIN static/build/node_modules/hogan.js/web/images/noise.png
  255. BIN static/build/node_modules/hogan.js/web/images/small-hogan-icon.png
  256. BIN static/build/node_modules/hogan.js/web/images/stripes.png
  257. +139 −0 static/build/node_modules/hogan.js/web/index.html.mustache
  258. +206 −0 static/build/node_modules/hogan.js/web/stylesheets/layout.css
  259. +236 −0 static/build/node_modules/hogan.js/web/stylesheets/skeleton.css
  260. +21 −0 static/build/node_modules/hogan.js/wrappers/amd.js.mustache
  261. +21 −0 static/build/node_modules/hogan.js/wrappers/common.js.mustache
  262. +17 −0 static/build/node_modules/hogan.js/wrappers/js.mustache
  263. +64 −0 static/build/node_modules/hogan.js/wrappers/mustache.js.mustache
  264. +6 −0 static/build/package.json
  265. +149 −0 static/index.html
  266. +99 −0 templates/layout.mustache
  267. +55 −0 templates/pages/index.mustache
@@ -0,0 +1,4 @@
+*.pyc
+.DS_Store
+*.un~
+*.swp
@@ -0,0 +1,5 @@
+README.md
+hlog
+LISCENCE
+less/*
+static/build/*
@@ -0,0 +1,176 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,94 @@
+BOOTSTRAP = ./static/assets/css/bootstrap.css
+BOOTSTRAP_LESS = ./less/bootstrap.less
+BOOTSTRAP_RESPONSIVE = ./static/assets/css/bootstrap-responsive.css
+BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less
+DATE=$(shell date +%I:%M%p)
+CHECK=\033[32m✔\033[39m
+HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#
+
+
+#
+# BUILD DOCS
+#
+
+build:
+ @echo "\n${HR}"
+ @echo "Building Bootstrap..."
+ @echo "${HR}\n"
+ @jshint js/*.js --config js/.jshintrc
+ @jshint js/tests/unit/*.js --config js/.jshintrc
+ @echo "Running JSHint on javascript... ${CHECK} Done"
+ @recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP}
+ @recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE}
+ @echo "Compiling LESS with Recess... ${CHECK} Done"
+ @node static/build
+ @cp img/* static/assets/img/
+ @cp js/*.js static/assets/js/
+ @cp js/tests/vendor/jquery.js static/assets/js/
+ @echo "Compiling documentation... ${CHECK} Done"
+ @cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js > static/assets/js/bootstrap.js
+ @uglifyjs -nc static/assets/js/bootstrap.js > static/assets/js/bootstrap.min.tmp.js
+ @echo "/**\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > static/assets/js/copyright.js
+ @cat static/assets/js/copyright.js static/assets/js/bootstrap.min.tmp.js > static/assets/js/bootstrap.min.js
+ @rm static/assets/js/copyright.js static/assets/js/bootstrap.min.tmp.js
+ @echo "Compiling and minifying javascript... ${CHECK} Done"
+ @echo "\n${HR}"
+ @echo "Bootstrap successfully built at ${DATE}."
+ @echo "${HR}\n"
+ @echo "Thanks for using Bootstrap,"
+ @echo "<3 @mdo and @fat\n"
+
+#
+# RUN JSHINT & QUNIT TESTS IN PHANTOMJS
+#
+
+test:
+ jshint js/*.js --config js/.jshintrc
+ jshint js/tests/unit/*.js --config js/.jshintrc
+ node js/tests/server.js &
+ phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"
+ kill -9 `cat js/tests/pid.txt`
+ rm js/tests/pid.txt
+
+#
+# BUILD SIMPLE BOOTSTRAP DIRECTORY
+# recess & uglifyjs are required
+#
+
+bootstrap:
+ mkdir -p bootstrap/img
+ mkdir -p bootstrap/css
+ mkdir -p bootstrap/js
+ cp img/* bootstrap/img/
+ recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css
+ recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css
+ recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.css
+ recess --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.min.css
+ cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js > bootstrap/js/bootstrap.js
+ uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js
+ echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
+ cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
+ rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
+
+#
+# MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O )
+#
+
+gh-pages: bootstrap static
+ rm -f static/assets/bootstrap.zip
+ zip -r static/assets/bootstrap.zip bootstrap
+ rm -r bootstrap
+ rm -f ../bootstrap-gh-pages/assets/bootstrap.zip
+ node static/build production
+ cp -r static/* ../bootstrap-gh-pages
+
+#
+# WATCH LESS FILES
+#
+
+watch:
+ echo "Watching less files..."; \
+ watchr -e "watch('less/.*\.less') { system 'make' }"
+
+
+.PHONY: static watch gh-pages
@@ -0,0 +1 @@
+web: python app.py
@@ -0,0 +1,28 @@
+Quick start
+-----------
+
+install heroku toolbelt,
+and follow instruction to set up your environement.
+
+
+* Modifies template/py files
+* $ make
+* test
+* commit
+* push
+* that's it
+
+
+Detail step
+-----------
+
+all files under /static/ are statically served files.
+some of them are generate by the `$ make` step.
+
+ * template/layout.mustache contail header and footers
+ * template/pages/index.mustache contain body of index.
+
+When pushing, heroku look in `requirements.txt`to know what to install.
+shutdown and restart the application
+
+you can see stdout by doing `heroku logs` for debug
Oops, something went wrong.

0 comments on commit 8b1693c

Please sign in to comment.