├── README.adoc ├── codesamples ├── .gitignore ├── .idea │ ├── .name │ ├── codeStyles │ │ ├── Project.xml │ │ └── codeStyleConfig.xml │ ├── compiler.xml │ ├── gradle.xml │ ├── inspectionProfiles │ │ ├── exxcellent_intellij_2019_1.xml │ │ └── profiles_settings.xml │ ├── libraries │ │ ├── Gradle__org_apiguardian_apiguardian_api_1_0_0.xml │ │ ├── Gradle__org_jetbrains_annotations_17_0_0.xml │ │ ├── Gradle__org_junit_jupiter_junit_jupiter_api_5_4_2.xml │ │ ├── Gradle__org_junit_jupiter_junit_jupiter_engine_5_4_2.xml │ │ ├── Gradle__org_junit_platform_junit_platform_commons_1_4_2.xml │ │ ├── Gradle__org_junit_platform_junit_platform_engine_1_4_2.xml │ │ └── Gradle__org_opentest4j_opentest4j_1_1_1.xml │ ├── misc.xml │ ├── modules.xml │ ├── modules │ │ ├── Java_JDK_9-13_Examples.iml │ │ ├── Java_JDK_9-13_Examples.main.iml │ │ └── Java_JDK_9-13_Examples.test.iml │ ├── runConfigurations │ │ └── All_Tests.xml │ └── vcs.xml ├── LICENSE ├── build.gradle.kts ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── jshell-example.txt ├── playground-dependent │ ├── playground-dependent.iml │ └── src │ │ └── main │ │ └── java │ │ ├── de │ │ └── exxcellent │ │ │ └── anothermodule │ │ │ ├── RetrieveModuleInfo.java │ │ │ ├── TestJigsawSPI.java │ │ │ ├── TestModuleEncapuslation.java │ │ │ └── spi │ │ │ └── MastercardBillingService.java │ │ └── module-info.java ├── playground │ ├── playground.iml │ └── src │ │ └── main │ │ └── java │ │ ├── de │ │ └── exxcellent │ │ │ └── java9 │ │ │ ├── collections │ │ │ └── ImmutableCollections.java │ │ │ └── jigsaw │ │ │ └── spi │ │ │ └── BillingService.java │ │ └── module-info.java ├── run-with-modules ├── settings.gradle.kts └── src │ └── test │ ├── java │ └── de │ │ └── bentolor │ │ └── java9to13samples │ │ ├── collections │ │ ├── CollectorSamples.java │ │ ├── ImmutableCollectionFactory.java │ │ ├── InputStreamSamples.java │ │ └── StreamSamples.java │ │ ├── core │ │ └── StringSamples.java │ │ ├── http │ │ └── HttpClientSamples.java │ │ ├── io │ │ └── FilesSamples.java │ │ ├── language │ │ ├── LocalVarTypeInference.java │ │ ├── MillingProjectCoin.java │ │ └── SwitchExpression.java │ │ ├── process │ │ └── ProcessHandleSamples.java │ │ ├── tools │ │ ├── ExecutableJavaSource │ │ └── SingleClassJava.java │ │ └── util │ │ ├── InputStreamSamples.java │ │ ├── OptionalSamples.java │ │ └── StackWalkerSamples.java │ └── resources │ └── sample-text.txt └── docs ├── .gitignore ├── Gemfile ├── LICENSE ├── LICENSE.html ├── css ├── atom-one-light.css ├── presentation.css └── sky.css ├── extended.html ├── fonts ├── Indie+Flower_400_normal.eot ├── Indie+Flower_400_normal.svg ├── Indie+Flower_400_normal.ttf ├── Indie+Flower_400_normal.woff ├── Indie+Flower_400_normal.woff2 ├── Open+Sans_400_italic.ttf ├── Open+Sans_400_italic.woff ├── Open+Sans_400_italic.woff2 ├── Open+Sans_400_normal.eot ├── Open+Sans_400_normal.svg ├── Open+Sans_400_normal.ttf ├── Open+Sans_400_normal.woff ├── Open+Sans_400_normal.woff2 ├── Open+Sans_700_italic.ttf ├── Open+Sans_700_italic.woff ├── Open+Sans_700_italic.woff2 ├── Open+Sans_700_normal.ttf ├── Open+Sans_700_normal.woff ├── Open+Sans_700_normal.woff2 ├── Quicksand_400_normal.eot ├── Quicksand_400_normal.svg ├── Quicksand_400_normal.ttf ├── Quicksand_400_normal.woff ├── Quicksand_400_normal.woff2 ├── Quicksand_700_normal.ttf ├── Quicksand_700_normal.woff ├── Quicksand_700_normal.woff2 ├── fontawesome │ ├── LICENSE.txt │ ├── css │ │ ├── all.css │ │ ├── all.min.css │ │ ├── brands.css │ │ ├── brands.min.css │ │ ├── fontawesome.css │ │ ├── fontawesome.min.css │ │ ├── regular.css │ │ ├── regular.min.css │ │ ├── solid.css │ │ ├── solid.min.css │ │ ├── svg-with-js.css │ │ ├── svg-with-js.min.css │ │ ├── v4-shims.css │ │ └── v4-shims.min.css │ └── webfonts │ │ ├── fa-brands-400.eot │ │ ├── fa-brands-400.svg │ │ ├── fa-brands-400.ttf │ │ ├── fa-brands-400.woff │ │ ├── fa-brands-400.woff2 │ │ ├── fa-regular-400.eot │ │ ├── fa-regular-400.svg │ │ ├── fa-regular-400.ttf │ │ ├── fa-regular-400.woff │ │ ├── fa-regular-400.woff2 │ │ ├── fa-solid-900.eot │ │ ├── fa-solid-900.svg │ │ ├── fa-solid-900.ttf │ │ ├── fa-solid-900.woff │ │ └── fa-solid-900.woff2 ├── indie-flower.css ├── opensans.css └── quicksand.css ├── images ├── adopt-openjdk-entry.png ├── adopt-openjdk-plattforms.png ├── adopt-openjdk-sponsors.png ├── adopt-openjdk-support.png ├── background-landscape-light-orange.jpg ├── background-landscape-light.jpg ├── background-landscape.jpg ├── bentolor-java913-url-qrcode.png ├── graalvm-architecture.png ├── java-mission-control-center.png ├── jdk-timeline.png ├── loom_banner1.png ├── manuscript.jpg └── tweet-jdk-evolving.png ├── index.html ├── live.js.disable ├── mueller.html ├── presentation-agenda.adoc ├── presentation-api.adoc ├── presentation-appendix.adoc ├── presentation-highlights.adoc ├── presentation-intro.adoc ├── presentation-language.adoc ├── presentation-outlook.adoc ├── presentation-performance.adoc ├── presentation-tooling.adoc ├── presentation.adoc ├── presentation.html ├── render ├── reveal.js ├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bower.json ├── css │ ├── print │ │ ├── paper.css │ │ └── pdf.css │ ├── reset.css │ ├── reveal.css │ ├── reveal.scss │ └── theme │ │ ├── README.md │ │ ├── beige.css │ │ ├── black.css │ │ ├── blood.css │ │ ├── league.css │ │ ├── moon.css │ │ ├── night.css │ │ ├── serif.css │ │ ├── simple.css │ │ ├── sky.css │ │ ├── solarized.css │ │ ├── source │ │ ├── beige.scss │ │ ├── black.scss │ │ ├── blood.scss │ │ ├── league.scss │ │ ├── moon.scss │ │ ├── night.scss │ │ ├── serif.scss │ │ ├── simple.scss │ │ ├── sky.scss │ │ ├── solarized.scss │ │ └── white.scss │ │ ├── template │ │ ├── mixins.scss │ │ ├── settings.scss │ │ └── theme.scss │ │ └── white.css ├── demo.html ├── gruntfile.js ├── index.html ├── js │ └── reveal.js ├── lib │ ├── css │ │ ├── monokai.css │ │ └── zenburn.css │ ├── font │ │ ├── league-gothic │ │ │ ├── LICENSE │ │ │ ├── league-gothic.css │ │ │ ├── league-gothic.eot │ │ │ ├── league-gothic.ttf │ │ │ └── league-gothic.woff │ │ └── source-sans-pro │ │ │ ├── LICENSE │ │ │ ├── source-sans-pro-italic.eot │ │ │ ├── source-sans-pro-italic.ttf │ │ │ ├── source-sans-pro-italic.woff │ │ │ ├── source-sans-pro-regular.eot │ │ │ ├── source-sans-pro-regular.ttf │ │ │ ├── source-sans-pro-regular.woff │ │ │ ├── source-sans-pro-semibold.eot │ │ │ ├── source-sans-pro-semibold.ttf │ │ │ ├── source-sans-pro-semibold.woff │ │ │ ├── source-sans-pro-semibolditalic.eot │ │ │ ├── source-sans-pro-semibolditalic.ttf │ │ │ ├── source-sans-pro-semibolditalic.woff │ │ │ └── source-sans-pro.css │ └── js │ │ ├── html5shiv.js │ │ └── promise.js ├── package-lock.json ├── package.json ├── plugin │ ├── highlight │ │ └── highlight.js │ ├── markdown │ │ ├── example.html │ │ ├── example.md │ │ ├── markdown.js │ │ └── marked.js │ ├── math │ │ └── math.js │ ├── multiplex │ │ ├── client.js │ │ ├── index.js │ │ ├── master.js │ │ └── package.json │ ├── notes-server │ │ ├── client.js │ │ ├── index.js │ │ └── notes.html │ ├── notes │ │ ├── notes.html │ │ └── notes.js │ ├── print-pdf │ │ └── print-pdf.js │ ├── search │ │ └── search.js │ └── zoom-js │ │ └── zoom.js └── test │ ├── assets │ ├── external-script-a.js │ ├── external-script-b.js │ ├── external-script-c.js │ └── external-script-d.js │ ├── examples │ ├── assets │ │ ├── beeping.txt │ │ ├── beeping.wav │ │ ├── image1.png │ │ └── image2.png │ ├── barebones.html │ ├── embedded-media.html │ ├── math.html │ ├── slide-backgrounds.html │ └── slide-transitions.html │ ├── qunit-2.5.0.css │ ├── qunit-2.5.0.js │ ├── simple.md │ ├── test-dependencies-async.html │ ├── test-dependencies.html │ ├── test-grid-navigation.html │ ├── test-iframes.html │ ├── test-markdown-element-attributes.html │ ├── test-markdown-element-attributes.js │ ├── test-markdown-external.html │ ├── test-markdown-external.js │ ├── test-markdown-options.html │ ├── test-markdown-options.js │ ├── test-markdown-slide-attributes.html │ ├── test-markdown-slide-attributes.js │ ├── test-markdown.html │ ├── test-markdown.js │ ├── test-pdf.html │ ├── test-pdf.js │ ├── test-plugins.html │ ├── test-state.html │ ├── test.html │ └── test.js └── videos ├── api-diff-scroll.mp4 ├── coffee-beans.mp4 ├── flowers.mp4 ├── fog-hands.mp4 ├── hammer.mp4 ├── industrial.mp4 ├── jshell-demo.mp4 ├── keyboard.mp4 ├── prediction.mp4 ├── relaxing.mp4 ├── type-infer-styleguide.mp4 └── woman-study.mp4 /README.adoc: -------------------------------------------------------------------------------- 1 | = Power Catch-up – Everything Practical and Important in Java 9 to 13 2 | 3 | This repository is a HTML5 https://asciidoctor.org/[Asciidoctor] / 4 | https://asciidoctor.org/docs/asciidoctor-revealjs[Asciidoctor-RevealJS] 5 | based presentation about everyting new and important since Java 8. 6 | 7 | == Abstract 8 | Since Java 9, it's all happening fast: In the 6-month cycle, Oracle releases new major versions, so that one can easily lose track of things. Due to the changed support model, many projects are likely to get in touch with Java versions beyond the long-established "eight" in 2019. Time for us professionals to get up to speed in a concentrated power session! 9 | 10 | This session tries to provide a structured overall overview of the changes from Java 9 to 13 and at the same time to emphasize the important and relevant innovations in concrete examples. For example, we learn why collections are now doing better, that variables and `case` statements have gained new opportunities in the Model Contest and how Microbenchmark Suite and Flight Recorder are helping to identify performance issues. We also do not hide from our fears and learn how serious it is about eliminating `finalize()` or problems with jigsaw and how `jdeps` can help us with the upgrade from nasty surprises. 11 | 12 | A quick look at the current status of JDK14 + helps with personal needs planning for the next fitness session. 13 | 14 | == Slides 15 | Can be found online at https://bentolor.github.io/java9to13/ 16 | 17 | The sources are in `docs` 18 | 19 | For licensing details see the accompagning `LICENCE` file in the directory. 20 | 21 | == Example code 22 | Mostly used to test/present different code. To run set your `JDK_HOME` to a 23 | Java 13+ installation and run with `./gradlew test` 24 | 25 | For licensing details see the accompagning `LICENCE` file in the directory. 26 | -------------------------------------------------------------------------------- /codesamples/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle/ 2 | build/ 3 | out/ 4 | 5 | # IDEA 6 | .idea/workspace.xml 7 | -------------------------------------------------------------------------------- /codesamples/.idea/.name: -------------------------------------------------------------------------------- 1 | Java JDK 9-13 Examples -------------------------------------------------------------------------------- /codesamples/.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /codesamples/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /codesamples/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | -------------------------------------------------------------------------------- /codesamples/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 21 | 22 | -------------------------------------------------------------------------------- /codesamples/.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /codesamples/.idea/libraries/Gradle__org_apiguardian_apiguardian_api_1_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/libraries/Gradle__org_jetbrains_annotations_17_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/libraries/Gradle__org_junit_jupiter_junit_jupiter_api_5_4_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/libraries/Gradle__org_junit_jupiter_junit_jupiter_engine_5_4_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/libraries/Gradle__org_junit_platform_junit_platform_commons_1_4_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/libraries/Gradle__org_junit_platform_junit_platform_engine_1_4_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/libraries/Gradle__org_opentest4j_opentest4j_1_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /codesamples/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /codesamples/.idea/modules/Java_JDK_9-13_Examples.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /codesamples/.idea/modules/Java_JDK_9-13_Examples.main.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/.idea/modules/Java_JDK_9-13_Examples.test.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /codesamples/.idea/runConfigurations/All_Tests.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 18 | 19 | 21 | 22 | -------------------------------------------------------------------------------- /codesamples/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /codesamples/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Benjamin Schmid @bentolor 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /codesamples/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | `java-library` 3 | } 4 | 5 | repositories { 6 | mavenCentral() 7 | } 8 | 9 | java { 10 | sourceCompatibility = JavaVersion.VERSION_12 11 | group = "de.bentolor.java9to13samples" 12 | } 13 | 14 | tasks.withType { 15 | options.compilerArgs.add("--enable-preview") 16 | } 17 | tasks.test { 18 | useJUnitPlatform() 19 | jvmArgs("--enable-preview") 20 | } 21 | 22 | dependencies { 23 | compile("org.jetbrains:annotations:17.0.0") 24 | testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.2") 25 | testImplementation("org.junit.jupiter:junit-jupiter-engine:5.4.2") 26 | } 27 | -------------------------------------------------------------------------------- /codesamples/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/codesamples/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /codesamples/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /codesamples/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS="-Xmx64m" 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /codesamples/jshell-example.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/codesamples/jshell-example.txt -------------------------------------------------------------------------------- /codesamples/playground-dependent/playground-dependent.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /codesamples/playground-dependent/src/main/java/de/exxcellent/anothermodule/RetrieveModuleInfo.java: -------------------------------------------------------------------------------- 1 | package de.exxcellent.anothermodule; 2 | 3 | import java.io.IOException; 4 | import java.io.InputStream; 5 | import java.lang.module.ModuleDescriptor; 6 | import static java.lang.System.out; 7 | 8 | public class RetrieveModuleInfo { 9 | 10 | /** 11 | * Show module infos 12 | */ 13 | public static void main(String[] args) throws IOException { 14 | ModuleDescriptor descriptor = RetrieveModuleInfo.class.getModule().getDescriptor(); 15 | 16 | if (descriptor == null) { 17 | out.println("JVM started without '-mp' option. Trying to load module-info manually..."); 18 | descriptor = readModuleDescriptorFromBytecode(); 19 | } 20 | 21 | printModule(descriptor); 22 | } 23 | 24 | static void printModule(ModuleDescriptor descriptor) { 25 | out.println("Module " + descriptor.name()); 26 | descriptor.exports().forEach( 27 | export -> out.println("\texports " + export.source()) 28 | ); 29 | descriptor.requires().forEach( 30 | requires -> out.println("\trequires " + requires.name() + " " + requires.modifiers()) 31 | ); 32 | } 33 | 34 | static ModuleDescriptor readModuleDescriptorFromBytecode() throws IOException { 35 | InputStream moduleInfo = RetrieveModuleInfo.class.getClassLoader().getResourceAsStream("module-info.class"); 36 | return ModuleDescriptor.read(moduleInfo); 37 | } 38 | 39 | 40 | } -------------------------------------------------------------------------------- /codesamples/playground-dependent/src/main/java/de/exxcellent/anothermodule/TestJigsawSPI.java: -------------------------------------------------------------------------------- 1 | package de.exxcellent.anothermodule; 2 | 3 | import de.exxcellent.java9.jigsaw.spi.BillingService; 4 | import static java.lang.System.out; 5 | 6 | public class TestJigsawSPI { 7 | 8 | public static void main(String[] args) { 9 | BillingService billing = BillingService.getInstance(); 10 | out.println(billing.takeMyMoney()); 11 | } 12 | } -------------------------------------------------------------------------------- /codesamples/playground-dependent/src/main/java/de/exxcellent/anothermodule/TestModuleEncapuslation.java: -------------------------------------------------------------------------------- 1 | package de.exxcellent.anothermodule; 2 | 3 | import de.exxcellent.java9.collections.ImmutableCollections; 4 | 5 | /** 6 | * Test module encapsulation 7 | */ 8 | public class TestModuleEncapuslation { 9 | 10 | public static void main(String[] args) { 11 | ImmutableCollections.main(args); 12 | 13 | // Would break, as it is not exported. Though it's public! 14 | // de.exxcellent.java9.util.InputStreamExample.main(args); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /codesamples/playground-dependent/src/main/java/de/exxcellent/anothermodule/spi/MastercardBillingService.java: -------------------------------------------------------------------------------- 1 | package de.exxcellent.anothermodule.spi; 2 | 3 | import de.exxcellent.java9.jigsaw.spi.BillingService; 4 | 5 | public class MastercardBillingService extends BillingService { 6 | 7 | @Override 8 | public String takeMyMoney() { 9 | return "Mastercard billed the money!"; 10 | } 11 | } -------------------------------------------------------------------------------- /codesamples/playground-dependent/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | module anothermodule { 2 | exports de.exxcellent.anothermodule; 3 | requires de.exxcellent.java9; 4 | 5 | // Provide Service instance (SPI with Jigsaw modules) 6 | provides de.exxcellent.java9.jigsaw.spi.BillingService 7 | with de.exxcellent.anothermodule.spi.MastercardBillingService; 8 | } -------------------------------------------------------------------------------- /codesamples/playground/playground.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /codesamples/playground/src/main/java/de/exxcellent/java9/collections/ImmutableCollections.java: -------------------------------------------------------------------------------- 1 | package de.exxcellent.java9.collections; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | import java.util.Set; 6 | 7 | import static java.lang.System.out; 8 | 9 | public class ImmutableCollections { 10 | 11 | /** 12 | * Create immutable collections on the fly. 13 | * Note: They do not accept {@code null} or duplicate entries (Set/Map) 14 | */ 15 | public static void main(String args[]) { 16 | List listOfNumbers = List.of(1, 2, 3, 4, 5/*, null*/); 17 | out.println(listOfNumbers); 18 | 19 | Set setOfNumbers = Set.of(1, 2, 3, 4, 5/*, 1*/); 20 | out.println(setOfNumbers); 21 | 22 | Map mapOfString = Map.of("key1", "value1", "key2", "value2"); 23 | out.println(mapOfString); 24 | 25 | Map moreMapOfString = Map.ofEntries( 26 | Map.entry("key1", "value1"), 27 | Map.entry("key2", "value2")/*, 28 | Map.entry("key1", "value3")*/ 29 | ); 30 | out.println(moreMapOfString); 31 | } 32 | } -------------------------------------------------------------------------------- /codesamples/playground/src/main/java/de/exxcellent/java9/jigsaw/spi/BillingService.java: -------------------------------------------------------------------------------- 1 | package de.exxcellent.java9.jigsaw.spi; 2 | 3 | import java.util.ServiceLoader; 4 | 5 | public abstract class BillingService { 6 | 7 | /** Default method to fetch first module-provided implementation. */ 8 | public static BillingService getInstance() { 9 | return ServiceLoader.load(BillingService.class).findFirst().orElseThrow(); 10 | } 11 | 12 | public abstract String takeMyMoney(); 13 | } 14 | -------------------------------------------------------------------------------- /codesamples/playground/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | import de.exxcellent.java9.jigsaw.spi.BillingService; 2 | 3 | module de.exxcellent.java9 { 4 | exports de.exxcellent.java9.collections; 5 | 6 | // Depend on an offficial JDK modules 7 | // full list see http://cr.openjdk.java.net/~mr/jigsaw/ea/module-summary.html 8 | requires java.net.http; 9 | 10 | // Service example (SPI with Jigsaw modules) 11 | exports de.exxcellent.java9.jigsaw.spi; 12 | uses BillingService; 13 | } -------------------------------------------------------------------------------- /codesamples/run-with-modules: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # This shows how to compile & run the example 5 | # modules using the new Java9 command line parameters 6 | # 7 | 8 | # make module directories 9 | mkdir -p target/module/de.exxcellent.java9 10 | mkdir -p target/module/anothermodule 11 | 12 | # compiling 13 | echo "=== Compiling playground" 14 | javac $(find playground/src/main/java -name "*.java") \ 15 | -d target/module/de.exxcellent.java9 16 | 17 | echo -e "\n=== Compiling playground-dependent" 18 | javac $(find playground-dependent/src/main/java -name "*.java")\ 19 | -d target/module/anothermodule \ 20 | -modulepath target/module 21 | 22 | $ java -modulepath target/module \ 23 | -m anothermodule/de.exxcellent.anothermodule.TestJigsawSPI 24 | 25 | echo -e "\n=== Running anothermodule/de.exxcellent.anothermodule.RetrieveModuleInfo" 26 | java -modulepath target/module -m anothermodule/de.exxcellent.anothermodule.RetrieveModuleInfo 27 | 28 | 29 | echo -e "\n=== Running anothermodule/de.exxcellent.anothermodule.TestJigsawSPI" 30 | java -modulepath target/module \ 31 | -m anothermodule/de.exxcellent.anothermodule.TestJigsawSPI 32 | -------------------------------------------------------------------------------- /codesamples/settings.gradle.kts: -------------------------------------------------------------------------------- 1 | rootProject.name = "Java JDK 9-13 Examples" -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/collections/CollectorSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.collections; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | import org.junit.jupiter.api.Test; 5 | 6 | import java.util.Collection; 7 | import java.util.List; 8 | import java.util.stream.Collectors; 9 | import java.util.stream.Stream; 10 | 11 | import static org.junit.jupiter.api.Assertions.assertEquals; 12 | 13 | /** 14 | * @author Benjamin Schmid 15 | */ 16 | public class CollectorSamples { 17 | 18 | @Test 19 | void umodifieableCollectionCollectors() { 20 | intStream().collect(Collectors.toUnmodifiableList()); 21 | intStream().collect(Collectors.toUnmodifiableSet()); 22 | intStream().collect(Collectors.toUnmodifiableMap(i -> i, Math::abs)); 23 | } 24 | 25 | @NotNull 26 | private Stream intStream() { 27 | return Stream.of(6, -12, -1, 3, 7, 5); 28 | } 29 | 30 | @Test 31 | void filteringCollector() { 32 | var filteredList = intStream() 33 | .collect(Collectors.filtering(i -> i<6, Collectors.toList())); 34 | assertEquals(List.of(-12, -1, 3, 5), filteredList); 35 | } 36 | 37 | @Test 38 | void flatMapExample() { 39 | var list1 = List.of(1, 2, 3); 40 | var list2 = List.of(5, 3); 41 | var listOfCollections = List.of(list1, list2, list1); 42 | 43 | var flattenedList = listOfCollections.stream() 44 | .flatMap(Collection::stream) 45 | .collect(Collectors.toList()); 46 | 47 | assertEquals(List.of(1, 2, 3, 5, 3, 1, 2, 3), flattenedList); 48 | } 49 | 50 | @Test 51 | void teeingSample() { 52 | var numStream = Stream.of(8, 12, -1, 3, 6, 5); 53 | assertEquals(6.82d, rms(numStream), 0.019); 54 | } 55 | 56 | double rms(Stream numStream) { 57 | double rms = numStream.collect( 58 | Collectors.teeing( // apply two two collectors 59 | Collectors.summingDouble(i -> i * i), // collector #1 60 | Collectors.counting(), // collector #2 61 | (sum, n) -> Math.sqrt(sum / n) // final join op. 62 | ) 63 | ); 64 | return rms; 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/collections/ImmutableCollectionFactory.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.collections; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.util.*; 6 | 7 | import static java.lang.System.out; 8 | import static org.junit.jupiter.api.Assertions.assertEquals; 9 | import static org.junit.jupiter.api.Assertions.assertThrows; 10 | 11 | public class ImmutableCollectionFactory { 12 | 13 | /** 14 | * Create immutable collections on the fly. 15 | * Note: They do not accept {@code null} or duplicate entries (Set/Map) 16 | */ 17 | @Test 18 | void createValueCollections() { 19 | List java8ListOfInts = 20 | Collections.unmodifiableList(Arrays.asList(1, 2, 3, 4, 5)); 21 | out.println(java8ListOfInts); 22 | 23 | // /* Commented-out */ code will produce a runtime-error! 24 | 25 | List listOfInts = List.of(1, 2, 3, 4, 5/*, null */); 26 | out.println(listOfInts); 27 | 28 | Set setOfNumbers = Set.of(1, 2, 3, 4, 5/*, 1 */); 29 | out.println(setOfNumbers); 30 | 31 | // up to 10 key/value pairs 32 | Map mapOfString = Map.of(1, "a", 2, "b"); 33 | out.println(mapOfString); 34 | 35 | Map moreMapOfString = Map.ofEntries( 36 | Map.entry("key1", "value1"), 37 | Map.entry("key2", "value2")/*, 38 | Map.entry("key1", "value3") */ 39 | ); 40 | out.println(moreMapOfString); 41 | } 42 | 43 | @Test 44 | void copyCollections() { 45 | final var originalMap = Map.of(1,"a", 2, "b"); 46 | final var originalList = new ArrayList(); 47 | originalList.addAll(List.of("A","B","C", "A")); 48 | 49 | var listCopy = List.copyOf(originalList); 50 | var setCopy = Set.copyOf(originalList); 51 | var mapCopy = Map.copyOf(originalMap); 52 | 53 | // it's a collection copy. 54 | originalList.clear(); 55 | assertEquals(0, originalList.size()); 56 | assertEquals(4, listCopy.size()); 57 | assertEquals(3, setCopy.size()); 58 | 59 | assertThrows(UnsupportedOperationException.class, () -> listCopy.add("Z")); 60 | } 61 | } -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/collections/InputStreamSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.collections; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.io.ByteArrayInputStream; 6 | import java.io.IOException; 7 | import java.util.Random; 8 | 9 | /** 10 | * Examples on new Stream methods since Java 9+ 11 | */ 12 | class InputStreamSamples { 13 | 14 | 15 | @Test 16 | void redirectStream() throws IOException { 17 | // 128 random bytes 18 | byte[] buf = new byte[128]; 19 | new Random().nextBytes(buf); 20 | 21 | // JDK9: All bytes from an InputStream at once 22 | byte[] result = new ByteArrayInputStream(buf).readAllBytes(); 23 | 24 | // JDK9: Directly redirect an InputStream to an OutputStream 25 | new ByteArrayInputStream(buf).transferTo(System.out); 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/collections/StreamSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.collections; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.util.stream.Stream; 6 | 7 | import static org.junit.jupiter.api.Assertions.assertEquals; 8 | 9 | /** 10 | * New methods on streams 11 | */ 12 | public class StreamSamples { 13 | 14 | @Test 15 | void transformStreams() { 16 | var source = Stream.of(-1, 0, 1, 21, 42); 17 | source.dropWhile(i -> i < 2).forEach(System.out::println); 18 | 19 | source = Stream.of(-1, 0, 1, 21, 42); 20 | source.takeWhile(i -> i < 2).forEach(System.out::println); 21 | } 22 | 23 | @Test 24 | void generateStreams() { 25 | // JDK8 – abort via count 26 | Stream.iterate(2, i -> i * i).limit(4) 27 | .forEach(System.out::println); // → [2, 4, 16, 256] 28 | 29 | // JDK 9 – provide abort criteria 30 | // Stream iterate​(seed, hasNext, applyFunc) 31 | Stream.iterate(2, i -> i < 999, i -> i * i) 32 | .forEach(System.out::println); // → [2, 4, 16, 256] 33 | 34 | Stream.iterate(0, i -> i < 3, i -> i + 1) 35 | .forEach(System.out::println); // → [0, 1, 2] 36 | 37 | // Empty or single-element 38 | var e = Stream.ofNullable(null); // [ ] 39 | var h = Stream.ofNullable("Hi"); // [ "Hi" ] 40 | 41 | assertEquals(0, e.count()); 42 | assertEquals(1, h.count()); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/core/StringSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.core; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.util.stream.IntStream; 6 | import java.util.stream.Stream; 7 | 8 | import static org.junit.jupiter.api.Assertions.assertEquals; 9 | import static org.junit.jupiter.api.Assertions.assertTrue; 10 | 11 | public class StringSamples { 12 | 13 | @Test 14 | void newWhitespaceDefintion() { 15 | // JDK8 method 16 | assertEquals(" \tword\u0019 \r".trim(), "word"); 17 | 18 | // New JDK11 19 | assertEquals(" \tword\u0019 \r".strip(), "word\u0019"); 20 | assertEquals(" \tword\u0019 \r".stripLeading(), "word\u0019 \r"); 21 | assertEquals(" \tword\u0019 \r".stripTrailing(), " \tword\u0019"); 22 | 23 | assertTrue(" \t".isBlank()); 24 | } 25 | 26 | @Test 27 | void stringUtils() { 28 | assertEquals("hi".repeat(3), "hihihi"); 29 | 30 | Stream l = "1\n2\n3\n!".lines(); 31 | assertEquals(l.count(), 4); 32 | 33 | assertEquals("word".chars().max().getAsInt(), 'w'); 34 | } 35 | 36 | @Test 37 | void stringJDK12Utils() { 38 | assertEquals("hi\r\n you!".indent(2), " hi\n you!\n"); 39 | assertEquals("hi\r\n you!".indent(-1), "hi\n you!\n"); 40 | 41 | Stream l = "1\n2\n3\n!".lines(); 42 | assertEquals(l.count(), 4); 43 | 44 | IntStream stream = "word".chars(); 45 | assertEquals(stream.max().getAsInt(), 'w'); 46 | 47 | assertEquals("ABC".transform(String::toLowerCase), "abc"); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/http/HttpClientSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.http; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.net.URI; 6 | import java.net.http.HttpClient; 7 | import java.net.http.HttpRequest; 8 | import java.net.http.HttpResponse; 9 | import java.net.http.WebSocket; 10 | import java.nio.ByteBuffer; 11 | import java.time.Duration; 12 | import java.util.concurrent.CompletionStage; 13 | import java.util.concurrent.ExecutionException; 14 | 15 | import static java.net.http.WebSocket.NORMAL_CLOSURE; 16 | 17 | class HttpClientSamples { 18 | 19 | /** 20 | * The HTTP API functions asynchronously & synchronously. In asynchronous mode, 21 | * work is done on the threads supplied by the client's ExecutorService. 22 | */ 23 | @Test 24 | void asyncHttp2Client() throws InterruptedException, ExecutionException { 25 | HttpClient client = HttpClient.newBuilder() 26 | .version(HttpClient.Version.HTTP_2) 27 | .connectTimeout(Duration.ofSeconds(3)) 28 | .build(); 29 | 30 | URI uri = URI.create("https://www.exxcellent.de/"); 31 | HttpRequest request = HttpRequest 32 | .newBuilder(uri) 33 | .header("Useragent", "MyDemo") 34 | .GET() 35 | .build(); 36 | 37 | // start request in background 38 | var future = client.sendAsync(request, HttpResponse.BodyHandlers.ofString()) 39 | .thenApply(HttpResponse::body) 40 | .thenAccept(System.out::println); 41 | 42 | // meanwhile: do some other tasks 43 | var expensiveOperation = Math.pow(12345, 92123); 44 | 45 | // wait for completion of the background tasks 46 | future.get(); 47 | } 48 | 49 | @Test 50 | void buildWebsocketClient() throws InterruptedException { 51 | var wsBuilder = HttpClient.newHttpClient().newWebSocketBuilder(); 52 | var wsFuture = wsBuilder 53 | .buildAsync(URI.create("wss://echo.websocket.org"), 54 | new WebSocket.Listener() { 55 | public void onOpen(WebSocket webSocket) { 56 | } 57 | 58 | public CompletionStage onText(WebSocket webSocket, CharSequence data, boolean last) { 59 | return null; 60 | } 61 | 62 | public CompletionStage onBinary(WebSocket webSocket, ByteBuffer data, boolean last) { 63 | return null; 64 | } 65 | 66 | public CompletionStage onPing(WebSocket webSocket, ByteBuffer message) { 67 | return null; 68 | } 69 | 70 | public CompletionStage onPong(WebSocket webSocket, ByteBuffer message) { 71 | return null; 72 | } 73 | 74 | public CompletionStage onClose(WebSocket webSocket, int statusCode, String reason) { 75 | return null; 76 | } 77 | 78 | public void onError(WebSocket webSocket, Throwable error) { 79 | } 80 | }); 81 | WebSocket websocket = wsFuture.join(); 82 | websocket.sendPing(ByteBuffer.wrap("Ping from Client".getBytes())); 83 | websocket.sendText("Hi there!", true); 84 | 85 | websocket.sendClose(NORMAL_CLOSURE, "Goodbye!").join(); 86 | } 87 | } -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/io/FilesSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.io; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.io.IOException; 6 | import java.nio.file.Files; 7 | import java.nio.file.Path; 8 | import java.nio.file.StandardOpenOption; 9 | 10 | import static org.junit.jupiter.api.Assertions.assertEquals; 11 | import static org.junit.jupiter.api.Assertions.assertTrue; 12 | 13 | /** 14 | * Java (N)IO enhancements. 15 | */ 16 | class FilesSamples { 17 | 18 | @Test 19 | void testNewPathAndFilesMethods() throws IOException { 20 | var txtPath = Path.of("src", "test", "resources", "sample-text.txt"); 21 | assertTrue(txtPath.toFile().exists()); 22 | 23 | String fileContent = Files.readString(txtPath); 24 | assertEquals("Nostrum iure ullam et sunt tempora dolore.", fileContent); 25 | 26 | Path newPath = Path.of("src/test/resources/newfile.txt"); 27 | Files.writeString(newPath, "Nostrum lore", StandardOpenOption.CREATE_NEW); 28 | 29 | // JDK12 30 | long firstMismatch = Files.mismatch(txtPath, newPath); 31 | assertEquals(8, firstMismatch); 32 | 33 | Files.delete(newPath); 34 | } 35 | 36 | 37 | } 38 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/language/LocalVarTypeInference.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.language; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | import org.junit.jupiter.api.Test; 5 | 6 | import java.util.HashMap; 7 | import java.util.Iterator; 8 | import java.util.List; 9 | import java.util.Map; 10 | import java.util.function.IntPredicate; 11 | import java.util.function.Predicate; 12 | 13 | class LocalVarTypeInference { 14 | 15 | @Test 16 | void localTypeInference() { 17 | var primitiveVal = 5; // int 18 | var doubleVal = 5d; // double 19 | 20 | // final List obj = … 21 | final var objVal = List.of("A", "B", "C"); 22 | 23 | var letters = ""; 24 | for (var str : objVal) { 25 | letters += str.toLowerCase(); 26 | } 27 | } 28 | 29 | @Test 30 | void localTypeInferenceBordercases() { 31 | // can't denote: byte, short → explicit typing: 32 | var byteVal = (byte) 5; 33 | 34 | // type must be inferrable: 35 | // var wontCompile; 36 | // var wontCompile = null; 37 | // var wontCompile = {-1, 1}; 38 | 39 | // Type inferred at declaration time: 40 | var myMap = new HashMap<>(); 41 | myMap.put(42, "The answer"); 42 | // var wontCompile = myMap.get(42).trim(); 43 | // myMap is Map 44 | 45 | // Method references must be explicit 46 | // var wontCompile = String::toUpperCase; 47 | 48 | // anonymous types are different types per instance 49 | // … therefore cannot be reassigned 50 | var myPredicate = new IntPredicate() { 51 | public boolean test(int value) { 52 | return value > 0; 53 | } 54 | }; 55 | // myPredicate = (int i) -> (i % 2) == 0; 56 | } 57 | 58 | @FunctionalInterface 59 | interface MyLambda { 60 | Long myFun(@NotNull Long x, Long y); 61 | } 62 | 63 | private MyLambda myLambda; 64 | 65 | @Test 66 | void explicitAnnotatedTypeInferenceInLambdas() { 67 | // JDK8 style type inference 68 | myLambda = (x, y) -> x + ((y != null) ? y : 0); 69 | myLambda.myFun(42L, null); 70 | 71 | // JDK8 style: explicit types → allows annotations 72 | myLambda = (Long x, @NotNull Long y) -> x + y; 73 | myLambda.myFun(42L, 0L); 74 | 75 | // JDK11: `var` style → type infer with annotations 76 | myLambda = (var x, @NotNull var y) -> x + y; 77 | myLambda.myFun(22L, 20L); 78 | //test2.myFun(42L, null); // IDEA will complain 79 | } 80 | 81 | 82 | void filterMatchesJDK8(Map map, 83 | Predicate valid, 84 | int max) { 85 | for (Iterator> 86 | it = map.entrySet().iterator(); 87 | it.hasNext(); ) { 88 | Map.Entry e = it.next(); 89 | if ((max > 0) && !valid.test(e.getValue())) { 90 | it.remove(); 91 | max--; 92 | } 93 | } 94 | } 95 | 96 | void filterMatches(Map map, 97 | Predicate valid, 98 | int max) { 99 | for (var it = map.entrySet().iterator(); it.hasNext(); ) { 100 | var e = it.next(); 101 | if ((max > 0) && !valid.test(e.getValue())) { 102 | it.remove(); 103 | max--; 104 | } 105 | } 106 | } 107 | 108 | @Test 109 | void filterMatches() { 110 | var myMap = Map.of(0, 42L, 1, 12L, 2, 6L, 3, 3L, 4, 1L); 111 | filterMatchesJDK8(new HashMap<>(myMap), n -> n.intValue() == 42, 3); 112 | } 113 | 114 | 115 | } 116 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/language/MillingProjectCoin.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.language; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.io.Closeable; 6 | import java.io.FileInputStream; 7 | import java.io.IOException; 8 | import java.io.InputStream; 9 | import java.util.ArrayList; 10 | import java.util.Collections; 11 | import java.util.Comparator; 12 | import java.util.List; 13 | 14 | import static org.junit.jupiter.api.Assertions.assertEquals; 15 | import static org.junit.jupiter.api.Assertions.assertLinesMatch; 16 | 17 | /** 18 | * Various enhancements in Milling Project Coin: address some rough edges 19 | */ 20 | public class MillingProjectCoin { 21 | 22 | @Test 23 | void tryWithEffectivelyFinals() throws IOException { 24 | InputStream inputStream = new FileInputStream(".gitignore"); 25 | try (Closeable closeAfterTry = inputStream) { 26 | } 27 | 28 | // JDK9+: simply refer to effectively-final Closeables 29 | InputStream inputStream2 = new FileInputStream(".gitignore"); 30 | try (inputStream2) { 31 | } 32 | } 33 | 34 | @Test 35 | void DiamondForAnonymousClasses() { 36 | Comparator compareLongs = new Comparator<>() { 37 | public int compare(Integer l1, Integer l2) { 38 | return l2 - l1; 39 | } 40 | 41 | public Comparator reversed() { 42 | return Collections.reverseOrder(this); 43 | } 44 | }; 45 | } 46 | 47 | @FunctionalInterface 48 | interface Version { 49 | byte[] digits(); 50 | 51 | default String text() { 52 | return text(digits()); 53 | } 54 | 55 | private String text(byte[] version) { 56 | var v = ""; 57 | for (byte b : version) { 58 | v += v.isEmpty() ? b : ("." + b); 59 | } 60 | return v; 61 | } 62 | } 63 | 64 | @Test 65 | void privateInterfaceMethods() { 66 | Version version = () -> new byte[]{1, 2, 3}; 67 | assertEquals("1.2.3", version.text()); 68 | } 69 | 70 | @Test 71 | void SafeVarargsAnnotationForPrivateInstanceMethods() { 72 | // Due to the @SafeVarargs this won't complain when compiling 73 | // using `-Xlint:unchecked` 74 | var flat = safeVarargsMethod(List.of("A", "B"), List.of("C", "D")); 75 | assertLinesMatch(List.of("A", "B", "C", "D"), flat); 76 | } 77 | 78 | 79 | @SafeVarargs // allowed since Java 9 on private methods 80 | private List safeVarargsMethod(List... lists) { 81 | var flat = new ArrayList(); 82 | for (var list : lists) { 83 | flat.addAll(list); 84 | } 85 | return flat; 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/language/SwitchExpression.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.language; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import static de.bentolor.java9to13samples.language.SwitchExpression.Direction.*; 6 | import static org.junit.jupiter.api.Assertions.assertEquals; 7 | 8 | class SwitchExpression { 9 | 10 | enum Direction {N, S, W, E} 11 | 12 | String switchExpressionJDK8(Direction way) { 13 | String result; 14 | switch (way) { 15 | case N: 16 | result = "Up"; 17 | break; 18 | case S: 19 | result = "Down"; 20 | break; 21 | case E: 22 | case W: 23 | result = "Somewhere left or right"; 24 | break; 25 | default: 26 | throw new IllegalStateException("Huh?: " + way); 27 | } 28 | return result; 29 | } 30 | 31 | String switchExpressionPreview13(Direction way) { 32 | return switch (way) { 33 | case N -> "Up"; 34 | // JDK13: case S -> { yield "Down"; } 35 | case S -> "Down"; 36 | case E, W -> "Somewhere left or right"; 37 | }; 38 | } 39 | 40 | void switchArrowForm(int num) { 41 | switch (num) { 42 | case 0 -> System.out.println("Zero"); 43 | case 1, 2, 3 -> { 44 | var response = "value was: "; 45 | System.out.println(response); 46 | } 47 | } 48 | } 49 | 50 | @Test 51 | void testSwitch() { 52 | switchArrowForm(3); 53 | assertEquals("Down", switchExpressionJDK8(S)); 54 | assertEquals("Down", switchExpressionPreview13(S)); 55 | } 56 | 57 | private PortType replaceSimpleSwitch(int port) { 58 | PortType type = switch (port) { 59 | case 20 -> PortType.FTP; 60 | case 80, 8080 -> PortType.HTTP; 61 | case 27017 -> PortType.DATABASE; 62 | default -> PortType.UNKNOWN; 63 | }; 64 | return type; 65 | } 66 | 67 | private int namePort(PortType type) { 68 | return switch (type) { 69 | case UNUSED -> 0; 70 | case UNKNOWN -> 0; 71 | case FTP -> 20; 72 | case HTTP -> 80; 73 | case DATABASE -> 123; 74 | case BUSY -> 0; 75 | case SAFE -> 0; 76 | }; 77 | } 78 | 79 | public enum PortType { 80 | HTTP, DATABASE, UNUSED, UNKNOWN, FTP, BUSY, SAFE 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/process/ProcessHandleSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.process; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.io.IOException; 6 | import java.util.stream.Stream; 7 | 8 | import static java.lang.System.out; 9 | 10 | class ProcessHandleSamples { 11 | 12 | /** 13 | * Start a process, listen to process termination, retrieve process details, kill processes. 14 | */ 15 | @Test 16 | void testHandleAPI() throws IOException, InterruptedException { 17 | Process sleeper = new ProcessBuilder("sleep", "10s").start(); 18 | ProcessHandle sleepHandle = sleeper.toHandle(); 19 | 20 | // Perform Runnables on process exit 21 | sleepHandle.onExit().thenRun( // → CompletableFuture 22 | () -> out.println("`sleep` process exited") 23 | ); 24 | 25 | // Get info on process 26 | out.printf("[%d] %s - %s\n", 27 | sleepHandle.pid(), 28 | sleepHandle.info().user().orElse("unknown"), 29 | sleepHandle.info().commandLine().orElse("n/a")); 30 | 31 | out.println(sleepHandle.info()); 32 | // [user: ben, cmd: /bin/sleep, args: [10s], startTime:…, totalTime: …] 33 | 34 | // Find JVM process 35 | ProcessHandle jvmProcess = ProcessHandle.current(); 36 | out.println(jvmProcess.info()); 37 | // or all processes 38 | Stream allProcs = ProcessHandle.allProcesses(); 39 | 40 | // Find my direct childrens 41 | jvmProcess.children().forEach(out::println); 42 | 43 | // Kill a process 44 | sleepHandle.destroy(); 45 | 46 | // Give exit handler a chance to see the sleeper onExit() 47 | Thread.sleep(99); 48 | } 49 | } 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/tools/ExecutableJavaSource: -------------------------------------------------------------------------------- 1 | #!/usr/bin/java --source 11 2 | 3 | /** 4 | * You can directly mark & execute this class (if JDK11+ is your default JDK). 5 | * 6 | *

