com presentations: Some minor tweaks to make reveal.js generation work better: slides/intro/atomic3b.xml slides/intro/atomic3c.xml slides/intro/php55.xml slides/intro/php56.xml
[email protected] (Rasmus Lerdorf)
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Commit: b5f522bc5cdf021a314d2b3e8e5e1b0f524fd5b1 Author: Rasmus Lerdorf <[email protected]> Mon, 10 Mar 2014 18:11:40 -0700 Parents: 86b304ca70d946a717a3f211febd74432bd6c9ae Branches: master Link: http://git.php.net/?p=presentations.git;a=commitdiff;h=b5f522bc5cdf021a314d2b3e8e5e1b0f524fd5b1 Log: Some minor tweaks to make reveal.js generation work better Changed paths: M slides/intro/atomic3b.xml M slides/intro/atomic3c.xml M slides/intro/php55.xml M slides/intro/php56.xml Diff: diff --git a/slides/intro/atomic3b.xml b/slides/intro/atomic3b.xml index 6b9648d..bb41a71 100644 --- a/slides/intro/atomic3b.xml +++ b/slides/intro/atomic3b.xml @@ -1,4 +1,4 @@ -<slide title="Deploying Web Apps"> +<slide title="Deploying Web Apps" > <break lines="5" /> diff --git a/slides/intro/atomic3c.xml b/slides/intro/atomic3c.xml index dbd2be2..d246d23 100644 --- a/slides/intro/atomic3c.xml +++ b/slides/intro/atomic3c.xml @@ -1,4 +1,4 @@ -<slide title="Deploying Web Apps"> +<slide title="Deploying Web Apps" > <break lines="5"/> <image filename="dep3.png" align="center" height="428" width="680"/> diff --git a/slides/intro/php55.xml b/slides/intro/php55.xml index d69c71b..27b1efb 100644 --- a/slides/intro/php55.xml +++ b/slides/intro/php55.xml @@ -1,4 +1,4 @@ -<slide title="PHP 5.5"> +<slide title="PHP 5.5" section="performance"> <break lines="1" /> <blurb fontsize="6em">Performance Improvements</blurb> @@ -8,7 +8,7 @@ <item>Bundled opcode cache</item> </list> -<break lines="1" /> +<break lines="1" section="generators" /> <blurb fontsize="4em">✔ Generators</blurb> <example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php function xrange($start, $end) { @@ -20,7 +20,7 @@ foreach (xrange(0, 5) as $i) { echo $i, "\n"; }]]></example> -<break lines="1" /> +<break lines="1" section="finally" /> <blurb fontsize="4em">✔ finally</blurb> <example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php $db = mysqli_connect(); @@ -30,7 +30,7 @@ try { mysqli_close($db); }]]></example> -<break lines="1" /> +<break lines="1" section="foreachlist" /> <blurb fontsize="4em">✔ list() in foreach</blurb> <example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php $names = [ ['John','Smith'], ['Fred','Johnson'] ]; @@ -38,14 +38,14 @@ foreach($names as list($first,$last)) { echo $first,$last; }]]></example> -<break lines="1" /> +<break lines="1" section="constarray" /> <blurb fontsize="4em">✔ Const array/string Dereferencing</blurb> <example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php echo array(1, 2, 3)[0]; //output 1 echo "foobar"[3]; //output b echo [1,3,4][2]; //output 4]]></example> -<break lines="1" /> +<break lines="1" section="others" /> <blurb fontsize="4em">✔ empty() support for functions/expressions</blurb> <break lines="1" /> diff --git a/slides/intro/php56.xml b/slides/intro/php56.xml index c0c871d..74e7939 100644 --- a/slides/intro/php56.xml +++ b/slides/intro/php56.xml @@ -1,4 +1,4 @@ -<slide title="PHP 5.6"> +<slide title="PHP 5.6" section="php56"> <break lines="1" /> <blurb fontsize="4em">✔ Variadic functions</blurb> @@ -14,7 +14,7 @@ class MySQL implements DB { $q = 'SELECT * FROM users WHERE id = ?'; $user = $db->query($q, $userID)->fetch();]]></example> -<break lines="1" /> +<break lines="1" section="php56unpack"/> <blurb fontsize="4em">✔ Argument Unpacking</blurb> <example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php // A better call_user_func_args @@ -34,7 +34,7 @@ class Foo { const BAZ = self::GREETING." WORLD!" }]]></example> -<break lines="1" /> +<break lines="1" section="php56pow"/> <blurb fontsize="4em">✔ Add right-associative power operator **</blurb> <example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php echo 2 ** 3 ** 2; // 512 (not 64) @@ -56,7 +56,7 @@ echo $n**512; 13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084096 ]]></example> -<break lines="1" /> +<break lines="1" section="php56use"/> <blurb fontsize="4em">✔ use function and use const namespace imports</blurb> <example fontsize="2em" marginleft="7em" result='0' title=""><![CDATA[<?php include 'template.inc';