slide_hero 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.travis.yml +3 -0
  4. data/Gemfile +4 -0
  5. data/Guardfile +28 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +161 -0
  8. data/Rakefile +9 -0
  9. data/bin/slidehero +37 -0
  10. data/config.ru +14 -0
  11. data/lib/slide_hero/code.rb +16 -0
  12. data/lib/slide_hero/dsl.rb +10 -0
  13. data/lib/slide_hero/grouped_slides.rb +21 -0
  14. data/lib/slide_hero/list.rb +29 -0
  15. data/lib/slide_hero/list_point.rb +26 -0
  16. data/lib/slide_hero/point.rb +27 -0
  17. data/lib/slide_hero/presentation.rb +36 -0
  18. data/lib/slide_hero/slide.rb +47 -0
  19. data/lib/slide_hero/version.rb +3 -0
  20. data/lib/slide_hero/views/_footer.html.erb +0 -0
  21. data/lib/slide_hero/views/_header.html.erb +0 -0
  22. data/lib/slide_hero/views/code.html.erb +3 -0
  23. data/lib/slide_hero/views/empty.html +12 -0
  24. data/lib/slide_hero/views/grouped_slides.html.erb +5 -0
  25. data/lib/slide_hero/views/layout.html.erb +54 -0
  26. data/lib/slide_hero/views/ordered_list.html.erb +5 -0
  27. data/lib/slide_hero/views/slide.html.erb +6 -0
  28. data/lib/slide_hero/views/unordered_list.html.erb +5 -0
  29. data/lib/slide_hero.rb +15 -0
  30. data/slide_hero.gemspec +29 -0
  31. data/templates/new_presentation.tt +11 -0
  32. data/test/fixtures/testclass.rb +5 -0
  33. data/test/minitest_helper.rb +18 -0
  34. data/test/slide_hero/code_spec.rb +29 -0
  35. data/test/slide_hero/dsl_spec.rb +27 -0
  36. data/test/slide_hero/grouped_slides_spec.rb +29 -0
  37. data/test/slide_hero/list_point_spec.rb +34 -0
  38. data/test/slide_hero/list_spec.rb +49 -0
  39. data/test/slide_hero/point_spec.rb +25 -0
  40. data/test/slide_hero/presentation_spec.rb +56 -0
  41. data/test/slide_hero/slide_spec.rb +147 -0
  42. data/test/slide_hero_spec.rb +15 -0
  43. data/vendor/reveal.js/.gitignore +6 -0
  44. data/vendor/reveal.js/.travis.yml +5 -0
  45. data/vendor/reveal.js/Gruntfile.js +132 -0
  46. data/vendor/reveal.js/LICENSE +19 -0
  47. data/vendor/reveal.js/README.md +798 -0
  48. data/vendor/reveal.js/css/print/paper.css +176 -0
  49. data/vendor/reveal.js/css/print/pdf.css +190 -0
  50. data/vendor/reveal.js/css/reveal.css +1649 -0
  51. data/vendor/reveal.js/css/reveal.min.css +7 -0
  52. data/vendor/reveal.js/css/theme/README.md +23 -0
  53. data/vendor/reveal.js/css/theme/beige.css +142 -0
  54. data/vendor/reveal.js/css/theme/default.css +142 -0
  55. data/vendor/reveal.js/css/theme/moon.css +142 -0
  56. data/vendor/reveal.js/css/theme/night.css +130 -0
  57. data/vendor/reveal.js/css/theme/serif.css +132 -0
  58. data/vendor/reveal.js/css/theme/simple.css +132 -0
  59. data/vendor/reveal.js/css/theme/sky.css +139 -0
  60. data/vendor/reveal.js/css/theme/solarized.css +142 -0
  61. data/vendor/reveal.js/css/theme/source/beige.scss +50 -0
  62. data/vendor/reveal.js/css/theme/source/default.scss +42 -0
  63. data/vendor/reveal.js/css/theme/source/moon.scss +68 -0
  64. data/vendor/reveal.js/css/theme/source/night.scss +35 -0
  65. data/vendor/reveal.js/css/theme/source/serif.scss +35 -0
  66. data/vendor/reveal.js/css/theme/source/simple.scss +38 -0
  67. data/vendor/reveal.js/css/theme/source/sky.scss +46 -0
  68. data/vendor/reveal.js/css/theme/source/solarized.scss +74 -0
  69. data/vendor/reveal.js/css/theme/template/mixins.scss +29 -0
  70. data/vendor/reveal.js/css/theme/template/settings.scss +34 -0
  71. data/vendor/reveal.js/css/theme/template/theme.scss +163 -0
  72. data/vendor/reveal.js/examples/assets/image1.png +0 -0
  73. data/vendor/reveal.js/examples/assets/image2.png +0 -0
  74. data/vendor/reveal.js/examples/barebones.html +42 -0
  75. data/vendor/reveal.js/examples/embedded-media.html +49 -0
  76. data/vendor/reveal.js/examples/math.html +185 -0
  77. data/vendor/reveal.js/examples/slide-backgrounds.html +101 -0
  78. data/vendor/reveal.js/js/reveal.js +2788 -0
  79. data/vendor/reveal.js/js/reveal.min.js +8 -0
  80. data/vendor/reveal.js/lib/css/zenburn.css +115 -0
  81. data/vendor/reveal.js/lib/font/league_gothic-webfont.eot +0 -0
  82. data/vendor/reveal.js/lib/font/league_gothic-webfont.svg +230 -0
  83. data/vendor/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
  84. data/vendor/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
  85. data/vendor/reveal.js/lib/font/league_gothic_license +2 -0
  86. data/vendor/reveal.js/lib/js/classList.js +2 -0
  87. data/vendor/reveal.js/lib/js/head.min.js +8 -0
  88. data/vendor/reveal.js/lib/js/html5shiv.js +7 -0
  89. data/vendor/reveal.js/package.json +45 -0
  90. data/vendor/reveal.js/plugin/highlight/highlight.js +31 -0
  91. data/vendor/reveal.js/plugin/leap/leap.js +157 -0
  92. data/vendor/reveal.js/plugin/markdown/example.html +98 -0
  93. data/vendor/reveal.js/plugin/markdown/example.md +31 -0
  94. data/vendor/reveal.js/plugin/markdown/markdown.js +220 -0
  95. data/vendor/reveal.js/plugin/markdown/marked.js +37 -0
  96. data/vendor/reveal.js/plugin/math/math.js +64 -0
  97. data/vendor/reveal.js/plugin/multiplex/client.js +13 -0
  98. data/vendor/reveal.js/plugin/multiplex/index.js +56 -0
  99. data/vendor/reveal.js/plugin/multiplex/master.js +50 -0
  100. data/vendor/reveal.js/plugin/notes/notes.html +259 -0
  101. data/vendor/reveal.js/plugin/notes/notes.js +78 -0
  102. data/vendor/reveal.js/plugin/notes-server/client.js +57 -0
  103. data/vendor/reveal.js/plugin/notes-server/index.js +59 -0
  104. data/vendor/reveal.js/plugin/notes-server/notes.html +142 -0
  105. data/vendor/reveal.js/plugin/postmessage/example.html +39 -0
  106. data/vendor/reveal.js/plugin/postmessage/postmessage.js +42 -0
  107. data/vendor/reveal.js/plugin/print-pdf/print-pdf.js +44 -0
  108. data/vendor/reveal.js/plugin/remotes/remotes.js +39 -0
  109. data/vendor/reveal.js/plugin/search/search.js +196 -0
  110. data/vendor/reveal.js/plugin/zoom-js/zoom.js +256 -0
  111. metadata +277 -0