Important: 7 | * Omit any {@code .java} file extension if you are using 8 | * the shebang operator!

9 | */ 10 | public class ExecutableJavaSource { 11 | public static void main(String[] args) { 12 | System.out.println("Hello " + args[0] + ". Executable .java source – Yay!"); 13 | } 14 | } -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/tools/SingleClassJava.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.tools; 2 | 3 | /** 4 | * You can directly run this file via {@code java SingleClassJava.java}. 5 | */ 6 | public class SingleClassJava { 7 | public static void main(String[] args) { 8 | System.out.println("Hello executable .java source files"); 9 | } 10 | } -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/util/InputStreamSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.util; 2 | 3 | import java.io.ByteArrayInputStream; 4 | import java.io.IOException; 5 | import java.util.Random; 6 | 7 | public class InputStreamSamples { 8 | 9 | /** 10 | * Stream utilities. 11 | */ 12 | public static void main(String[] args) throws IOException { 13 | // 128 random bytes 14 | byte[] buf = new byte[128]; 15 | new Random().nextBytes(buf); 16 | 17 | // All bytes from an InputStream at once 18 | byte[] result = new ByteArrayInputStream(buf).readAllBytes(); 19 | 20 | // Directly redirect an InputStream to an OutputStream 21 | new ByteArrayInputStream(buf).transferTo(System.out); 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/util/OptionalSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.util; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.util.Optional; 6 | import java.util.stream.Stream; 7 | 8 | /** 9 | * New Optional methods since 9+ 10 | */ 11 | public class OptionalSamples { 12 | 13 | @Test 14 | void newJava9OptionalMethods() { 15 | var maybeInt = Optional.ofNullable( (Math.random()<0.5) ? 42 : null ); 16 | 17 | // Depending on value presence do either this or that 18 | maybeInt.ifPresentOrElse( 19 | (n) -> System.out.println(n), 20 | () -> System.out.println("Nada") 21 | ); 22 | 23 | // Optional empty? → Build a new one on-the-fly… 24 | var triedAgain = maybeInt.or(() -> Optional.of(-1)); 25 | 26 | // Provide a stream → [] or [42] 27 | Stream intStream = maybeInt.stream(); 28 | } 29 | 30 | @Test 31 | void newJava10OptionalMethods() { 32 | var maybeVal = (Math.random() < 0.99) ? 42 : null; 33 | var maybeInt = Optional.ofNullable(maybeVal); 34 | 35 | // new short-hand throw() 36 | int answer = maybeInt.orElseThrow(); 37 | } 38 | 39 | @Test 40 | void newJava11OptionalMethods() { 41 | var maybeVal = (Math.random() < 0.5) ? 42 : null; 42 | var maybeInt = Optional.ofNullable(maybeVal); 43 | 44 | // complements isPresent() 45 | assert maybeInt.isEmpty() == !maybeInt.isPresent(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /codesamples/src/test/java/de/bentolor/java9to13samples/util/StackWalkerSamples.java: -------------------------------------------------------------------------------- 1 | package de.bentolor.java9to13samples.util; 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import java.util.stream.Collectors; 6 | 7 | import static java.lang.System.out; 8 | 9 | class StackWalkerSamples { 10 | 11 | /** 12 | * Easily traverse stackframes. 13 | */ 14 | @Test 15 | void walkAndFilterStackframe1() { 16 | walkAndFilterStackframe2(); 17 | } 18 | 19 | void walkAndFilterStackframe2() { 20 | walkAndFilterStackframe(); 21 | } 22 | 23 | 24 | void walkAndFilterStackframe() { 25 | StackWalker.getInstance().walk( 26 | s -> s.map(frame -> frame.getClassName() + '/' + frame.getMethodName()) 27 | .filter(name -> name.startsWith("de.bentolor")) 28 | .limit(10) 29 | .collect(Collectors.toList()) 30 | ).forEach(out::println); 31 | } 32 | 33 | } -------------------------------------------------------------------------------- /codesamples/src/test/resources/sample-text.txt: -------------------------------------------------------------------------------- 1 | Nostrum iure ullam et sunt tempora dolore. -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | .bundle 2 | .gem 3 | Gemfile.lock 4 | -------------------------------------------------------------------------------- /docs/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gem 'asciidoctor-revealjs' # latest released version -------------------------------------------------------------------------------- /docs/LICENSE.html: -------------------------------------------------------------------------------- 1 | Creative Commons License
Power Catch-up – Everything Practical and Important in Java 9 to 13 by Benjamin Schmid, @bentolor is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. -------------------------------------------------------------------------------- /docs/css/atom-one-light.css: -------------------------------------------------------------------------------- 1 | .hljs{display:block;overflow-x:auto;padding:.5em;color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#a626a4}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta-string{color:#50a14f}.hljs-built_in,.hljs-class .hljs-title{color:#c18401}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#986801}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#4078f2}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.hljs-link{text-decoration:underline} -------------------------------------------------------------------------------- /docs/fonts/Indie+Flower_400_normal.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Indie+Flower_400_normal.eot -------------------------------------------------------------------------------- /docs/fonts/Indie+Flower_400_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Indie+Flower_400_normal.ttf -------------------------------------------------------------------------------- /docs/fonts/Indie+Flower_400_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Indie+Flower_400_normal.woff -------------------------------------------------------------------------------- /docs/fonts/Indie+Flower_400_normal.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Indie+Flower_400_normal.woff2 -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_400_italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_400_italic.ttf -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_400_italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_400_italic.woff -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_400_italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_400_italic.woff2 -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_400_normal.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_400_normal.eot -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_400_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_400_normal.ttf -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_400_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_400_normal.woff -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_400_normal.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_400_normal.woff2 -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_700_italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_700_italic.ttf -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_700_italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_700_italic.woff -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_700_italic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_700_italic.woff2 -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_700_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_700_normal.ttf -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_700_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_700_normal.woff -------------------------------------------------------------------------------- /docs/fonts/Open+Sans_700_normal.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Open+Sans_700_normal.woff2 -------------------------------------------------------------------------------- /docs/fonts/Quicksand_400_normal.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Quicksand_400_normal.eot -------------------------------------------------------------------------------- /docs/fonts/Quicksand_400_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Quicksand_400_normal.ttf -------------------------------------------------------------------------------- /docs/fonts/Quicksand_400_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Quicksand_400_normal.woff -------------------------------------------------------------------------------- /docs/fonts/Quicksand_400_normal.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Quicksand_400_normal.woff2 -------------------------------------------------------------------------------- /docs/fonts/Quicksand_700_normal.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Quicksand_700_normal.ttf -------------------------------------------------------------------------------- /docs/fonts/Quicksand_700_normal.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Quicksand_700_normal.woff -------------------------------------------------------------------------------- /docs/fonts/Quicksand_700_normal.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/Quicksand_700_normal.woff2 -------------------------------------------------------------------------------- /docs/fonts/fontawesome/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Font Awesome Free License 2 | ------------------------- 3 | 4 | Font Awesome Free is free, open source, and GPL friendly. You can use it for 5 | commercial projects, open source projects, or really almost whatever you want. 6 | Full Font Awesome Free license: https://fontawesome.com/license/free. 7 | 8 | # Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/) 9 | In the Font Awesome Free download, the CC BY 4.0 license applies to all icons 10 | packaged as SVG and JS file types. 11 | 12 | # Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL) 13 | In the Font Awesome Free download, the SIL OFL license applies to all icons 14 | packaged as web and desktop font files. 15 | 16 | # Code: MIT License (https://opensource.org/licenses/MIT) 17 | In the Font Awesome Free download, the MIT license applies to all non-font and 18 | non-icon files. 19 | 20 | # Attribution 21 | Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font 22 | Awesome Free files already contain embedded comments with sufficient 23 | attribution, so you shouldn't need to do anything additional when using these 24 | files normally. 25 | 26 | We've kept attribution comments terse, so we ask that you do not actively work 27 | to remove them from files, especially code. They're a great way for folks to 28 | learn about Font Awesome. 29 | 30 | # Brand Icons 31 | All brand icons are trademarks of their respective owners. The use of these 32 | trademarks does not indicate endorsement of the trademark holder by Font 33 | Awesome, nor vice versa. **Please do not use brand logos for any purpose except 34 | to represent the company, product, or service to which they refer.** 35 | -------------------------------------------------------------------------------- /docs/fonts/fontawesome/css/brands.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | @font-face { 6 | font-family: 'Font Awesome 5 Brands'; 7 | font-style: normal; 8 | font-weight: normal; 9 | font-display: auto; 10 | src: url("../webfonts/fa-brands-400.eot"); 11 | src: url("../webfonts/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("../webfonts/fa-brands-400.woff2") format("woff2"), url("../webfonts/fa-brands-400.woff") format("woff"), url("../webfonts/fa-brands-400.ttf") format("truetype"), url("../webfonts/fa-brands-400.svg#fontawesome") format("svg"); } 12 | 13 | .fab { 14 | font-family: 'Font Awesome 5 Brands'; } 15 | -------------------------------------------------------------------------------- /docs/fonts/fontawesome/css/brands.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | @font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;font-display:auto;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"} -------------------------------------------------------------------------------- /docs/fonts/fontawesome/css/regular.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | @font-face { 6 | font-family: 'Font Awesome 5 Free'; 7 | font-style: normal; 8 | font-weight: 400; 9 | font-display: auto; 10 | src: url("../webfonts/fa-regular-400.eot"); 11 | src: url("../webfonts/fa-regular-400.eot?#iefix") format("embedded-opentype"), url("../webfonts/fa-regular-400.woff2") format("woff2"), url("../webfonts/fa-regular-400.woff") format("woff"), url("../webfonts/fa-regular-400.ttf") format("truetype"), url("../webfonts/fa-regular-400.svg#fontawesome") format("svg"); } 12 | 13 | .far { 14 | font-family: 'Font Awesome 5 Free'; 15 | font-weight: 400; } 16 | -------------------------------------------------------------------------------- /docs/fonts/fontawesome/css/regular.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | @font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-family:"Font Awesome 5 Free";font-weight:400} -------------------------------------------------------------------------------- /docs/fonts/fontawesome/css/solid.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | @font-face { 6 | font-family: 'Font Awesome 5 Free'; 7 | font-style: normal; 8 | font-weight: 900; 9 | font-display: auto; 10 | src: url("../webfonts/fa-solid-900.eot"); 11 | src: url("../webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("../webfonts/fa-solid-900.woff2") format("woff2"), url("../webfonts/fa-solid-900.woff") format("woff"), url("../webfonts/fa-solid-900.ttf") format("truetype"), url("../webfonts/fa-solid-900.svg#fontawesome") format("svg"); } 12 | 13 | .fa, 14 | .fas { 15 | font-family: 'Font Awesome 5 Free'; 16 | font-weight: 900; } 17 | -------------------------------------------------------------------------------- /docs/fonts/fontawesome/css/solid.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.9.0 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | @font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:auto;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.fas{font-family:"Font Awesome 5 Free";font-weight:900} -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /docs/fonts/fontawesome/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/fonts/fontawesome/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /docs/fonts/indie-flower.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Indie Flower'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(Indie+Flower_400_normal.eot); /* http://fonts.gstatic.com/s/indieflower/v10/m8JVjfNVeKWVnh3QMuKkFcZVaUuD.eot */ 6 | src: local('☺'), 7 | url(Indie+Flower_400_normal.eot?#iefix) format('embedded-opentype'), /* http://fonts.gstatic.com/s/indieflower/v10/m8JVjfNVeKWVnh3QMuKkFcZVaUuD.eot */ 8 | url(Indie+Flower_400_normal.woff2) format('woff2'), /* http://fonts.gstatic.com/s/indieflower/v10/m8JVjfNVeKWVnh3QMuKkFcZVaUuH.woff2 */ 9 | url(Indie+Flower_400_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/indieflower/v10/m8JVjfNVeKWVnh3QMuKkFcZVaUuB.woff */ 10 | url(Indie+Flower_400_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/indieflower/v10/m8JVjfNVeKWVnh3QMuKkFcZVaUuC99GUDg.ttf */ 11 | url(Indie+Flower_400_normal.svg#Indie+Flower_400_normal) format('svg'); /* http://fonts.gstatic.com/l/font?kit=m8JVjfNVeKWVnh3QMuKkFcZVaUuA&skey=cdda66716f19c532&v=v10#IndieFlower */ 12 | } 13 | -------------------------------------------------------------------------------- /docs/fonts/opensans.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Open Sans'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(Open+Sans_400_normal.eot); /* http://fonts.gstatic.com/s/opensans/v16/mem8YaGs126MiZpBA-UFVZ0f.eot */ 6 | src: local('☺'), 7 | url(Open+Sans_400_normal.eot?#iefix) format('embedded-opentype'), /* http://fonts.gstatic.com/s/opensans/v16/mem8YaGs126MiZpBA-UFVZ0f.eot */ 8 | url(Open+Sans_400_normal.woff2) format('woff2'), /* http://fonts.gstatic.com/s/opensans/v16/mem8YaGs126MiZpBA-UFVZ0b.woff2 */ 9 | url(Open+Sans_400_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/opensans/v16/mem8YaGs126MiZpBA-UFVZ0d.woff */ 10 | url(Open+Sans_400_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/opensans/v16/mem8YaGs126MiZpBA-UFVZ0ef8pkAg.ttf */ 11 | url(Open+Sans_400_normal.svg#Open+Sans_400_normal) format('svg'); /* http://fonts.gstatic.com/l/font?kit=mem8YaGs126MiZpBA-UFVZ0c&skey=62c1cbfccc78b4b2&v=v16#OpenSans */ 12 | } 13 | @font-face { 14 | font-family: 'Open Sans'; 15 | font-style: italic; 16 | font-weight: 400; 17 | src: url(Open+Sans_400_italic.eot); /* {{embedded-opentype-gf-url}} */ 18 | src: local('☺'), 19 | url(Open+Sans_400_italic.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 20 | url(Open+Sans_400_italic.woff2) format('woff2'), /* http://fonts.gstatic.com/s/opensans/v16/mem6YaGs126MiZpBA-UFUK0Zdc0.woff2 */ 21 | url(Open+Sans_400_italic.woff) format('woff'), /* http://fonts.gstatic.com/s/opensans/v16/mem6YaGs126MiZpBA-UFUK0Zdcs.woff */ 22 | url(Open+Sans_400_italic.ttf) format('truetype'), /* http://fonts.gstatic.com/s/opensans/v16/mem6YaGs126MiZpBA-UFUK0ZdchGAK6b.ttf */ 23 | url(Open+Sans_400_italic.svg#Open+Sans_400_italic) format('svg'); /* {{svg-gf-url}} */ 24 | } 25 | @font-face { 26 | font-family: 'Open Sans'; 27 | font-style: italic; 28 | font-weight: 700; 29 | src: url(Open+Sans_700_italic.eot); /* {{embedded-opentype-gf-url}} */ 30 | src: local('☺'), 31 | url(Open+Sans_700_italic.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 32 | url(Open+Sans_700_italic.woff2) format('woff2'), /* http://fonts.gstatic.com/s/opensans/v16/memnYaGs126MiZpBA-UFUKWiUNhrIqM.woff2 */ 33 | url(Open+Sans_700_italic.woff) format('woff'), /* http://fonts.gstatic.com/s/opensans/v16/memnYaGs126MiZpBA-UFUKWiUNhrIqU.woff */ 34 | url(Open+Sans_700_italic.ttf) format('truetype'), /* http://fonts.gstatic.com/s/opensans/v16/memnYaGs126MiZpBA-UFUKWiUNhrIqaxjaPX.ttf */ 35 | url(Open+Sans_700_italic.svg#Open+Sans_700_italic) format('svg'); /* {{svg-gf-url}} */ 36 | } 37 | @font-face { 38 | font-family: 'Open Sans'; 39 | font-style: normal; 40 | font-weight: 700; 41 | src: url(Open+Sans_700_normal.eot); /* {{embedded-opentype-gf-url}} */ 42 | src: local('☺'), 43 | url(Open+Sans_700_normal.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 44 | url(Open+Sans_700_normal.woff2) format('woff2'), /* http://fonts.gstatic.com/s/opensans/v16/mem5YaGs126MiZpBA-UN7rgOUuhp.woff2 */ 45 | url(Open+Sans_700_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/opensans/v16/mem5YaGs126MiZpBA-UN7rgOUuhv.woff */ 46 | url(Open+Sans_700_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/opensans/v16/mem5YaGs126MiZpBA-UN7rgOUuhsKKSTjw.ttf */ 47 | url(Open+Sans_700_normal.svg#Open+Sans_700_normal) format('svg'); /* {{svg-gf-url}} */ 48 | } 49 | -------------------------------------------------------------------------------- /docs/fonts/quicksand.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Quicksand'; 3 | font-style: normal; 4 | font-weight: 400; 5 | src: url(Quicksand_400_normal.eot); /* http://fonts.gstatic.com/s/quicksand/v9/6xKtdSZaM9iE8KbpRA_hK1QJ.eot */ 6 | src: local('☺'), 7 | url(Quicksand_400_normal.eot?#iefix) format('embedded-opentype'), /* http://fonts.gstatic.com/s/quicksand/v9/6xKtdSZaM9iE8KbpRA_hK1QJ.eot */ 8 | url(Quicksand_400_normal.woff2) format('woff2'), /* http://fonts.gstatic.com/s/quicksand/v9/6xKtdSZaM9iE8KbpRA_hK1QN.woff2 */ 9 | url(Quicksand_400_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/quicksand/v9/6xKtdSZaM9iE8KbpRA_hK1QL.woff */ 10 | url(Quicksand_400_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/quicksand/v9/6xKtdSZaM9iE8KbpRA_hK1QIYuDyPw.ttf */ 11 | url(Quicksand_400_normal.svg#Quicksand_400_normal) format('svg'); /* http://fonts.gstatic.com/l/font?kit=6xKtdSZaM9iE8KbpRA_hK1QK&skey=c01f11fa5439d932&v=v9#Quicksand */ 12 | } 13 | @font-face { 14 | font-family: 'Quicksand'; 15 | font-style: normal; 16 | font-weight: 700; 17 | src: url(Quicksand_700_normal.eot); /* {{embedded-opentype-gf-url}} */ 18 | src: local('☺'), 19 | url(Quicksand_700_normal.eot?#iefix) format('embedded-opentype'), /* {{embedded-opentype-gf-url}} */ 20 | url(Quicksand_700_normal.woff2) format('woff2'), /* http://fonts.gstatic.com/s/quicksand/v9/6xKodSZaM9iE8KbpRA_pkHEYT8L_.woff2 */ 21 | url(Quicksand_700_normal.woff) format('woff'), /* http://fonts.gstatic.com/s/quicksand/v9/6xKodSZaM9iE8KbpRA_pkHEYT8L5.woff */ 22 | url(Quicksand_700_normal.ttf) format('truetype'), /* http://fonts.gstatic.com/s/quicksand/v9/6xKodSZaM9iE8KbpRA_pkHEYT8L6FYzokA.ttf */ 23 | url(Quicksand_700_normal.svg#Quicksand_700_normal) format('svg'); /* {{svg-gf-url}} */ 24 | } 25 | -------------------------------------------------------------------------------- /docs/images/adopt-openjdk-entry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/adopt-openjdk-entry.png -------------------------------------------------------------------------------- /docs/images/adopt-openjdk-plattforms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/adopt-openjdk-plattforms.png -------------------------------------------------------------------------------- /docs/images/adopt-openjdk-sponsors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/adopt-openjdk-sponsors.png -------------------------------------------------------------------------------- /docs/images/adopt-openjdk-support.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/adopt-openjdk-support.png -------------------------------------------------------------------------------- /docs/images/background-landscape-light-orange.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/background-landscape-light-orange.jpg -------------------------------------------------------------------------------- /docs/images/background-landscape-light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/background-landscape-light.jpg -------------------------------------------------------------------------------- /docs/images/background-landscape.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/background-landscape.jpg -------------------------------------------------------------------------------- /docs/images/bentolor-java913-url-qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/bentolor-java913-url-qrcode.png -------------------------------------------------------------------------------- /docs/images/graalvm-architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/graalvm-architecture.png -------------------------------------------------------------------------------- /docs/images/java-mission-control-center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/java-mission-control-center.png -------------------------------------------------------------------------------- /docs/images/jdk-timeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/jdk-timeline.png -------------------------------------------------------------------------------- /docs/images/loom_banner1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/loom_banner1.png -------------------------------------------------------------------------------- /docs/images/manuscript.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/manuscript.jpg -------------------------------------------------------------------------------- /docs/images/tweet-jdk-evolving.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/images/tweet-jdk-evolving.png -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | presentation.html -------------------------------------------------------------------------------- /docs/mueller.html: -------------------------------------------------------------------------------- 1 | extended.html -------------------------------------------------------------------------------- /docs/presentation-agenda.adoc: -------------------------------------------------------------------------------- 1 | [.lightbg,background-video="videos/relaxing.mp4",background-video-loop="true",background-opacity="0.7"] 2 | == Agenda 3 | 4 | 1. Java 9--13 Overview 5 | 2. Language 6 | 3. API 7 | 4. Tooling 8 | 5. Java 14 & beyond 9 | 10 | {nbsp} + 11 | [.decent]#icon:hand-point-right[] v12+ & Preview Features:# [version]#12# [version]#13# [preview]#preview# 12 | 13 | [.notes] 14 | -- 15 | While you lean back and take a beer, I'll … 16 | 17 | * Note: I'll emphasize features newer than 11 18 | -- -------------------------------------------------------------------------------- /docs/presentation-highlights.adoc: -------------------------------------------------------------------------------- 1 | [.lightbg,background-video="videos/coffee-beans.mp4",background-video-loop="true",background-opacity="0.7"] 2 | == Java 9--13 in a nutshell 3 | 4 | === v9 (huge…) 5 | 6 | * *Java module (Jigsaw)* 7 | * *API Improvements:* _Project Coin Milling_, Stream, … 8 | * *Unified JVM & Java Logging*, … 9 | // Reflection, Date, Concurrency, … 10 | // * _Deprecated:_ `finalize()` 11 | * *Performance* 12 | * _Tools:_ `jshell` `jlink` `-release`, Multi-Release JARs 13 | //* _New platforms:_ *AArch64, s390x, Arm32/Arm64* 14 | 15 | [decent]#2017-03-23, icon:exclamation-circle[] http://openjdk.java.net/projects/jdk9/[*91* JEPs]# 16 | 17 | [.notes] 18 | -- 19 | The *biggest* release of all. 20 | 21 | * Mostly modular JRE & accompagning tools 22 | * Many helpful API enhancements 23 | * …and *Performance* enhancements! 24 | -- 25 | 26 | === v10 27 | * `var`: *Local-Variable Type Inference* 28 | * *Performance*: GC, Class-Data Sharing, Threads, … 29 | * _Experimental:_ *Graal AoT-Compiler* 30 | 31 | [decent]#2018-03-20, http://openjdk.java.net/projects/jdk/10/[12 JEPs]# 32 | [.notes] 33 | -- 34 | * `var`: really noteable feature 35 | * …and *Performance!* 36 | -- 37 | 38 | === v11 [LTS] 39 | * New *HTTP/2- & Websocket*-Client 40 | * *New GCs*: Low-latency ZGC, No-op Epsiolon GC 41 | * *Ex-payware:* *Flight Recorder*, ZGC, CDS, … + 42 | → Oracle JDK ≌ OpenJDK 43 | * *Dropped:* Java EE, JavaFX, CORBA 44 | * HTML5 Javadoc, *Unicode 10*, … 45 | // * `#!/bin/java` 46 | * *Updated Crypto*: TLS 1.3, new Kex & Ciphers 47 | //* `var` für lambda params → `(@Nonnull var x) -> x.do()` 48 | //* Deprecation: Bundled Nashorn JavaScript Engine 49 | 50 | [decent]#2018-09-25, http://openjdk.java.net/projects/jdk/11/[17 JEPs]# 51 | [.notes] 52 | -- 53 | .Polishing & Cleanup release 54 | * Many cleanups like dropping EE, JavaFX, CORBA 55 | * Payware → FOSS 56 | * New GCs which improve… *Performance* 57 | -- 58 | 59 | === v12 60 | * *Low-pause GC* „Shenandoah“ 61 | * *Microbenchmark Suite* 62 | * _Preview:_ Switch Expressions 63 | * *Performance* improvements + 64 | [verydecent]#(CDS, G1 GC, Constants)# 65 | 66 | [decent]#2019-03-19, http://openjdk.java.net/projects/jdk/12/[8 JEPs]# 67 | [.notes] 68 | -- 69 | * Switch Preview … stays Preview in 13 70 | * Again: *Performance, Performance, Performance…* 71 | -- 72 | 73 | === v13 74 | * _Updated Preview:_ *Switch-Expression* 75 | * _Preview:_ *Text Blocks* 76 | * *Performance* improvements + 77 | [verydecent]#(AppCDS, ZGC, Socket)# 78 | 79 | icon:calendar-alt[] [decent]#2019-09-17, http://openjdk.java.net/projects/jdk/12/[5 JEPs]# 80 | 81 | [.notes] 82 | -- 83 | * Even more playstuff! Adding Text blocks 84 | * Again: Performance! 85 | -- 86 | 87 | // === Vorher/Nachher-Beispiel? 88 | // * Video was `var`, final-efftive try catch, etc, nutz? 89 | // * eher nicht: -------------------------------------------------------------------------------- /docs/presentation-outlook.adoc: -------------------------------------------------------------------------------- 1 | [.lightbg,background-video="videos/prediction.mp4",background-video-loop="true",background-opacity="1"] 2 | == Java 14 & beyond 3 | 4 | //[%notitle,background-image="graalvm-architecture.png"] 5 | === Project Metropolis 6 | image::graalvm-architecture.png[GraalVM ecosystem] 7 | 8 | [.notes] 9 | -- 10 | * Polyglot VM: Execute multiple language with zero overhead 11 | * Can run in multiple environments; Can produce native images 12 | * Zero-overhead interop 13 | -- 14 | 15 | === GraalVM -- Polyglot VM [jep]#https://openjdk.java.net/jeps/243[JEP 243]# [jep]#https://openjdk.java.net/jeps/246[JEP 246]# [jep]#https://openjdk.java.net/jeps/295[JEP 295]# 16 | 17 | [.col2] 18 | -- 19 | * *Ahead-of time compiler* (AoT) 20 | * Generic VM + 21 | for *different languages* + 22 | → _JVM_ (Java, Kotlin, Scala, …) + 23 | → _LLVM_ (C, C++) → native + 24 | → _Java_ Script, Python, Ruby, R 25 | -- 26 | 27 | [.col2] 28 | -- 29 | * Shared Runtime → Zero overhead for language interop 30 | 31 | * *Native executables* + 32 | (GraalVM on SubstrateVM) + 33 | → Much smaller startup & memory 34 | -- 35 | 36 | [.clear.decent] 37 | -- 38 | .AoT can be used today: 39 | [.x-small]#`java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler`# 40 | -- 41 | 42 | [.notes] 43 | -- 44 | * Multiple parts: 45 | ** AoT Compiler 46 | ** Graal VM / Substrate VM as runtime 47 | * AoT → improved startup time vs. JIT 48 | * Limitations: Dynamic (Reflection); highly experimental 49 | * AoT Compile can be used today 50 | -- 51 | 52 | === Simplyfing Syntax: Amber 53 | 54 | .Pattern matching for `instanceof` [jep]#https://openjdk.java.net/jeps/305[JEP 305]# 55 | [source,java] 56 | ---- 57 | if (obj instanceof String s) { 58 | return s.contains("abc") 59 | } 60 | ---- 61 | 62 | .Unamed lamda parameters [jep]#https://openjdk.java.net/jeps/302[JEP 302]# 63 | [source,java] 64 | ---- 65 | (i, _) -> String.valueOf(i); 66 | ---- 67 | 68 | .Data Classes & Sealed Types 69 | [source,java] 70 | ---- 71 | record Point(int x, int y) { } 72 | ---- 73 | 74 | [.refs] 75 | -- 76 | * https://openjdk.java.net/projects/amber/[OpenJDK Project Amber] 77 | * https://cr.openjdk.java.net/~briangoetz/amber/datum.html[Data Classes and Sealed Types for Java] 78 | -- 79 | 80 | === Value Types: Valhalla 81 | 82 | > JVM infrastructure for working with *immutable* and *reference-free* objects, 83 | > for efficient by-value computation with non-primitive types. 84 | 85 | [.tgap] 86 | -- 87 | .Value Object: Immutable & Final 88 | [source,java] 89 | ---- 90 | value class Rectangle { int width,height; } 91 | ---- 92 | -- 93 | 94 | [.decent.tgap.small] 95 | -- 96 | _t(L1(/L2 Cache)_ << _t(RAM)_: → Similar performance to primitives + 97 | Benefits of immutables: Functional-style computations, shareability, … 98 | -- 99 | 100 | [.refs] 101 | -- 102 | * https://openjdk.java.net/projects/valhalla/[OpenJDK Valhalla] 103 | -- 104 | 105 | 106 | [%notitle] 107 | === Loom: Fibers & Continuations 108 | image:loom_banner1.png[Loom: Fibers & Continuations] 109 | 110 | [.col3-l] 111 | -- 112 | .Lightweight concurrency 113 | * Continuations 114 | * Fibers (JVM „threads“) 115 | * Tail-call elimination 116 | -- 117 | 118 | [.col3-cr] 119 | -- 120 | [.source.small,java] 121 | ---- 122 | Continuation cont = new Continuation(SCOPE, () -> { 123 | while (true) { 124 | System.out.println("before"); 125 | Continuation.yield(SCOPE); 126 | System.out.println("after"); 127 | } 128 | }); 129 | 130 | while (!cont.isDone()) { 131 | cont.run(); 132 | } 133 | ---- 134 | 135 | [.decent.xx-small]#Similar to cooperative multitasking or Kotlin's Coroutines…# 136 | -- 137 | 138 | [.notes] 139 | -- 140 | * User-mode "threads": No real theads & overhead 141 | * Continuations / Cooperative Multitasking: Tasks indicate when they want togive up control 142 | * Easily scales to 100.000 of parallel tasks 143 | -- 144 | -------------------------------------------------------------------------------- /docs/presentation.adoc: -------------------------------------------------------------------------------- 1 | = Power Catch-up: Everything Practical and Important in Java 9 to 13 2 | :author: Benjamin Schmid @bentolor 3 | :date: 2019-07-04 4 | :icons: font 5 | // we want local served fonts. Therefore patched sky.css 6 | //:revealjs_theme: sky 7 | :revealjs_customtheme: css/sky.css 8 | :revealjs_autoSlide: 5000 9 | :revealjs_history: true 10 | :revealjs_fragmentInURL: true 11 | :revealjs_viewDistance: 5 12 | :revealjs_width: 1408 13 | :revealjs_height: 792 14 | :revealjs_controls: true 15 | :revealjs_controlsLayout: edges 16 | :revealjs_controlsTutorial: true 17 | :revealjs_slideNumber: c/t 18 | :revealjs_showSlideNumber: speaker 19 | :revealjs_autoPlayMedia: true 20 | :revealjs_defaultTiming: 42 21 | //:revealjs_transitionSpeed: fast 22 | :revealjs_parallaxBackgroundImage: images/background-landscape-light-orange.jpg 23 | :revealjs_parallaxBackgroundSize: 4936px 2092px 24 | :customcss: css/presentation.css 25 | :imagesdir: images 26 | :source-highlighter: highlightjs 27 | :highlightjs-theme: css/atom-one-light.css 28 | // we want local served font-awesome fonts 29 | :iconfont-remote!: 30 | :iconfont-name: fonts/fontawesome/css/all 31 | 32 | [.notes] 33 | -- 34 | * Zur Person: Technology Advisor bei der eXXcellent solutions: IT Dienstleister mit Standorten in Ulm, München, Stuttgart, Darmstadt, Berlin: Individuelle Softwarelösungen – vorrangig Java & Web; auch .NET/Mobile/SAP. Klassisch. 35 | * Bin seit 18+ Jahren führend & beratend im Projektgeschäft unterwegs. 36 | Stets in der Rolle technische Innovationen den Projekte & Kollegen näher zu bringen. 37 | * Lange Jahre war das im Java-Umfeld eher entspannter. Innovationen eher im Umfeld Docker/Kubernetes und auf der JVM eher Kotlin wo ich ebenfalls großer Fan bin. 38 | * Hat sich aber kräfitg geändert. Auch bei Java hat in letzter Zeit mehr Forwärtsbewegung eingesetzt und es gilt als auch im Kernsprache selbst wieder mehr „am Ball“ zu bleiben. 39 | -- 40 | 41 | include::presentation-intro.adoc[] 42 | 43 | include::presentation-agenda.adoc[] 44 | 45 | include::presentation-highlights.adoc[] 46 | 47 | include::presentation-language.adoc[] 48 | 49 | include::presentation-api.adoc[] 50 | 51 | include::presentation-tooling.adoc[] 52 | 53 | include::presentation-outlook.adoc[] 54 | 55 | include::presentation-appendix.adoc[] 56 | 57 | 58 | [pass] 59 | ++++ 60 | 61 | 62 | 63 | 74 | ++++ 75 | -------------------------------------------------------------------------------- /docs/render: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Inital Setup see: 4 | # https://asciidoctor.org/docs/asciidoctor-revealjs/ 5 | 6 | SRCFILE=presentation.adoc 7 | SRCFILE=presentation.adoc 8 | 9 | echo "Rendering presentation.adoc" 10 | bundle exec asciidoctor-revealjs $SRCFILE 11 | 12 | echo "Starting Webserver on :8000" 13 | python -m SimpleHTTPServer >/dev/null 2>&1 & 14 | 15 | chromium-browser http://localhost:8000/presentation.html > /dev/null & 16 | 17 | echo "Watching *.adoc for changes" 18 | inotifywait -m -e close_write *.adoc | 19 | while read events; do 20 | echo $events 21 | bundle exec asciidoctor-revealjs $SRCFILE 22 | done 23 | -------------------------------------------------------------------------------- /docs/reveal.js/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.iws 4 | *.eml 5 | out/ 6 | .DS_Store 7 | .svn 8 | log/*.log 9 | tmp/** 10 | node_modules/ 11 | .sass-cache 12 | css/reveal.min.css 13 | js/reveal.min.js 14 | -------------------------------------------------------------------------------- /docs/reveal.js/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 11 4 | after_script: 5 | - npm run build -- retire 6 | -------------------------------------------------------------------------------- /docs/reveal.js/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | Please keep the [issue tracker](http://github.com/hakimel/reveal.js/issues) limited to **bug reports**, **feature requests** and **pull requests**. 4 | 5 | 6 | ### Personal Support 7 | If you have personal support or setup questions the best place to ask those are [StackOverflow](http://stackoverflow.com/questions/tagged/reveal.js). 8 | 9 | 10 | ### Bug Reports 11 | When reporting a bug make sure to include information about which browser and operating system you are on as well as the necessary steps to reproduce the issue. If possible please include a link to a sample presentation where the bug can be tested. 12 | 13 | 14 | ### Pull Requests 15 | - Should follow the coding style of the file you work in, most importantly: 16 | - Tabs to indent 17 | - Single-quoted strings 18 | - Should be made towards the **dev branch** 19 | - Should be submitted from a feature/topic branch (not your master) 20 | 21 | 22 | ### Plugins 23 | Please do not submit plugins as pull requests. They should be maintained in their own separate repository. More information here: https://github.com/hakimel/reveal.js/wiki/Plugin-Guidelines 24 | -------------------------------------------------------------------------------- /docs/reveal.js/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2019 Hakim El Hattab, http://hakim.se, and reveal.js contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /docs/reveal.js/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reveal.js", 3 | "version": "3.8.0", 4 | "main": [ 5 | "js/reveal.js", 6 | "css/reveal.css" 7 | ], 8 | "homepage": "http://revealjs.com", 9 | "license": "MIT", 10 | "description": "The HTML Presentation Framework", 11 | "authors": [ 12 | "Hakim El Hattab " 13 | ], 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/hakimel/reveal.js.git" 17 | }, 18 | "ignore": [ 19 | "**/.*", 20 | "node_modules", 21 | "bower_components", 22 | "test" 23 | ] 24 | } -------------------------------------------------------------------------------- /docs/reveal.js/css/print/pdf.css: -------------------------------------------------------------------------------- 1 | /** 2 | * This stylesheet is used to print reveal.js 3 | * presentations to PDF. 4 | * 5 | * https://github.com/hakimel/reveal.js#pdf-export 6 | */ 7 | 8 | * { 9 | -webkit-print-color-adjust: exact; 10 | } 11 | 12 | body { 13 | margin: 0 auto !important; 14 | border: 0; 15 | padding: 0; 16 | float: none !important; 17 | overflow: visible; 18 | } 19 | 20 | html { 21 | width: 100%; 22 | height: 100%; 23 | overflow: visible; 24 | } 25 | 26 | /* Remove any elements not needed in print. */ 27 | .nestedarrow, 28 | .reveal .controls, 29 | .reveal .progress, 30 | .reveal .playback, 31 | .reveal.overview, 32 | .fork-reveal, 33 | .share-reveal, 34 | .state-background { 35 | display: none !important; 36 | } 37 | 38 | h1, h2, h3, h4, h5, h6 { 39 | text-shadow: 0 0 0 #000 !important; 40 | } 41 | 42 | .reveal pre code { 43 | overflow: hidden !important; 44 | font-family: Courier, 'Courier New', monospace !important; 45 | } 46 | 47 | ul, ol, div, p { 48 | visibility: visible; 49 | position: static; 50 | width: auto; 51 | height: auto; 52 | display: block; 53 | overflow: visible; 54 | margin: auto; 55 | } 56 | .reveal { 57 | width: auto !important; 58 | height: auto !important; 59 | overflow: hidden !important; 60 | } 61 | .reveal .slides { 62 | position: static; 63 | width: 100% !important; 64 | height: auto !important; 65 | zoom: 1 !important; 66 | 67 | left: auto; 68 | top: auto; 69 | margin: 0 !important; 70 | padding: 0 !important; 71 | 72 | overflow: visible; 73 | display: block; 74 | 75 | perspective: none; 76 | perspective-origin: 50% 50%; 77 | } 78 | 79 | .reveal .slides .pdf-page { 80 | position: relative; 81 | overflow: hidden; 82 | z-index: 1; 83 | 84 | page-break-after: always; 85 | } 86 | 87 | .reveal .slides section { 88 | visibility: visible !important; 89 | display: block !important; 90 | position: absolute !important; 91 | 92 | margin: 0 !important; 93 | padding: 0 !important; 94 | box-sizing: border-box !important; 95 | min-height: 1px; 96 | 97 | opacity: 1 !important; 98 | 99 | transform-style: flat !important; 100 | transform: none !important; 101 | } 102 | 103 | .reveal section.stack { 104 | position: relative !important; 105 | margin: 0 !important; 106 | padding: 0 !important; 107 | page-break-after: avoid !important; 108 | height: auto !important; 109 | min-height: auto !important; 110 | } 111 | 112 | .reveal img { 113 | box-shadow: none; 114 | } 115 | 116 | .reveal .roll { 117 | overflow: visible; 118 | line-height: 1em; 119 | } 120 | 121 | /* Slide backgrounds are placed inside of their slide when exporting to PDF */ 122 | .reveal .slide-background { 123 | display: block !important; 124 | position: absolute; 125 | top: 0; 126 | left: 0; 127 | width: 100%; 128 | height: 100%; 129 | z-index: auto !important; 130 | } 131 | 132 | /* Display slide speaker notes when 'showNotes' is enabled */ 133 | .reveal.show-notes { 134 | max-width: none; 135 | max-height: none; 136 | } 137 | .reveal .speaker-notes-pdf { 138 | display: block; 139 | width: 100%; 140 | height: auto; 141 | max-height: none; 142 | top: auto; 143 | right: auto; 144 | bottom: auto; 145 | left: auto; 146 | z-index: 100; 147 | } 148 | 149 | /* Layout option which makes notes appear on a separate page */ 150 | .reveal .speaker-notes-pdf[data-layout="separate-page"] { 151 | position: relative; 152 | color: inherit; 153 | background-color: transparent; 154 | padding: 20px; 155 | page-break-after: always; 156 | border: 0; 157 | } 158 | 159 | /* Display slide numbers when 'slideNumber' is enabled */ 160 | .reveal .slide-number-pdf { 161 | display: block; 162 | position: absolute; 163 | font-size: 14px; 164 | } 165 | -------------------------------------------------------------------------------- /docs/reveal.js/css/reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v4.0 | 20180602 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | main, menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin: 0; 20 | padding: 0; 21 | border: 0; 22 | font-size: 100%; 23 | font: inherit; 24 | vertical-align: baseline; 25 | } 26 | /* HTML5 display-role reset for older browsers */ 27 | article, aside, details, figcaption, figure, 28 | footer, header, hgroup, main, menu, nav, section { 29 | display: block; 30 | } -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/README.md: -------------------------------------------------------------------------------- 1 | ## Dependencies 2 | 3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceeding: https://github.com/hakimel/reveal.js#full-setup 4 | 5 | ## Creating a Theme 6 | 7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `npm run build -- css-themes`. 8 | 9 | Each theme file does four things in the following order: 10 | 11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)** 12 | Shared utility functions. 13 | 14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)** 15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3. 16 | 17 | 3. **Override** 18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please. 19 | 20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)** 21 | The template theme file which will generate final CSS output based on the currently defined variables. 22 | -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/beige.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Beige theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(../../lib/font/league-gothic/league-gothic.css); 17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 18 | 19 | 20 | // Override theme settings (see ../template/settings.scss) 21 | $mainColor: #333; 22 | $headingColor: #333; 23 | $headingTextShadow: none; 24 | $backgroundColor: #f7f3de; 25 | $linkColor: #8b743d; 26 | $linkColorHover: lighten( $linkColor, 20% ); 27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99); 28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 29 | 30 | // Background generator 31 | @mixin bodyBackground() { 32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) ); 33 | } 34 | 35 | 36 | 37 | // Theme template ------------------------------ 38 | @import "../template/theme"; 39 | // --------------------------------------------- -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/black.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. This is the opposite of the 'white' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #191919; 20 | 21 | $mainColor: #fff; 22 | $headingColor: #fff; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #42affa; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-light-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #222; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/blood.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Blood theme for reveal.js 3 | * Author: Walther http://github.com/Walther 4 | * 5 | * Designed to be used with highlight.js theme 6 | * "monokai_sublime.css" available from 7 | * https://github.com/isagalaev/highlight.js/ 8 | * 9 | * For other themes, change $codeBackground accordingly. 10 | * 11 | */ 12 | 13 | // Default mixins and settings ----------------- 14 | @import "../template/mixins"; 15 | @import "../template/settings"; 16 | // --------------------------------------------- 17 | 18 | // Include theme-specific fonts 19 | 20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic); 21 | 22 | // Colors used in the theme 23 | $blood: #a23; 24 | $coal: #222; 25 | $codeBackground: #23241f; 26 | 27 | $backgroundColor: $coal; 28 | 29 | // Main text 30 | $mainFont: Ubuntu, 'sans-serif'; 31 | $mainColor: #eee; 32 | 33 | // Headings 34 | $headingFont: Ubuntu, 'sans-serif'; 35 | $headingTextShadow: 2px 2px 2px $coal; 36 | 37 | // h1 shadow, borrowed humbly from 38 | // (c) Default theme by Hakim El Hattab 39 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 40 | 41 | // Links 42 | $linkColor: $blood; 43 | $linkColorHover: lighten( $linkColor, 20% ); 44 | 45 | // Text selection 46 | $selectionBackgroundColor: $blood; 47 | $selectionColor: #fff; 48 | 49 | 50 | // Theme template ------------------------------ 51 | @import "../template/theme"; 52 | // --------------------------------------------- 53 | 54 | // some overrides after theme template import 55 | 56 | .reveal p { 57 | font-weight: 300; 58 | text-shadow: 1px 1px $coal; 59 | } 60 | 61 | .reveal h1, 62 | .reveal h2, 63 | .reveal h3, 64 | .reveal h4, 65 | .reveal h5, 66 | .reveal h6 { 67 | font-weight: 700; 68 | } 69 | 70 | .reveal p code { 71 | background-color: $codeBackground; 72 | display: inline-block; 73 | border-radius: 7px; 74 | } 75 | 76 | .reveal small code { 77 | vertical-align: baseline; 78 | } -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/league.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * League theme for reveal.js. 3 | * 4 | * This was the default theme pre-3.0.0. 5 | * 6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(../../lib/font/league-gothic/league-gothic.css); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | // Override theme settings (see ../template/settings.scss) 22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2); 23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15); 24 | 25 | // Background generator 26 | @mixin bodyBackground() { 27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) ); 28 | } 29 | 30 | 31 | 32 | // Theme template ------------------------------ 33 | @import "../template/theme"; 34 | // --------------------------------------------- -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/moon.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Dark theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | /** 19 | * Solarized colors by Ethan Schoonover 20 | */ 21 | html * { 22 | color-profile: sRGB; 23 | rendering-intent: auto; 24 | } 25 | 26 | // Solarized colors 27 | $base03: #002b36; 28 | $base02: #073642; 29 | $base01: #586e75; 30 | $base00: #657b83; 31 | $base0: #839496; 32 | $base1: #93a1a1; 33 | $base2: #eee8d5; 34 | $base3: #fdf6e3; 35 | $yellow: #b58900; 36 | $orange: #cb4b16; 37 | $red: #dc322f; 38 | $magenta: #d33682; 39 | $violet: #6c71c4; 40 | $blue: #268bd2; 41 | $cyan: #2aa198; 42 | $green: #859900; 43 | 44 | // Override theme settings (see ../template/settings.scss) 45 | $mainColor: $base1; 46 | $headingColor: $base2; 47 | $headingTextShadow: none; 48 | $backgroundColor: $base03; 49 | $linkColor: $blue; 50 | $linkColorHover: lighten( $linkColor, 20% ); 51 | $selectionBackgroundColor: $magenta; 52 | 53 | 54 | 55 | // Theme template ------------------------------ 56 | @import "../template/theme"; 57 | // --------------------------------------------- 58 | -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/night.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Black theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700); 16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic); 17 | 18 | 19 | // Override theme settings (see ../template/settings.scss) 20 | $backgroundColor: #111; 21 | 22 | $mainFont: 'Open Sans', sans-serif; 23 | $linkColor: #e7ad52; 24 | $linkColorHover: lighten( $linkColor, 20% ); 25 | $headingFont: 'Montserrat', Impact, sans-serif; 26 | $headingTextShadow: none; 27 | $headingLetterSpacing: -0.03em; 28 | $headingTextTransform: none; 29 | $selectionBackgroundColor: #e7ad52; 30 | 31 | 32 | // Theme template ------------------------------ 33 | @import "../template/theme"; 34 | // --------------------------------------------- -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/serif.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is brown. 4 | * 5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed. 6 | */ 7 | 8 | 9 | // Default mixins and settings ----------------- 10 | @import "../template/mixins"; 11 | @import "../template/settings"; 12 | // --------------------------------------------- 13 | 14 | 15 | 16 | // Override theme settings (see ../template/settings.scss) 17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 18 | $mainColor: #000; 19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; 20 | $headingColor: #383D3D; 21 | $headingTextShadow: none; 22 | $headingTextTransform: none; 23 | $backgroundColor: #F0F1EB; 24 | $linkColor: #51483D; 25 | $linkColorHover: lighten( $linkColor, 20% ); 26 | $selectionBackgroundColor: #26351C; 27 | 28 | .reveal a { 29 | line-height: 1.3em; 30 | } 31 | 32 | 33 | // Theme template ------------------------------ 34 | @import "../template/theme"; 35 | // --------------------------------------------- 36 | -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/simple.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * A simple theme for reveal.js presentations, similar 3 | * to the default theme. The accent color is darkblue. 4 | * 5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed. 6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 7 | */ 8 | 9 | 10 | // Default mixins and settings ----------------- 11 | @import "../template/mixins"; 12 | @import "../template/settings"; 13 | // --------------------------------------------- 14 | 15 | 16 | 17 | // Include theme-specific fonts 18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700); 19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 20 | 21 | 22 | // Override theme settings (see ../template/settings.scss) 23 | $mainFont: 'Lato', sans-serif; 24 | $mainColor: #000; 25 | $headingFont: 'News Cycle', Impact, sans-serif; 26 | $headingColor: #000; 27 | $headingTextShadow: none; 28 | $headingTextTransform: none; 29 | $backgroundColor: #fff; 30 | $linkColor: #00008B; 31 | $linkColorHover: lighten( $linkColor, 20% ); 32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99); 33 | 34 | section.has-dark-background { 35 | &, h1, h2, h3, h4, h5, h6 { 36 | color: #fff; 37 | } 38 | } 39 | 40 | 41 | // Theme template ------------------------------ 42 | @import "../template/theme"; 43 | // --------------------------------------------- -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/sky.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Sky theme for reveal.js. 3 | * 4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | 15 | // Include theme-specific fonts 16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic); 17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700); 18 | 19 | 20 | // Override theme settings (see ../template/settings.scss) 21 | $mainFont: 'Open Sans', sans-serif; 22 | $mainColor: #333; 23 | $headingFont: 'Quicksand', sans-serif; 24 | $headingColor: #333; 25 | $headingLetterSpacing: -0.08em; 26 | $headingTextShadow: none; 27 | $backgroundColor: #f7fbfc; 28 | $linkColor: #3b759e; 29 | $linkColorHover: lighten( $linkColor, 20% ); 30 | $selectionBackgroundColor: #134674; 31 | 32 | // Fix links so they are not cut off 33 | .reveal a { 34 | line-height: 1.3em; 35 | } 36 | 37 | // Background generator 38 | @mixin bodyBackground() { 39 | @include radial-gradient( #add9e4, #f7fbfc ); 40 | } 41 | 42 | 43 | 44 | // Theme template ------------------------------ 45 | @import "../template/theme"; 46 | // --------------------------------------------- 47 | -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/solarized.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * Solarized Light theme for reveal.js. 3 | * Author: Achim Staebler 4 | */ 5 | 6 | 7 | // Default mixins and settings ----------------- 8 | @import "../template/mixins"; 9 | @import "../template/settings"; 10 | // --------------------------------------------- 11 | 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/league-gothic/league-gothic.css); 16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic); 17 | 18 | 19 | /** 20 | * Solarized colors by Ethan Schoonover 21 | */ 22 | html * { 23 | color-profile: sRGB; 24 | rendering-intent: auto; 25 | } 26 | 27 | // Solarized colors 28 | $base03: #002b36; 29 | $base02: #073642; 30 | $base01: #586e75; 31 | $base00: #657b83; 32 | $base0: #839496; 33 | $base1: #93a1a1; 34 | $base2: #eee8d5; 35 | $base3: #fdf6e3; 36 | $yellow: #b58900; 37 | $orange: #cb4b16; 38 | $red: #dc322f; 39 | $magenta: #d33682; 40 | $violet: #6c71c4; 41 | $blue: #268bd2; 42 | $cyan: #2aa198; 43 | $green: #859900; 44 | 45 | // Override theme settings (see ../template/settings.scss) 46 | $mainColor: $base00; 47 | $headingColor: $base01; 48 | $headingTextShadow: none; 49 | $backgroundColor: $base3; 50 | $linkColor: $blue; 51 | $linkColorHover: lighten( $linkColor, 20% ); 52 | $selectionBackgroundColor: $magenta; 53 | 54 | // Background generator 55 | // @mixin bodyBackground() { 56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) ); 57 | // } 58 | 59 | 60 | 61 | // Theme template ------------------------------ 62 | @import "../template/theme"; 63 | // --------------------------------------------- 64 | -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/source/white.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * White theme for reveal.js. This is the opposite of the 'black' theme. 3 | * 4 | * By Hakim El Hattab, http://hakim.se 5 | */ 6 | 7 | 8 | // Default mixins and settings ----------------- 9 | @import "../template/mixins"; 10 | @import "../template/settings"; 11 | // --------------------------------------------- 12 | 13 | 14 | // Include theme-specific fonts 15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css); 16 | 17 | 18 | // Override theme settings (see ../template/settings.scss) 19 | $backgroundColor: #fff; 20 | 21 | $mainColor: #222; 22 | $headingColor: #222; 23 | 24 | $mainFontSize: 42px; 25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif; 26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif; 27 | $headingTextShadow: none; 28 | $headingLetterSpacing: normal; 29 | $headingTextTransform: uppercase; 30 | $headingFontWeight: 600; 31 | $linkColor: #2a76dd; 32 | $linkColorHover: lighten( $linkColor, 15% ); 33 | $selectionBackgroundColor: lighten( $linkColor, 25% ); 34 | 35 | $heading1Size: 2.5em; 36 | $heading2Size: 1.6em; 37 | $heading3Size: 1.3em; 38 | $heading4Size: 1.0em; 39 | 40 | section.has-dark-background { 41 | &, h1, h2, h3, h4, h5, h6 { 42 | color: #fff; 43 | } 44 | } 45 | 46 | 47 | // Theme template ------------------------------ 48 | @import "../template/theme"; 49 | // --------------------------------------------- -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/template/mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin vertical-gradient( $top, $bottom ) { 2 | background: $top; 3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% ); 4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) ); 5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% ); 6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% ); 7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% ); 8 | background: linear-gradient( top, $top 0%, $bottom 100% ); 9 | } 10 | 11 | @mixin horizontal-gradient( $top, $bottom ) { 12 | background: $top; 13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% ); 14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) ); 15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% ); 16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% ); 17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% ); 18 | background: linear-gradient( left, $top 0%, $bottom 100% ); 19 | } 20 | 21 | @mixin radial-gradient( $outer, $inner, $type: circle ) { 22 | background: $outer; 23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) ); 25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% ); 29 | } -------------------------------------------------------------------------------- /docs/reveal.js/css/theme/template/settings.scss: -------------------------------------------------------------------------------- 1 | // Base settings for all themes that can optionally be 2 | // overridden by the super-theme 3 | 4 | // Background of the presentation 5 | $backgroundColor: #2b2b2b; 6 | 7 | // Primary/body text 8 | $mainFont: 'Lato', sans-serif; 9 | $mainFontSize: 40px; 10 | $mainColor: #eee; 11 | 12 | // Vertical spacing between blocks of text 13 | $blockMargin: 20px; 14 | 15 | // Headings 16 | $headingMargin: 0 0 $blockMargin 0; 17 | $headingFont: 'League Gothic', Impact, sans-serif; 18 | $headingColor: #eee; 19 | $headingLineHeight: 1.2; 20 | $headingLetterSpacing: normal; 21 | $headingTextTransform: uppercase; 22 | $headingTextShadow: none; 23 | $headingFontWeight: normal; 24 | $heading1TextShadow: $headingTextShadow; 25 | 26 | $heading1Size: 3.77em; 27 | $heading2Size: 2.11em; 28 | $heading3Size: 1.55em; 29 | $heading4Size: 1.00em; 30 | 31 | $codeFont: monospace; 32 | 33 | // Links and actions 34 | $linkColor: #13DAEC; 35 | $linkColorHover: lighten( $linkColor, 20% ); 36 | 37 | // Text selection 38 | $selectionBackgroundColor: #FF5E99; 39 | $selectionColor: #fff; 40 | 41 | // Generates the presentation background, can be overridden 42 | // to return a background image or gradient 43 | @mixin bodyBackground() { 44 | background: $backgroundColor; 45 | } 46 | -------------------------------------------------------------------------------- /docs/reveal.js/gruntfile.js: -------------------------------------------------------------------------------- 1 | const sass = require('node-sass'); 2 | 3 | module.exports = grunt => { 4 | 5 | require('load-grunt-tasks')(grunt); 6 | 7 | let port = grunt.option('port') || 8000; 8 | let root = grunt.option('root') || '.'; 9 | 10 | if (!Array.isArray(root)) root = [root]; 11 | 12 | // Project configuration 13 | grunt.initConfig({ 14 | pkg: grunt.file.readJSON('package.json'), 15 | meta: { 16 | banner: 17 | '/*!\n' + 18 | ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' + 19 | ' * http://revealjs.com\n' + 20 | ' * MIT licensed\n' + 21 | ' *\n' + 22 | ' * Copyright (C) 2019 Hakim El Hattab, http://hakim.se\n' + 23 | ' */' 24 | }, 25 | 26 | qunit: { 27 | files: [ 'test/*.html' ] 28 | }, 29 | 30 | uglify: { 31 | options: { 32 | banner: '<%= meta.banner %>\n', 33 | ie8: true 34 | }, 35 | build: { 36 | src: 'js/reveal.js', 37 | dest: 'js/reveal.min.js' 38 | } 39 | }, 40 | 41 | sass: { 42 | options: { 43 | implementation: sass, 44 | sourceMap: false 45 | }, 46 | core: { 47 | src: 'css/reveal.scss', 48 | dest: 'css/reveal.css' 49 | }, 50 | themes: { 51 | expand: true, 52 | cwd: 'css/theme/source', 53 | src: ['*.sass', '*.scss'], 54 | dest: 'css/theme', 55 | ext: '.css' 56 | } 57 | }, 58 | 59 | autoprefixer: { 60 | core: { 61 | src: 'css/reveal.css' 62 | } 63 | }, 64 | 65 | cssmin: { 66 | options: { 67 | compatibility: 'ie9' 68 | }, 69 | compress: { 70 | src: 'css/reveal.css', 71 | dest: 'css/reveal.min.css' 72 | } 73 | }, 74 | 75 | jshint: { 76 | options: { 77 | curly: false, 78 | eqeqeq: true, 79 | immed: true, 80 | esnext: true, 81 | latedef: 'nofunc', 82 | newcap: true, 83 | noarg: true, 84 | sub: true, 85 | undef: true, 86 | eqnull: true, 87 | browser: true, 88 | expr: true, 89 | loopfunc: true, 90 | globals: { 91 | head: false, 92 | module: false, 93 | console: false, 94 | unescape: false, 95 | define: false, 96 | exports: false, 97 | require: false 98 | } 99 | }, 100 | files: [ 'gruntfile.js', 'js/reveal.js' ] 101 | }, 102 | 103 | connect: { 104 | server: { 105 | options: { 106 | port: port, 107 | base: root, 108 | livereload: true, 109 | open: true, 110 | useAvailablePort: true 111 | } 112 | } 113 | }, 114 | 115 | zip: { 116 | bundle: { 117 | src: [ 118 | 'index.html', 119 | 'css/**', 120 | 'js/**', 121 | 'lib/**', 122 | 'images/**', 123 | 'plugin/**', 124 | '**.md' 125 | ], 126 | dest: 'reveal-js-presentation.zip' 127 | } 128 | }, 129 | 130 | watch: { 131 | js: { 132 | files: [ 'gruntfile.js', 'js/reveal.js' ], 133 | tasks: 'js' 134 | }, 135 | theme: { 136 | files: [ 137 | 'css/theme/source/*.sass', 138 | 'css/theme/source/*.scss', 139 | 'css/theme/template/*.sass', 140 | 'css/theme/template/*.scss' 141 | ], 142 | tasks: 'css-themes' 143 | }, 144 | css: { 145 | files: [ 'css/reveal.scss' ], 146 | tasks: 'css-core' 147 | }, 148 | test: { 149 | files: [ 'test/*.html' ], 150 | tasks: 'test' 151 | }, 152 | html: { 153 | files: root.map(path => path + '/*.html') 154 | }, 155 | markdown: { 156 | files: root.map(path => path + '/*.md') 157 | }, 158 | options: { 159 | livereload: true 160 | } 161 | } 162 | 163 | }); 164 | 165 | // Default task 166 | grunt.registerTask( 'default', [ 'css', 'js' ] ); 167 | 168 | // JS task 169 | grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] ); 170 | 171 | // Theme CSS 172 | grunt.registerTask( 'css-themes', [ 'sass:themes' ] ); 173 | 174 | // Core framework CSS 175 | grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] ); 176 | 177 | // All CSS 178 | grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] ); 179 | 180 | // Package presentation to archive 181 | grunt.registerTask( 'package', [ 'default', 'zip' ] ); 182 | 183 | // Serve presentation locally 184 | grunt.registerTask( 'serve', [ 'connect', 'watch' ] ); 185 | 186 | // Run tests 187 | grunt.registerTask( 'test', [ 'jshint', 'qunit' ] ); 188 | 189 | }; 190 | -------------------------------------------------------------------------------- /docs/reveal.js/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 24 | 25 | 26 |
27 |
28 |
Slide 1
29 |
Slide 2
30 |
31 |
32 | 33 | 34 | 35 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /docs/reveal.js/lib/css/monokai.css: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | background: #272822; 10 | color: #ddd; 11 | } 12 | 13 | .hljs-tag, 14 | .hljs-keyword, 15 | .hljs-selector-tag, 16 | .hljs-literal, 17 | .hljs-strong, 18 | .hljs-name { 19 | color: #f92672; 20 | } 21 | 22 | .hljs-code { 23 | color: #66d9ef; 24 | } 25 | 26 | .hljs-class .hljs-title { 27 | color: white; 28 | } 29 | 30 | .hljs-attribute, 31 | .hljs-symbol, 32 | .hljs-regexp, 33 | .hljs-link { 34 | color: #bf79db; 35 | } 36 | 37 | .hljs-string, 38 | .hljs-bullet, 39 | .hljs-subst, 40 | .hljs-title, 41 | .hljs-section, 42 | .hljs-emphasis, 43 | .hljs-type, 44 | .hljs-built_in, 45 | .hljs-builtin-name, 46 | .hljs-selector-attr, 47 | .hljs-selector-pseudo, 48 | .hljs-addition, 49 | .hljs-variable, 50 | .hljs-template-tag, 51 | .hljs-template-variable { 52 | color: #a6e22e; 53 | } 54 | 55 | .hljs-comment, 56 | .hljs-quote, 57 | .hljs-deletion, 58 | .hljs-meta { 59 | color: #75715e; 60 | } 61 | 62 | .hljs-keyword, 63 | .hljs-selector-tag, 64 | .hljs-literal, 65 | .hljs-doctag, 66 | .hljs-title, 67 | .hljs-section, 68 | .hljs-type, 69 | .hljs-selector-id { 70 | font-weight: bold; 71 | } 72 | -------------------------------------------------------------------------------- /docs/reveal.js/lib/css/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | } 15 | 16 | .hljs-keyword, 17 | .hljs-selector-tag, 18 | .hljs-tag { 19 | color: #e3ceab; 20 | } 21 | 22 | .hljs-template-tag { 23 | color: #dcdcdc; 24 | } 25 | 26 | .hljs-number { 27 | color: #8cd0d3; 28 | } 29 | 30 | .hljs-variable, 31 | .hljs-template-variable, 32 | .hljs-attribute { 33 | color: #efdcbc; 34 | } 35 | 36 | .hljs-literal { 37 | color: #efefaf; 38 | } 39 | 40 | .hljs-subst { 41 | color: #8f8f8f; 42 | } 43 | 44 | .hljs-title, 45 | .hljs-name, 46 | .hljs-selector-id, 47 | .hljs-selector-class, 48 | .hljs-section, 49 | .hljs-type { 50 | color: #efef8f; 51 | } 52 | 53 | .hljs-symbol, 54 | .hljs-bullet, 55 | .hljs-link { 56 | color: #dca3a3; 57 | } 58 | 59 | .hljs-deletion, 60 | .hljs-string, 61 | .hljs-built_in, 62 | .hljs-builtin-name { 63 | color: #cc9393; 64 | } 65 | 66 | .hljs-addition, 67 | .hljs-comment, 68 | .hljs-quote, 69 | .hljs-meta { 70 | color: #7f9f7f; 71 | } 72 | 73 | 74 | .hljs-emphasis { 75 | font-style: italic; 76 | } 77 | 78 | .hljs-strong { 79 | font-weight: bold; 80 | } 81 | -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/league-gothic/LICENSE: -------------------------------------------------------------------------------- 1 | SIL Open Font License (OFL) 2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL 3 | -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/league-gothic/league-gothic.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'League Gothic'; 3 | src: url('league-gothic.eot'); 4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'), 5 | url('league-gothic.woff') format('woff'), 6 | url('league-gothic.ttf') format('truetype'); 7 | 8 | font-weight: normal; 9 | font-style: normal; 10 | } -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/league-gothic/league-gothic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/league-gothic/league-gothic.eot -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/league-gothic/league-gothic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/league-gothic/league-gothic.ttf -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/league-gothic/league-gothic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/league-gothic/league-gothic.woff -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff -------------------------------------------------------------------------------- /docs/reveal.js/lib/font/source-sans-pro/source-sans-pro.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Source Sans Pro'; 3 | src: url('source-sans-pro-regular.eot'); 4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'), 5 | url('source-sans-pro-regular.woff') format('woff'), 6 | url('source-sans-pro-regular.ttf') format('truetype'); 7 | font-weight: normal; 8 | font-style: normal; 9 | } 10 | 11 | @font-face { 12 | font-family: 'Source Sans Pro'; 13 | src: url('source-sans-pro-italic.eot'); 14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'), 15 | url('source-sans-pro-italic.woff') format('woff'), 16 | url('source-sans-pro-italic.ttf') format('truetype'); 17 | font-weight: normal; 18 | font-style: italic; 19 | } 20 | 21 | @font-face { 22 | font-family: 'Source Sans Pro'; 23 | src: url('source-sans-pro-semibold.eot'); 24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'), 25 | url('source-sans-pro-semibold.woff') format('woff'), 26 | url('source-sans-pro-semibold.ttf') format('truetype'); 27 | font-weight: 600; 28 | font-style: normal; 29 | } 30 | 31 | @font-face { 32 | font-family: 'Source Sans Pro'; 33 | src: url('source-sans-pro-semibolditalic.eot'); 34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'), 35 | url('source-sans-pro-semibolditalic.woff') format('woff'), 36 | url('source-sans-pro-semibolditalic.ttf') format('truetype'); 37 | font-weight: 600; 38 | font-style: italic; 39 | } -------------------------------------------------------------------------------- /docs/reveal.js/lib/js/html5shiv.js: -------------------------------------------------------------------------------- 1 | document.createElement('header'); 2 | document.createElement('nav'); 3 | document.createElement('section'); 4 | document.createElement('article'); 5 | document.createElement('aside'); 6 | document.createElement('footer'); 7 | document.createElement('hgroup'); -------------------------------------------------------------------------------- /docs/reveal.js/lib/js/promise.js: -------------------------------------------------------------------------------- 1 | /* MIT | https://github.com/taylorhakes/promise-polyfill */ 2 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()}(0,function(){"use strict";function e(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}function n(){}function t(e){if(!(this instanceof t))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],u(e,this)}function o(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var o;try{o=t(e._value)}catch(f){return void i(n.promise,f)}r(n.promise,o)}else(1===e._state?r:i)(n.promise,e._value)})):e._deferreds.push(n)}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if(n instanceof t)return e._state=3,e._value=n,void f(e);if("function"==typeof o)return void u(function(e,n){return function(){e.apply(n,arguments)}}(o,n),e)}e._state=1,e._value=n,f(e)}catch(r){i(e,r)}}function i(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&t._immediateFn(function(){e._handled||t._unhandledRejectionFn(e._value)});for(var n=0,r=e._deferreds.length;r>n;n++)o(e,e._deferreds[n]);e._deferreds=null}function u(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,i(n,e))})}catch(o){if(t)return;t=!0,i(n,o)}}var c=setTimeout;t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r=new this.constructor(n);return o(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,t,r)),r},t.prototype["finally"]=e,t.all=function(e){return new t(function(n,t){function o(e,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(n){o(e,n)},t)}r[e]=f,0==--i&&n(r)}catch(c){t(c)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);for(var i=r.length,f=0;r.length>f;f++)o(f,r[f])})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(n){n(e)})},t.reject=function(e){return new t(function(n,t){t(e)})},t.race=function(e){return new t(function(n,t){for(var o=0,r=e.length;r>o;o++)e[o].then(n,t)})},t._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},t._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l.Promise=t}); -------------------------------------------------------------------------------- /docs/reveal.js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reveal.js", 3 | "version": "3.8.0", 4 | "description": "The HTML Presentation Framework", 5 | "homepage": "http://revealjs.com", 6 | "subdomain": "revealjs", 7 | "main": "js/reveal.js", 8 | "scripts": { 9 | "test": "grunt test", 10 | "start": "grunt serve", 11 | "build": "grunt" 12 | }, 13 | "author": { 14 | "name": "Hakim El Hattab", 15 | "email": "hakim.elhattab@gmail.com", 16 | "web": "http://hakim.se" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "git://github.com/hakimel/reveal.js.git" 21 | }, 22 | "engines": { 23 | "node": ">=9.0.0" 24 | }, 25 | "devDependencies": { 26 | "express": "^4.16.2", 27 | "grunt": "^1.0.4", 28 | "grunt-cli": "^1.3.2", 29 | "grunt-autoprefixer": "^3.0.4", 30 | "grunt-contrib-connect": "^2.0.0", 31 | "grunt-contrib-cssmin": "^3.0.0", 32 | "grunt-contrib-jshint": "^2.0.0", 33 | "grunt-contrib-qunit": "^3.1.0", 34 | "grunt-contrib-uglify": "^3.3.0", 35 | "grunt-contrib-watch": "^1.1.0", 36 | "grunt-sass": "^3.0.2", 37 | "grunt-zip": "~0.17.1", 38 | "load-grunt-tasks": "^4.0.0", 39 | "node-sass": "^4.11.0", 40 | "mustache": "^2.3.0", 41 | "socket.io": "^2.2.0" 42 | }, 43 | "license": "MIT" 44 | } 45 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/markdown/example.md: -------------------------------------------------------------------------------- 1 | # Markdown Demo 2 | 3 | 4 | 5 | ## External 1.1 6 | 7 | Content 1.1 8 | 9 | Note: This will only appear in the speaker notes window. 10 | 11 | 12 | ## External 1.2 13 | 14 | Content 1.2 15 | 16 | 17 | 18 | ## External 2 19 | 20 | Content 2.1 21 | 22 | 23 | 24 | ## External 3.1 25 | 26 | Content 3.1 27 | 28 | 29 | ## External 3.2 30 | 31 | Content 3.2 32 | 33 | 34 | ## External 3.3 35 | 36 | ![External Image](https://s3.amazonaws.com/static.slid.es/logo/v2/slides-symbol-512x512.png) 37 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/math/math.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A plugin which enables rendering of math equations inside 3 | * of reveal.js slides. Essentially a thin wrapper for MathJax. 4 | * 5 | * @author Hakim El Hattab 6 | */ 7 | var RevealMath = window.RevealMath || (function(){ 8 | 9 | var options = Reveal.getConfig().math || {}; 10 | var mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js'; 11 | var config = options.config || 'TeX-AMS_HTML-full'; 12 | var url = mathjax + '?config=' + config; 13 | 14 | var defaultOptions = { 15 | messageStyle: 'none', 16 | tex2jax: { 17 | inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ], 18 | skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ] 19 | }, 20 | skipStartupTypeset: true 21 | }; 22 | 23 | function defaults( options, defaultOptions ) { 24 | 25 | for ( var i in defaultOptions ) { 26 | if ( !options.hasOwnProperty( i ) ) { 27 | options[i] = defaultOptions[i]; 28 | } 29 | } 30 | 31 | } 32 | 33 | function loadScript( url, callback ) { 34 | 35 | var head = document.querySelector( 'head' ); 36 | var script = document.createElement( 'script' ); 37 | script.type = 'text/javascript'; 38 | script.src = url; 39 | 40 | // Wrapper for callback to make sure it only fires once 41 | var finish = function() { 42 | if( typeof callback === 'function' ) { 43 | callback.call(); 44 | callback = null; 45 | } 46 | } 47 | 48 | script.onload = finish; 49 | 50 | // IE 51 | script.onreadystatechange = function() { 52 | if ( this.readyState === 'loaded' ) { 53 | finish(); 54 | } 55 | } 56 | 57 | // Normal browsers 58 | head.appendChild( script ); 59 | 60 | } 61 | 62 | return { 63 | init: function() { 64 | 65 | defaults( options, defaultOptions ); 66 | defaults( options.tex2jax, defaultOptions.tex2jax ); 67 | options.mathjax = options.config = null; 68 | 69 | loadScript( url, function() { 70 | 71 | MathJax.Hub.Config( options ); 72 | 73 | // Typeset followed by an immediate reveal.js layout since 74 | // the typesetting process could affect slide height 75 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] ); 76 | MathJax.Hub.Queue( Reveal.layout ); 77 | 78 | // Reprocess equations in slides when they turn visible 79 | Reveal.addEventListener( 'slidechanged', function( event ) { 80 | 81 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] ); 82 | 83 | } ); 84 | 85 | } ); 86 | 87 | } 88 | } 89 | 90 | })(); 91 | 92 | Reveal.registerPlugin( 'math', RevealMath ); 93 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/multiplex/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var multiplex = Reveal.getConfig().multiplex; 3 | var socketId = multiplex.id; 4 | var socket = io.connect(multiplex.url); 5 | 6 | socket.on(multiplex.id, function(data) { 7 | // ignore data from sockets that aren't ours 8 | if (data.socketId !== socketId) { return; } 9 | if( window.location.host === 'localhost:1947' ) return; 10 | 11 | Reveal.setState(data.state); 12 | }); 13 | }()); 14 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/multiplex/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var crypto = require('crypto'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port: process.env.PORT || 1948, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | socket.on('multiplex-statechanged', function(data) { 20 | if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return; 21 | if (createHash(data.secret) === data.socketId) { 22 | data.secret = null; 23 | socket.broadcast.emit(data.socketId, data); 24 | }; 25 | }); 26 | }); 27 | 28 | [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) { 29 | app.use('/' + dir, staticDir(opts.baseDir + dir)); 30 | }); 31 | 32 | app.get("/", function(req, res) { 33 | res.writeHead(200, {'Content-Type': 'text/html'}); 34 | 35 | var stream = fs.createReadStream(opts.baseDir + '/index.html'); 36 | stream.on('error', function( error ) { 37 | res.write('

reveal.js multiplex server.

Generate token'); 38 | res.end(); 39 | }); 40 | stream.on('readable', function() { 41 | stream.pipe(res); 42 | }); 43 | }); 44 | 45 | app.get("/token", function(req,res) { 46 | var ts = new Date().getTime(); 47 | var rand = Math.floor(Math.random()*9999999); 48 | var secret = ts.toString() + rand.toString(); 49 | res.send({secret: secret, socketId: createHash(secret)}); 50 | }); 51 | 52 | var createHash = function(secret) { 53 | var cipher = crypto.createCipher('blowfish', secret); 54 | return(cipher.final('hex')); 55 | }; 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset ); -------------------------------------------------------------------------------- /docs/reveal.js/plugin/multiplex/master.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // Don't emit events from inside of notes windows 4 | if ( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var multiplex = Reveal.getConfig().multiplex; 7 | 8 | var socket = io.connect( multiplex.url ); 9 | 10 | function post() { 11 | 12 | var messageData = { 13 | state: Reveal.getState(), 14 | secret: multiplex.secret, 15 | socketId: multiplex.id 16 | }; 17 | 18 | socket.emit( 'multiplex-statechanged', messageData ); 19 | 20 | }; 21 | 22 | // post once the page is loaded, so the client follows also on "open URL". 23 | window.addEventListener( 'load', post ); 24 | 25 | // Monitor events that trigger a change in state 26 | Reveal.addEventListener( 'slidechanged', post ); 27 | Reveal.addEventListener( 'fragmentshown', post ); 28 | Reveal.addEventListener( 'fragmenthidden', post ); 29 | Reveal.addEventListener( 'overviewhidden', post ); 30 | Reveal.addEventListener( 'overviewshown', post ); 31 | Reveal.addEventListener( 'paused', post ); 32 | Reveal.addEventListener( 'resumed', post ); 33 | 34 | }()); 35 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/multiplex/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "reveal-js-multiplex", 3 | "version": "1.0.0", 4 | "description": "reveal.js multiplex server", 5 | "homepage": "http://revealjs.com", 6 | "scripts": { 7 | "start": "node index.js" 8 | }, 9 | "engines": { 10 | "node": "~4.1.1" 11 | }, 12 | "dependencies": { 13 | "express": "~4.13.3", 14 | "grunt-cli": "~0.1.13", 15 | "mustache": "~2.2.1", 16 | "socket.io": "~1.3.7" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/notes-server/client.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | 3 | // don't emit events from inside the previews themselves 4 | if( window.location.search.match( /receiver/gi ) ) { return; } 5 | 6 | var socket = io.connect( window.location.origin ), 7 | socketId = Math.random().toString().slice( 2 ); 8 | 9 | console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId ); 10 | 11 | window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId ); 12 | 13 | /** 14 | * Posts the current slide data to the notes window 15 | */ 16 | function post() { 17 | 18 | var slideElement = Reveal.getCurrentSlide(), 19 | notesElement = slideElement.querySelector( 'aside.notes' ); 20 | 21 | var messageData = { 22 | notes: '', 23 | markdown: false, 24 | socketId: socketId, 25 | state: Reveal.getState() 26 | }; 27 | 28 | // Look for notes defined in a slide attribute 29 | if( slideElement.hasAttribute( 'data-notes' ) ) { 30 | messageData.notes = slideElement.getAttribute( 'data-notes' ); 31 | } 32 | 33 | // Look for notes defined in an aside element 34 | if( notesElement ) { 35 | messageData.notes = notesElement.innerHTML; 36 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string'; 37 | } 38 | 39 | socket.emit( 'statechanged', messageData ); 40 | 41 | } 42 | 43 | // When a new notes window connects, post our current state 44 | socket.on( 'new-subscriber', function( data ) { 45 | post(); 46 | } ); 47 | 48 | // When the state changes from inside of the speaker view 49 | socket.on( 'statechanged-speaker', function( data ) { 50 | Reveal.setState( data.state ); 51 | } ); 52 | 53 | // Monitor events that trigger a change in state 54 | Reveal.addEventListener( 'slidechanged', post ); 55 | Reveal.addEventListener( 'fragmentshown', post ); 56 | Reveal.addEventListener( 'fragmenthidden', post ); 57 | Reveal.addEventListener( 'overviewhidden', post ); 58 | Reveal.addEventListener( 'overviewshown', post ); 59 | Reveal.addEventListener( 'paused', post ); 60 | Reveal.addEventListener( 'resumed', post ); 61 | 62 | // Post the initial state 63 | post(); 64 | 65 | }()); 66 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/notes-server/index.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var express = require('express'); 3 | var fs = require('fs'); 4 | var io = require('socket.io'); 5 | var Mustache = require('mustache'); 6 | 7 | var app = express(); 8 | var staticDir = express.static; 9 | var server = http.createServer(app); 10 | 11 | io = io(server); 12 | 13 | var opts = { 14 | port : 1947, 15 | baseDir : __dirname + '/../../' 16 | }; 17 | 18 | io.on( 'connection', function( socket ) { 19 | 20 | socket.on( 'new-subscriber', function( data ) { 21 | socket.broadcast.emit( 'new-subscriber', data ); 22 | }); 23 | 24 | socket.on( 'statechanged', function( data ) { 25 | delete data.state.overview; 26 | socket.broadcast.emit( 'statechanged', data ); 27 | }); 28 | 29 | socket.on( 'statechanged-speaker', function( data ) { 30 | delete data.state.overview; 31 | socket.broadcast.emit( 'statechanged-speaker', data ); 32 | }); 33 | 34 | }); 35 | 36 | [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) { 37 | app.use( '/' + dir, staticDir( opts.baseDir + dir ) ); 38 | }); 39 | 40 | app.get('/', function( req, res ) { 41 | 42 | res.writeHead( 200, { 'Content-Type': 'text/html' } ); 43 | fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res ); 44 | 45 | }); 46 | 47 | app.get( '/notes/:socketId', function( req, res ) { 48 | 49 | fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) { 50 | res.send( Mustache.to_html( data.toString(), { 51 | socketId : req.params.socketId 52 | })); 53 | }); 54 | 55 | }); 56 | 57 | // Actually listen 58 | server.listen( opts.port || null ); 59 | 60 | var brown = '\033[33m', 61 | green = '\033[32m', 62 | reset = '\033[0m'; 63 | 64 | var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' ); 65 | 66 | console.log( brown + 'reveal.js - Speaker Notes' + reset ); 67 | console.log( '1. Open the slides at ' + green + slidesLocation + reset ); 68 | console.log( '2. Click on the link in your JS console to go to the notes page' ); 69 | console.log( '3. Advance through your slides and your notes will advance automatically' ); 70 | -------------------------------------------------------------------------------- /docs/reveal.js/plugin/print-pdf/print-pdf.js: -------------------------------------------------------------------------------- 1 | /** 2 | * phantomjs script for printing presentations to PDF. 3 | * 4 | * Example: 5 | * phantomjs print-pdf.js "http://revealjs.com?print-pdf" reveal-demo.pdf 6 | * 7 | * @author Manuel Bieh (https://github.com/manuelbieh) 8 | * @author Hakim El Hattab (https://github.com/hakimel) 9 | * @author Manuel Riezebosch (https://github.com/riezebosch) 10 | */ 11 | 12 | // html2pdf.js 13 | var system = require( 'system' ); 14 | 15 | var probePage = new WebPage(); 16 | var printPage = new WebPage(); 17 | 18 | var inputFile = system.args[1] || 'index.html?print-pdf'; 19 | var outputFile = system.args[2] || 'slides.pdf'; 20 | 21 | if( outputFile.match( /\.pdf$/gi ) === null ) { 22 | outputFile += '.pdf'; 23 | } 24 | 25 | console.log( 'Export PDF: Reading reveal.js config [1/4]' ); 26 | 27 | probePage.open( inputFile, function( status ) { 28 | 29 | console.log( 'Export PDF: Preparing print layout [2/4]' ); 30 | 31 | var config = probePage.evaluate( function() { 32 | return Reveal.getConfig(); 33 | } ); 34 | 35 | if( config ) { 36 | 37 | printPage.paperSize = { 38 | width: Math.floor( config.width * ( 1 + config.margin ) ), 39 | height: Math.floor( config.height * ( 1 + config.margin ) ), 40 | border: 0 41 | }; 42 | 43 | printPage.open( inputFile, function( status ) { 44 | console.log( 'Export PDF: Preparing pdf [3/4]') 45 | printPage.evaluate( function() { 46 | Reveal.isReady() ? window.callPhantom() : Reveal.addEventListener( 'pdf-ready', window.callPhantom ); 47 | } ); 48 | } ); 49 | 50 | printPage.onCallback = function( data ) { 51 | // For some reason we need to "jump the queue" for syntax highlighting to work. 52 | // See: http://stackoverflow.com/a/3580132/129269 53 | setTimeout( function() { 54 | console.log( 'Export PDF: Writing file [4/4]' ); 55 | printPage.render( outputFile ); 56 | console.log( 'Export PDF: Finished successfully!' ); 57 | phantom.exit(); 58 | }, 0 ); 59 | }; 60 | } 61 | else { 62 | 63 | console.log( 'Export PDF: Unable to read reveal.js config. Make sure the input address points to a reveal.js page.' ); 64 | phantom.exit( 1 ); 65 | 66 | } 67 | } ); 68 | -------------------------------------------------------------------------------- /docs/reveal.js/test/assets/external-script-a.js: -------------------------------------------------------------------------------- 1 | window.externalScriptSequence += 'A'; -------------------------------------------------------------------------------- /docs/reveal.js/test/assets/external-script-b.js: -------------------------------------------------------------------------------- 1 | window.externalScriptSequence += 'B'; -------------------------------------------------------------------------------- /docs/reveal.js/test/assets/external-script-c.js: -------------------------------------------------------------------------------- 1 | window.externalScriptSequence += 'C'; -------------------------------------------------------------------------------- /docs/reveal.js/test/assets/external-script-d.js: -------------------------------------------------------------------------------- 1 | window.externalScriptSequence += 'D'; -------------------------------------------------------------------------------- /docs/reveal.js/test/examples/assets/beeping.txt: -------------------------------------------------------------------------------- 1 | Source: https://freesound.org/people/fennelliott/sounds/379419/ 2 | License: CC0 (public domain) -------------------------------------------------------------------------------- /docs/reveal.js/test/examples/assets/beeping.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/test/examples/assets/beeping.wav -------------------------------------------------------------------------------- /docs/reveal.js/test/examples/assets/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/test/examples/assets/image1.png -------------------------------------------------------------------------------- /docs/reveal.js/test/examples/assets/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/reveal.js/test/examples/assets/image2.png -------------------------------------------------------------------------------- /docs/reveal.js/test/examples/barebones.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Barebones 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
17 | 18 |
19 |

Barebones Presentation

20 |

This example contains the bare minimum includes and markup required to run a reveal.js presentation.

21 |
22 | 23 |
24 |

No Theme

25 |

There's no theme included, so it will fall back on browser defaults.

26 |
27 | 28 |
29 | 30 |
31 | 32 | 33 | 34 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /docs/reveal.js/test/examples/embedded-media.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Embedded Media 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 |
20 | 21 |
22 |

Embedded Media Test

23 |
24 | 25 |
26 | 27 |
28 | 29 |
30 |

Empty Slide

31 |
32 | 33 |
34 |

Auto-playing audio

35 | 36 |
37 | 38 |
39 | 40 |
41 | 42 | 43 | 44 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /docs/reveal.js/test/examples/slide-transitions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Slide Transitions 8 | 9 | 10 | 11 | 21 | 22 | 23 | 24 | 25 |
26 | 27 |
28 | 29 |
30 |

Default

31 |
32 | 33 |
34 |

Default

35 |
36 | 37 |
38 |

data-transition: zoom

39 |
40 | 41 |
42 |

data-transition: zoom-in fade-out

43 |
44 | 45 |
46 |

Default

47 |
48 | 49 |
50 |

data-transition: convex

51 |
52 | 53 |
54 |

data-transition: convex-in concave-out

55 |
56 | 57 |
58 |
59 |

Default

60 |
61 |
62 |

data-transition: concave

63 |
64 |
65 |

data-transition: convex-in fade-out

66 |
67 |
68 |

Default

69 |
70 |
71 | 72 |
73 |

data-transition: none

74 |
75 | 76 |
77 |

Default

78 |
79 | 80 |
81 | 82 |
83 | 84 | 85 | 86 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /docs/reveal.js/test/simple.md: -------------------------------------------------------------------------------- 1 | ## Slide 1.1 2 | 3 | ```js 4 | var a = 1; 5 | ``` 6 | 7 | 8 | ## Slide 1.2 9 | 10 | 11 | 12 | ## Slide 2 13 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-dependencies-async.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Async Dependencies 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 27 | 28 | 29 | 30 | 31 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-dependencies.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Dependencies 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 27 | 28 | 29 | 30 | 31 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-grid-navigation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Grid 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 39 | 40 | 41 | 42 | 43 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-iframes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Iframes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 32 | 33 | 34 | 35 | 36 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-element-attributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Element Attributes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-element-attributes.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | QUnit.test( 'Vertical separator', function( assert ) { 6 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 4, 'found four slides' ); 7 | }); 8 | 9 | QUnit.test( 'Attributes on element header in vertical slides', function( assert ) { 10 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.fade-out' ).length, 1, 'found one vertical slide with class fragment.fade-out on header' ); 11 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.shrink' ).length, 1, 'found one vertical slide with class fragment.shrink on header' ); 12 | }); 13 | 14 | QUnit.test( 'Attributes on element paragraphs in vertical slides', function( assert ) { 15 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section p.fragment.grow' ).length, 2, 'found a vertical slide with two paragraphs with class fragment.grow' ); 16 | }); 17 | 18 | QUnit.test( 'Attributes on element list items in vertical slides', function( assert ) { 19 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section>section li.fragment.grow' ).length, 3, 'found a vertical slide with three list items with class fragment.grow' ); 20 | }); 21 | 22 | QUnit.test( 'Attributes on element paragraphs in horizontal slides', function( assert ) { 23 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-red' ).length, 4, 'found a horizontal slide with four paragraphs with class fragment.grow' ); 24 | }); 25 | 26 | QUnit.test( 'Attributes on element list items in horizontal slides', function( assert ) { 27 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section li.fragment.highlight-green' ).length, 5, 'found a horizontal slide with five list items with class fragment.roll-in' ); 28 | }); 29 | 30 | QUnit.test( 'Attributes on element image in horizontal slides', function( assert ) { 31 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section img.reveal.stretch' ).length, 1, 'found a horizontal slide with stretched image, class img.reveal.stretch' ); 32 | }); 33 | 34 | QUnit.test( 'Attributes on elements in vertical slides with default element attribute separator', function( assert ) { 35 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section h2.fragment.highlight-red' ).length, 2, 'found two h2 titles with fragment highlight-red in vertical slides with default element attribute separator' ); 36 | }); 37 | 38 | QUnit.test( 'Attributes on elements in single slides with default element attribute separator', function( assert ) { 39 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-blue' ).length, 3, 'found three elements with fragment highlight-blue in single slide with default element attribute separator' ); 40 | }); 41 | 42 | } ); 43 | 44 | Reveal.initialize(); 45 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-external.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-external.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | QUnit.test( 'Vertical separator', function( assert ) { 6 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 7 | }); 8 | 9 | QUnit.test( 'Horizontal separator', function( assert ) { 10 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section' ).length, 2, 'found two slides' ); 11 | }); 12 | 13 | QUnit.test( 'Language highlighter', function( assert ) { 14 | assert.strictEqual( document.querySelectorAll( '.hljs-keyword' ).length, 1, 'got rendered highlight tag.' ); 15 | assert.strictEqual( document.querySelector( '.hljs-keyword' ).innerHTML, 'var', 'the same keyword: var.' ); 16 | }); 17 | 18 | } ); 19 | 20 | Reveal.initialize(); 21 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-options.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Options 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-options.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | QUnit.test( 'Options are set', function( assert ) { 6 | assert.strictEqual( marked.defaults.smartypants, true ); 7 | }); 8 | 9 | QUnit.test( 'Smart quotes are activated', function( assert ) { 10 | var text = document.querySelector( '.reveal .slides>section>p' ).textContent; 11 | 12 | assert.strictEqual( /['"]/.test( text ), false ); 13 | assert.strictEqual( /[“”‘’]/.test( text ), true ); 14 | }); 15 | 16 | } ); 17 | 18 | Reveal.initialize({ 19 | dependencies: [ 20 | { src: '../plugin/markdown/marked.js' }, 21 | // Test loading JS files with query strings 22 | { src: '../plugin/markdown/markdown.js?query=string' }, 23 | ], 24 | markdown: { 25 | smartypants: true 26 | } 27 | }); 28 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-slide-attributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown Attributes 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown-slide-attributes.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | QUnit.test( 'Vertical separator', function( assert ) { 6 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 6, 'found six vertical slides' ); 7 | }); 8 | 9 | QUnit.test( 'Id on slide', function( assert ) { 10 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section#slide2' ).length, 1, 'found one slide with id slide2' ); 11 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section a[href="#/slide2"]' ).length, 1, 'found one slide with a link to slide2' ); 12 | }); 13 | 14 | QUnit.test( 'data-background attributes', function( assert ) { 15 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A0C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' ); 16 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#ff0000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' ); 17 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C6916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' ); 18 | }); 19 | 20 | QUnit.test( 'data-transition attributes', function( assert ) { 21 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="zoom"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' ); 22 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="fade"]' ).length, 1, 'found one vertical slide with data-transition="fade"' ); 23 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="zoom"]' ).length, 1, 'found one slide with data-transition="zoom"' ); 24 | }); 25 | 26 | QUnit.test( 'data-background attributes with default separator', function( assert ) { 27 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A7C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' ); 28 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#f70000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' ); 29 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C7916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' ); 30 | }); 31 | 32 | QUnit.test( 'data-transition attributes with default separator', function( assert ) { 33 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="concave"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' ); 34 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="page"]' ).length, 1, 'found one vertical slide with data-transition="fade"' ); 35 | assert.strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="concave"]' ).length, 1, 'found one slide with data-transition="zoom"' ); 36 | }); 37 | 38 | QUnit.test( 'data-transition attributes with inline content', function( assert ) { 39 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#ff0000"]' ).length, 3, 'found three horizontal slides with data-background="#ff0000"' ); 40 | }); 41 | 42 | } ); 43 | 44 | Reveal.initialize(); 45 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Markdown 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-markdown.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | QUnit.module( 'Markdown' ); 4 | 5 | QUnit.test( 'Vertical separator', function( assert ) { 6 | assert.strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' ); 7 | }); 8 | 9 | } ); 10 | 11 | Reveal.initialize(); 12 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-pdf.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test PDF exports 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 | 19 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-pdf.js: -------------------------------------------------------------------------------- 1 | Reveal.addEventListener( 'ready', function() { 2 | 3 | // Only one test for now, we're mainly ensuring that there 4 | // are no execution errors when running PDF mode 5 | 6 | QUnit.test( 'Reveal.isReady', function( assert ) { 7 | assert.strictEqual( Reveal.isReady(), true, 'returns true' ); 8 | }); 9 | 10 | } ); 11 | 12 | Reveal.initialize({ pdf: true }); 13 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-plugins.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test Plugins 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 27 | 28 | 29 | 30 | 31 | 103 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test-state.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Test State 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 37 | 38 | 39 | 40 | 41 | 137 | 138 | 139 | 140 | -------------------------------------------------------------------------------- /docs/reveal.js/test/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | reveal.js - Tests 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /docs/videos/api-diff-scroll.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/api-diff-scroll.mp4 -------------------------------------------------------------------------------- /docs/videos/coffee-beans.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/coffee-beans.mp4 -------------------------------------------------------------------------------- /docs/videos/flowers.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/flowers.mp4 -------------------------------------------------------------------------------- /docs/videos/fog-hands.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/fog-hands.mp4 -------------------------------------------------------------------------------- /docs/videos/hammer.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/hammer.mp4 -------------------------------------------------------------------------------- /docs/videos/industrial.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/industrial.mp4 -------------------------------------------------------------------------------- /docs/videos/jshell-demo.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/jshell-demo.mp4 -------------------------------------------------------------------------------- /docs/videos/keyboard.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/keyboard.mp4 -------------------------------------------------------------------------------- /docs/videos/prediction.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/prediction.mp4 -------------------------------------------------------------------------------- /docs/videos/relaxing.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/relaxing.mp4 -------------------------------------------------------------------------------- /docs/videos/type-infer-styleguide.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/type-infer-styleguide.mp4 -------------------------------------------------------------------------------- /docs/videos/woman-study.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bentolor/java9to13/441f23375725504e53f107da856115b35ef8f87e/docs/videos/woman-study.mp4 --------------------------------------------------------------------------------