@@ -0,0 +1,185 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+
7
+ <title>reveal.js - Math Plugin</title>
8
+
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10
+
11
+ <link rel="stylesheet" href="../css/reveal.min.css">
12
+ <link rel="stylesheet" href="../css/theme/night.css" id="theme">
13
+ </head>
14
+
15
+ <body>
16
+
17
+ <div class="reveal">
18
+
19
+ <div class="slides">
20
+
21
+ <section>
22
+ <h2>reveal.js Math Plugin</h2>
23
+ <p>A thin wrapper for MathJax</p>
24
+ </section>
25
+
26
+ <section>
27
+ <h3>The Lorenz Equations</h3>
28
+
29
+ \[\begin{aligned}
30
+ \dot{x} &amp; = \sigma(y-x) \\
31
+ \dot{y} &amp; = \rho x - y - xz \\
32
+ \dot{z} &amp; = -\beta z + xy
33
+ \end{aligned} \]
34
+ </section>
35
+
36
+ <section>
37
+ <h3>The Cauchy-Schwarz Inequality</h3>
38
+
39
+ <script type="math/tex; mode=display">
40
+ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
41
+ </script>
42
+ </section>
43
+
44
+ <section>
45
+ <h3>A Cross Product Formula</h3>
46
+
47
+ \[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
48
+ \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
49
+ \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
50
+ \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0
51
+ \end{vmatrix} \]
52
+ </section>
53
+
54
+ <section>
55
+ <h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
56
+
57
+ \[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
58
+ </section>
59
+
60
+ <section>
61
+ <h3>An Identity of Ramanujan</h3>
62
+
63
+ \[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
64
+ 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
65
+ {1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
66
+ </section>
67
+
68
+ <section>
69
+ <h3>A Rogers-Ramanujan Identity</h3>
70
+
71
+ \[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
72
+ \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
73
+ </section>
74
+
75
+ <section>
76
+ <h3>Maxwell&#8217;s Equations</h3>
77
+
78
+ \[ \begin{aligned}
79
+ \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\
80
+ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\
81
+ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned}
82
+ \]
83
+ </section>
84
+
85
+ <section>
86
+ <section>
87
+ <h3>The Lorenz Equations</h3>
88
+
89
+ <div class="fragment">
90
+ \[\begin{aligned}
91
+ \dot{x} &amp; = \sigma(y-x) \\
92
+ \dot{y} &amp; = \rho x - y - xz \\
93
+ \dot{z} &amp; = -\beta z + xy
94
+ \end{aligned} \]
95
+ </div>
96
+ </section>
97
+
98
+ <section>
99
+ <h3>The Cauchy-Schwarz Inequality</h3>
100
+
101
+ <div class="fragment">
102
+ \[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]
103
+ </div>
104
+ </section>
105
+
106
+ <section>
107
+ <h3>A Cross Product Formula</h3>
108
+
109
+ <div class="fragment">
110
+ \[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
111
+ \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
112
+ \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
113
+ \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0
114
+ \end{vmatrix} \]
115
+ </div>
116
+ </section>
117
+
118
+ <section>
119
+ <h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
120
+
121
+ <div class="fragment">
122
+ \[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
123
+ </div>
124
+ </section>
125
+
126
+ <section>
127
+ <h3>An Identity of Ramanujan</h3>
128
+
129
+ <div class="fragment">
130
+ \[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
131
+ 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
132
+ {1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
133
+ </div>
134
+ </section>
135
+
136
+ <section>
137
+ <h3>A Rogers-Ramanujan Identity</h3>
138
+
139
+ <div class="fragment">
140
+ \[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
141
+ \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
142
+ </div>
143
+ </section>
144
+
145
+ <section>
146
+ <h3>Maxwell&#8217;s Equations</h3>
147
+
148
+ <div class="fragment">
149
+ \[ \begin{aligned}
150
+ \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\
151
+ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\
152
+ \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned}
153
+ \]
154
+ </div>
155
+ </section>
156
+ </section>
157
+
158
+ </div>
159
+
160
+ </div>
161
+
162
+ <script src="../lib/js/head.min.js"></script>
163
+ <script src="../js/reveal.min.js"></script>
164
+
165
+ <script>
166
+
167
+ Reveal.initialize({
168
+ history: true,
169
+ transition: 'linear',
170
+
171
+ math: {
172
+ // mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
173
+ config: 'TeX-AMS_HTML-full'
174
+ },
175
+
176
+ dependencies: [
177
+ { src: '../lib/js/classList.js' },
178
+ { src: '../plugin/math/math.js', async: true }
179
+ ]
180
+ });
181
+
182
+ </script>
183
+
184
+ </body>
185
+ </html>
@@ -0,0 +1,101 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+
7
+ <title>reveal.js - Slide Backgrounds</title>
8
+
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10
+
11
+ <link rel="stylesheet" href="../css/reveal.min.css">
12
+ <link rel="stylesheet" href="../css/theme/serif.css" id="theme">
13
+ </head>
14
+
15
+ <body>
16
+
17
+ <div class="reveal">
18
+
19
+ <div class="slides">
20
+
21
+ <section data-background="#00ffff">
22
+ <h2>data-background: #00ffff</h2>
23
+ </section>
24
+
25
+ <section data-background="#bb00bb">
26
+ <h2>data-background: #bb00bb</h2>
27
+ </section>
28
+
29
+ <section>
30
+ <section data-background="#ff0000">
31
+ <h2>data-background: #ff0000</h2>
32
+ </section>
33
+ <section data-background="rgba(0, 0, 0, 0.2)">
34
+ <h2>data-background: rgba(0, 0, 0, 0.2)</h2>
35
+ </section>
36
+ <section data-background="salmon">
37
+ <h2>data-background: salmon</h2>
38
+ </section>
39
+ </section>
40
+
41
+ <section data-background="rgba(0, 100, 100, 0.2)">
42
+ <section>
43
+ <h2>Background applied to stack</h2>
44
+ </section>
45
+ <section>
46
+ <h2>Background applied to stack</h2>
47
+ </section>
48
+ <section data-background="rgba(100, 0, 0, 0.2)">
49
+ <h2>Background applied to slide inside of stack</h2>
50
+ </section>
51
+ </section>
52
+
53
+ <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
54
+ <h2>Background image</h2>
55
+ </section>
56
+
57
+ <section>
58
+ <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
59
+ <h2>Background image</h2>
60
+ </section>
61
+ <section data-background-transition="slide" data-background="assets/image1.png" style="background: rgba(255,255,255,0.9)">
62
+ <h2>Background image</h2>
63
+ </section>
64
+ </section>
65
+
66
+ <section data-background="assets/image2.png" data-background-size="100px" data-background-repeat="repeat" data-background-color="#111" style="background: rgba(255,255,255,0.9)">
67
+ <h2>Background image</h2>
68
+ <pre>data-background-size="100px" data-background-repeat="repeat" data-background-color="#111"</pre>
69
+ </section>
70
+
71
+ <section data-background="#888888">
72
+ <h2>Same background twice (1/2)</h2>
73
+ </section>
74
+ <section data-background="#888888">
75
+ <h2>Same background twice (2/2)</h2>
76
+ </section>
77
+
78
+ </div>
79
+
80
+ </div>
81
+
82
+ <script src="../lib/js/head.min.js"></script>
83
+ <script src="../js/reveal.min.js"></script>
84
+
85
+ <script>
86
+
87
+ // Full list of configuration options available here:
88
+ // https://github.com/hakimel/reveal.js#configuration
89
+ Reveal.initialize({
90
+ center: true,
91
+ // rtl: true,
92
+
93
+ transition: 'linear',
94
+ // transitionSpeed: 'slow',
95
+ // backgroundTransition: 'linear'
96
+ });
97
+
98
+ </script>
99
+
100
+ </body>
101
+ </html>