├── .gitignore ├── README.md ├── build.sbt ├── docs ├── Gemfile ├── Gemfile.lock ├── _config.yml ├── _data │ ├── navigation.yml │ └── text.yml ├── _includes │ ├── content-scripts.html │ ├── custom-scripts.html │ ├── custom-toc.md │ ├── footer-custom.html │ └── head-custom.html ├── _layouts │ └── default.html ├── _posts │ ├── 2019-04-18-math-cube.md │ ├── 2019-04-24-math-expression.md │ ├── 2019-04-24-math-kreis.md │ ├── 2019-04-24-math-kugel.md │ ├── 2019-04-25-math-division.md │ ├── 2019-04-28-how-to.md │ └── 2019-05-15-map-example.md ├── assets │ ├── css │ │ └── custom.css │ ├── gps │ │ └── rigi_kulm.gpx │ ├── images │ │ ├── bg_hr.png │ │ ├── blacktocat.png │ │ ├── icon_download.png │ │ ├── logo.png │ │ └── sprite_download.png │ ├── javascripts │ │ ├── simple-tutorials-fastopt-bundle.js │ │ └── simple-tutorials-fastopt-bundle.js.map │ ├── js │ │ ├── custom.js │ │ └── plugins │ │ │ └── mathjax-editing.js │ └── semantic │ │ ├── components │ │ ├── accordion.css │ │ ├── accordion.js │ │ ├── accordion.min.css │ │ ├── accordion.min.js │ │ ├── ad.css │ │ ├── ad.min.css │ │ ├── api.js │ │ ├── api.min.js │ │ ├── breadcrumb.css │ │ ├── breadcrumb.min.css │ │ ├── button.css │ │ ├── button.min.css │ │ ├── card.css │ │ ├── card.min.css │ │ ├── checkbox.css │ │ ├── checkbox.js │ │ ├── checkbox.min.css │ │ ├── checkbox.min.js │ │ ├── comment.css │ │ ├── comment.min.css │ │ ├── container.css │ │ ├── container.min.css │ │ ├── dimmer.css │ │ ├── dimmer.js │ │ ├── dimmer.min.css │ │ ├── dimmer.min.js │ │ ├── divider.css │ │ ├── divider.min.css │ │ ├── dropdown.css │ │ ├── dropdown.js │ │ ├── dropdown.min.css │ │ ├── dropdown.min.js │ │ ├── embed.css │ │ ├── embed.js │ │ ├── embed.min.css │ │ ├── embed.min.js │ │ ├── feed.css │ │ ├── feed.min.css │ │ ├── flag.css │ │ ├── flag.min.css │ │ ├── form.css │ │ ├── form.js │ │ ├── form.min.css │ │ ├── form.min.js │ │ ├── grid.css │ │ ├── grid.min.css │ │ ├── header.css │ │ ├── header.min.css │ │ ├── icon.css │ │ ├── icon.min.css │ │ ├── image.css │ │ ├── image.min.css │ │ ├── input.css │ │ ├── input.min.css │ │ ├── item.css │ │ ├── item.min.css │ │ ├── label.css │ │ ├── label.min.css │ │ ├── list.css │ │ ├── list.min.css │ │ ├── loader.css │ │ ├── loader.min.css │ │ ├── menu.css │ │ ├── menu.min.css │ │ ├── message.css │ │ ├── message.min.css │ │ ├── modal.css │ │ ├── modal.js │ │ ├── modal.min.css │ │ ├── modal.min.js │ │ ├── nag.css │ │ ├── nag.js │ │ ├── nag.min.css │ │ ├── nag.min.js │ │ ├── popup.css │ │ ├── popup.js │ │ ├── popup.min.css │ │ ├── popup.min.js │ │ ├── progress.css │ │ ├── progress.js │ │ ├── progress.min.css │ │ ├── progress.min.js │ │ ├── rail.css │ │ ├── rail.min.css │ │ ├── rating.css │ │ ├── rating.js │ │ ├── rating.min.css │ │ ├── rating.min.js │ │ ├── reset.css │ │ ├── reset.min.css │ │ ├── reveal.css │ │ ├── reveal.min.css │ │ ├── search.css │ │ ├── search.js │ │ ├── search.min.css │ │ ├── search.min.js │ │ ├── segment.css │ │ ├── segment.min.css │ │ ├── shape.css │ │ ├── shape.js │ │ ├── shape.min.css │ │ ├── shape.min.js │ │ ├── sidebar.css │ │ ├── sidebar.js │ │ ├── sidebar.min.css │ │ ├── sidebar.min.js │ │ ├── site.css │ │ ├── site.js │ │ ├── site.min.css │ │ ├── site.min.js │ │ ├── statistic.css │ │ ├── statistic.min.css │ │ ├── step.css │ │ ├── step.min.css │ │ ├── sticky.css │ │ ├── sticky.js │ │ ├── sticky.min.css │ │ ├── sticky.min.js │ │ ├── tab.css │ │ ├── tab.js │ │ ├── tab.min.css │ │ ├── tab.min.js │ │ ├── table.css │ │ ├── table.min.css │ │ ├── transition.css │ │ ├── transition.js │ │ ├── transition.min.css │ │ ├── transition.min.js │ │ ├── visibility.js │ │ └── visibility.min.js │ │ ├── semantic.css │ │ ├── semantic.js │ │ ├── semantic.min.css │ │ ├── semantic.min.js │ │ └── themes │ │ ├── basic │ │ └── assets │ │ │ └── fonts │ │ │ ├── icons.eot │ │ │ ├── icons.svg │ │ │ ├── icons.ttf │ │ │ └── icons.woff │ │ ├── default │ │ └── assets │ │ │ ├── fonts │ │ │ ├── brand-icons.eot │ │ │ ├── brand-icons.svg │ │ │ ├── brand-icons.ttf │ │ │ ├── brand-icons.woff │ │ │ ├── brand-icons.woff2 │ │ │ ├── icons.eot │ │ │ ├── icons.svg │ │ │ ├── icons.ttf │ │ │ ├── icons.woff │ │ │ ├── icons.woff2 │ │ │ ├── outline-icons.eot │ │ │ ├── outline-icons.svg │ │ │ ├── outline-icons.ttf │ │ │ ├── outline-icons.woff │ │ │ └── outline-icons.woff2 │ │ │ └── images │ │ │ └── flags.png │ │ ├── github │ │ └── assets │ │ │ └── fonts │ │ │ ├── octicons-local.ttf │ │ │ ├── octicons.svg │ │ │ ├── octicons.ttf │ │ │ └── octicons.woff │ │ └── material │ │ └── assets │ │ └── fonts │ │ ├── icons.eot │ │ ├── icons.svg │ │ ├── icons.ttf │ │ ├── icons.woff │ │ └── icons.woff2 ├── categories.md ├── index.html ├── posts.md ├── search.md └── tags.md ├── my.custom.webpack.config.js ├── project ├── build.properties └── plugins.sbt └── src └── main └── scala └── pages └── demo ├── CircleApp.scala ├── CubeApp.scala ├── Graph.scala ├── GraphApp.scala ├── GraphExample.scala ├── IntellijImplicits.scala ├── MapExample.scala ├── MathApp.scala └── MathJaxUtils.scala /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .bloop 3 | .scalafmt.conf 4 | .DS_Store 5 | .metals 6 | .vscode 7 | target 8 | 9 | _site 10 | .sass-cache 11 | .jekyll-metadata -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Goals 2 | * Use [Github Pages] for simple Projects/ Show-cases, that I could document and demo in the same place. 3 | 4 | * Use _Scala/ ScalaJS_ technology. 5 | * Use _Markup_ for documentation. 6 | * Create simple Tutorials that: 7 | * print Mathematical formulas nicely 8 | * use Graphs for illustration 9 | * can interacted with 10 | * display code snippets 11 | 12 | # Examples 13 | ### [How to use this project] 14 | ### [Compile Mathematical Expressions] 15 | ### [Extended How-To Example] 16 | It's in german and shows a bit more of composition with [Binding.scala] 17 | ### [And more....] 18 | 19 | # Result 20 | The result is a showcase on how to use different _Scala/ ScalaJS_ tools in combination with Markup and [Github Pages] (check the references below). 21 | 22 | See yourself: **https://pme123.github.io/github-pages-demo/** 23 | 24 | # References 25 | 26 | This project uses the following tools. All of them have excellent tutorials: 27 | ## Markup 28 | - **Github Pages**: When you commit your project to _Github_ your pages will be created automatically. Check out [Github Pages] 29 | - **Jekyll**: _Github Pages_ uses _Jekyll_ for rendering. See [Jekyll] 30 | - **So Simple**: _Michael Rose_ creates great Themes for _Jekyll_ - so I choose _So Simple_ for this project. Check out its great tutorial: [So Simple Theme] 31 | 32 | ## Coding 33 | For any coding I use: 34 | - **ScalaJS** for general coding: [ScalaJS] 35 | - **Binding.scala** for dom functionality and data binding: [Binding.scala] 36 | - **ScalablyTyped** for JavaScript facades: [Scalably Typed] 37 | - **Plot.ly** for painting diagrams and graphs: [Plotly JS] 38 | - **Math.js** for evaluating mathematical string expressions: [MathJS] 39 | - **MathJax** for printing nice formulas in HTML: [MathJax] 40 | - **Semantic-UI** styling the forms (if the theme was not enough): [Semantic UI] 41 | 42 | ## Building 43 | - **sbt** for building the project: [SBT] 44 | - **scalajs-bundler** for bundling the JavaScript dependencies: [scalajs-bundler] 45 | 46 | # Check also 47 | If you want document everything in _Scala_ check out: https://sake92.github.io/hepek/ 48 | 49 | [Binding.scala]: https://github.com/ThoughtWorksInc/Binding.scala 50 | [Git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git 51 | [Join Github]: https://github.com/join 52 | [Github Pages]: https://pages.github.com 53 | [Jekyll]: https://jekyllrb.com 54 | [MathJax]:https://www.mathjax.org 55 | [MathJS]: https://mathjs.org 56 | [Plotly JS]: https://plot.ly/javascript/shapes/ 57 | [SBT]: https://www.scala-sbt.org 58 | [Scalably Typed]: https://github.com/oyvindberg/ScalablyTyped 59 | [ScalaJS]: http://www.scala-js.org 60 | [scalajs-bundler]: https://github.com/scalacenter/scalajs-bundler 61 | [Semantic UI]: https://semantic-ui.com 62 | [So Simple Theme]: https://github.com/mmistakes/so-simple-theme 63 | 64 | [How to use this project]: https://pme123.github.io/github-pages-demo/develop/2019/04/28/how-to.html 65 | [Compile Mathematical Expressions]: https://pme123.github.io/github-pages-demo/math/2019/04/24/math-expression.html 66 | [Extended How-To Example]: https://pme123.github.io/github-pages-demo/math/2019/04/24/math-kreis 67 | [And more....]: https://pme123.github.io/github-pages-demo/posts/ -------------------------------------------------------------------------------- /build.sbt: -------------------------------------------------------------------------------- 1 | import java.nio.file.StandardCopyOption 2 | 3 | import org.scalajs.sbtplugin.ScalaJSPlugin.AutoImport.fastOptJS 4 | 5 | resolvers += Resolver.bintrayRepo("oyvindberg", "ScalablyTyped") 6 | 7 | enablePlugins(ScalaJSPlugin) 8 | enablePlugins(ScalaJSBundlerPlugin) 9 | 10 | name := "Simple Tutorials" 11 | scalaVersion := "2.12.7" // or any other Scala version >= 2.10.2 12 | 13 | webpackBundlingMode := BundlingMode.LibraryAndApplication() 14 | webpackConfigFile := Some(baseDirectory.value / "my.custom.webpack.config.js") 15 | 16 | libraryDependencies ++= Seq( 17 | ScalablyTyped.P.`plotly_dot_js`, 18 | ScalablyTyped.M.`mathjs`, 19 | ScalablyTyped.M.`mathjax`, 20 | ScalablyTyped.O.`ol`, 21 | // ScalablyTyped.J.`jquery`, 22 | // ScalablyTyped.S.`semantic-ui`, 23 | ) 24 | 25 | npmDependencies in Compile ++= Seq( 26 | "plotly.js" -> "1.47.2", 27 | "mathjs" -> "5.0", 28 | "ify-loader" -> "1.1.0", 29 | "ol" -> "4.6.4", 30 | "openlayers" -> "4.6.5", 31 | 32 | // "mathjax" -> "2.7.2", // provided by the Github Pages Theme 33 | // "jquery" -> "1.0.4", 34 | // "semantic-ui" -> "2.2", 35 | ) 36 | 37 | libraryDependencies ++= Seq( 38 | "com.thoughtworks.binding" %%% "dom" % "latest.release", 39 | "be.doeraene" %%% "scalajs-jquery" % "0.9.1" 40 | ) 41 | addCompilerPlugin( 42 | "org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full 43 | ) 44 | 45 | lazy val copyTask = taskKey[Unit]("copyJS") 46 | 47 | copyTask := { 48 | val bundle = (Compile / fastOptJS / webpack).value.head 49 | 50 | val destinationPath = 51 | file(s"docs/assets/javascripts/${bundle.data.name}").toPath 52 | java.nio.file.Files.copy( 53 | bundle.data.toPath, 54 | destinationPath, 55 | StandardCopyOption.REPLACE_EXISTING 56 | ) 57 | val destinationPathMap = 58 | file(s"docs/assets/javascripts/${bundle.data.name}.map").toPath 59 | val sourcePathMap = file(s"${bundle.data.toPath}.map").toPath 60 | java.nio.file.Files.copy( 61 | sourcePathMap, 62 | destinationPathMap, 63 | StandardCopyOption.REPLACE_EXISTING 64 | ) 65 | } 66 | -------------------------------------------------------------------------------- /docs/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | # gem "jekyll" 4 | # gem "jekyll-theme-so-simple", :git => "https://github.com/mmistakes/so-simple-theme.git", :branch => "rebuild" 5 | gem "github-pages", group: :jekyll_plugins 6 | 7 | gem "tzinfo-data" 8 | gem "wdm", "~> 0.1.0" if Gem.win_platform? 9 | 10 | # If you have any plugins, put them here! 11 | # group :jekyll_plugins do 12 | # gem "jekyll-paginate" 13 | # gem "jekyll-sitemap" 14 | # gem "jekyll-gist" 15 | # gem "jekyll-feed" 16 | # gem "jemoji" 17 | # gem "jekyll-redirect-from" 18 | # end 19 | -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | # Welcome to Jekyll! 2 | # 3 | # This config file is meant for settings that affect your whole blog, values 4 | # which you are expected to set up once and rarely edit after that. If you find 5 | # yourself editing this file very often, consider using Jekyll's data files 6 | # feature for the data you need to update frequently. 7 | # 8 | # For technical reasons, this file is *NOT* reloaded automatically when you use 9 | # 'bundle exec jekyll serve'. If you change this file, please restart the server process. 10 | 11 | # Site settings 12 | # These are used to personalize your new site. If you look in the HTML files, 13 | # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. 14 | # You can create any custom variable you would like, and they will be accessible 15 | # in the templates via {{ site.myvariable }}. 16 | 17 | # theme: jekyll-theme-so-simple 18 | remote_theme: mmistakes/so-simple-theme 19 | 20 | locale: en-US 21 | title: "Simple Math Tutorials" 22 | description: "A simple way to create Math Tutorials." 23 | baseurl: "/github-pages-demo" 24 | url: "https://pme123.github.io/github-pages-demo" 25 | logo: "/assets/images/logo.png" 26 | date_format: "%B %-d, %Y" 27 | read_time: true 28 | words_per_minute: # 200 29 | mathjax: true 30 | google_fonts: 31 | - name: "Source Sans Pro" 32 | weights: "400,400i,700,700i" 33 | - name: "Lora" 34 | weights: "400,400i,700,700i" 35 | 36 | # Liquid 37 | liquid: 38 | error_mode: strict 39 | 40 | # Build settings 41 | markdown: kramdown 42 | kramdown: 43 | auto_ids: true 44 | 45 | feed: 46 | path: atom.xml 47 | 48 | # Pagination - https://jekyllrb.com/docs/pagination/ 49 | paginate: 10 50 | paginate_path: /page:num/ 51 | 52 | # Search 53 | search_full_content: true 54 | 55 | # Taxonomy pages 56 | category_archive_path: "/categories/#" 57 | tag_archive_path: "/tags/#" 58 | 59 | # Exclude from processing. 60 | # The following items will not be processed, by default. Create a custom list 61 | # to override the default setting. 62 | # exclude: 63 | # - Gemfile 64 | # - Gemfile.lock 65 | # - node_modules 66 | # - vendor/bundle/ 67 | # - vendor/cache/ 68 | # - vendor/gems/ 69 | # - vendor/ruby/ 70 | 71 | plugins: 72 | - jekyll-seo-tag 73 | - jekyll-sitemap 74 | - jekyll-feed 75 | - jekyll-paginate 76 | - jekyll-redirect-from 77 | 78 | # Front Matter Defaults 79 | defaults: 80 | # Post defaults 81 | - scope: 82 | path: "_posts" 83 | type: posts 84 | values: 85 | layout: post 86 | comments: true 87 | share: true 88 | 89 | # Site Author 90 | author: 91 | name: pme123 92 | email: 93 | links: 94 | - title: GitHub 95 | url: https://github.com/pme123/github-pages-demo 96 | icon: fab fa-github-square 97 | 98 | # Footer Links 99 | footer_links: 100 | - title: GitHub 101 | url: https://github.com/pme123/github-pages-demo 102 | icon: fab fa-github-square 103 | - title: Feed 104 | url: atom.xml 105 | icon: fas fa-rss-square 106 | -------------------------------------------------------------------------------- /docs/_data/navigation.yml: -------------------------------------------------------------------------------- 1 | # Site navigation links 2 | 3 | - title: Posts 4 | url: /posts/ 5 | - title: Categories 6 | url: /categories/ 7 | - title: Tags 8 | url: /tags/ 9 | - title: Search 10 | url: /search/ 11 | - title: How to 12 | url: /develop/2019/04/28/how-to 13 | -------------------------------------------------------------------------------- /docs/_data/text.yml: -------------------------------------------------------------------------------- 1 | # Theme text and labels 2 | 3 | # English (default) 4 | # ----------------- 5 | en: &DEFAULT_EN 6 | skip_links: "Skip links" 7 | skip_primary_nav: "Skip to primary navigation" 8 | skip_content: "Skip to content" 9 | skip_footer: "Skip to footer" 10 | menu_label: "Menu" 11 | by: "by" 12 | min_read: "min read" 13 | read_more: "Read more…" 14 | categories: "Categories" 15 | tags: "Tags" 16 | pages_categorized: "Pages filed under" 17 | pages_tagged: "Pages tagged" 18 | table_of_contents: "Table of Contents" 19 | results_found: "Result(s) found" 20 | share: "Share" 21 | tweet: "Tweet" 22 | next: "Next" 23 | previous: "Previous" 24 | newer: "Newer" 25 | older: "Older" 26 | back_to_top: "Back to Top" 27 | search_placeholder_text: "Enter your search term..." 28 | powered_by: "Powered by" 29 | en-US: 30 | <<: *DEFAULT_EN 31 | en-CA: 32 | <<: *DEFAULT_EN 33 | en-GB: 34 | <<: *DEFAULT_EN 35 | en-AU: 36 | <<: *DEFAULT_EN 37 | -------------------------------------------------------------------------------- /docs/_includes/content-scripts.html: -------------------------------------------------------------------------------- 1 | 2 | 4 | -------------------------------------------------------------------------------- /docs/_includes/custom-scripts.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/_includes/custom-toc.md: -------------------------------------------------------------------------------- 1 | 2 | {{ page.excerpt }} 3 | 4 | {% include toc %} 5 | 6 |
-------------------------------------------------------------------------------- /docs/_includes/footer-custom.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/_includes/head-custom.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /docs/_layouts/default.html: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | {% include head.html %} 10 | 11 | 12 | {% include skip-links.html %} 13 | {% include navigation.html %} 14 | {% include masthead.html %} 15 | 16 | {% include content-scripts.html %} 17 | {{ content }} 18 | 19 | {% include footer.html %} 20 | {% include scripts.html %} 21 | {% include custom-scripts.html %} 22 | 23 | -------------------------------------------------------------------------------- /docs/_posts/2019-04-18-math-cube.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Cube" 3 | excerpt: "All about a Cube." 4 | categories: 5 | - Math 6 | tags: 7 | - math 8 | - cube 9 | - english 10 | --- 11 | # Formeln 12 | 13 | 14 | 15 | 16 | # Surface 17 | > Surface formula \\[6*x^2\\] 18 | 19 | 20 | 21 | 22 | # Volume 23 | 24 | > Volume formula \\[x^3\\] 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docs/_posts/2019-04-24-math-expression.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Formel Graph" 3 | excerpt: "Paint your mathematical expression in a 2-dimensional Graph." 4 | categories: 5 | - Math 6 | tags: 7 | - math 8 | - english 9 | 10 | --- 11 | 12 | {{ page.excerpt }} 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/_posts/2019-04-24-math-kreis.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Kreis" 3 | excerpt: "Alles über den Kreis." 4 | categories: 5 | - Math 6 | tags: 7 | - math 8 | - kreis 9 | --- 10 | 11 | {% include custom-toc.md %} 12 | 13 | # Definition 14 | Aus [Wikipedia](https://de.wikipedia.org/wiki/Kreis): 15 | > Ein Kreis ist eine ebene geometrische Figur. Er wird definiert als die Menge aller Punkte einer Ebene, die einen konstanten Abstand zu einem vorgegebenen Punkt dieser Ebene (dem **Mittelpunkt**) haben. Der Abstand der Kreispunkte zum Mittelpunkt ist der **Radius** oder _Halbmesser_ des Kreises. 16 | 17 | # Formeln 18 | 19 | 20 | 21 | 22 | ## Einheiten 23 | 24 | | _mm_ | Millimeter | \\(1mm = 0.001m\\); \\(1mm = 0.1cm\\) | 25 | | _cm_ | Centimeter | \\(1cm = 0.01m\\); \\(1cm = 10mm\\) | 26 | | _dm_ | Dezimeter | \\(1dm = 0.1m\\) | 27 | | _m_ | Meter | \\(1m = 100cm\\) | 28 | 29 | # Weitere Erklärungen 30 | 31 | {% include responsive-embed url="https://www.youtube.com/embed/eASZX0ocAc8" ratio="16:9" %} 32 | 33 | # Beispiele 34 | 35 | ### 1. Billiardkugel 36 | > Eine Poolbillardkugel hat einen Durchmesser von 57,2 mm. [Wiki](https://de.wikipedia.org/wiki/Billardkugel) 37 | 38 | {: .align-center} _(Wiki)_ 39 | 40 | Wenn wir die Kugel in der Mitte teilen erhalten wir einen Kreis. 41 | 42 | - Wie gross ist der Umfang U dieses Kreises? 43 | - Wie gross ist die Fläche A dieses Kreises? 44 | 45 | **_Lösungen siehe am Ende dieser Seite_** 46 | 47 | # Diagramme 48 | ### Kreis-Umfang im Verhältnis zum Radius: 49 | 50 | 51 | 52 | 53 | ### Kreis-Fläche im Verhältnis zum Radius: 54 | 55 | 56 | 57 | 58 | # Beispiel Lösungen 59 | 60 | ### 1. Billiardkugel 61 | 62 | - Umfang: \\(2 * \\pi * r = 2 * \\pi * 57.2 mm \\approx 359.4 mm \\approx 36 cm\\) 63 | - Fläche: \\(\\pi * r^2 = \\pi * (57.2 mm)^2 \\approx 10278.8 mm^2 \\approx 103 cm^2\\) 64 | 65 | -------------------------------------------------------------------------------- /docs/_posts/2019-04-24-math-kugel.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Kugel" 3 | excerpt: "Alles über die Kugel." 4 | categories: 5 | - Math 6 | tags: 7 | - math 8 | - kugel 9 | - deutsch 10 | --- 11 | 12 | # Oberfläche 13 | > Kugel-Oberfläche \\[4*\\pi *r^2\\] 14 | 15 | 16 | 17 | 18 | # Volume 19 | 20 | > Kugel-Volumen \\[4/3*\\pi *r^3\\] 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/_posts/2019-04-25-math-division.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Division" 3 | excerpt: "Arbeiten mit Division." 4 | categories: 5 | - Math 6 | tags: 7 | - math 8 | - division 9 | - deutsch 10 | --- 11 | 12 | # Beispiele 13 | 14 | | \\(2/5\\ von\\ 1000\\) | \\(2/5*1000\\) | \\(400\\) | 15 | | \\(3/5\\ von\\ 225\\) | \\(3/5*225\\) | \\(135\\) | 16 | 17 | > \\(y = 2/5*x\\) 18 | 19 | 20 | 21 | > \\(2/x*1000\\) 22 | 23 | 24 | 25 | > \\(x/5*1000\\) 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /docs/_posts/2019-05-15-map-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Map Example" 3 | excerpt: "Experiment with Maps." 4 | categories: 5 | - Geography 6 | tags: 7 | - geography 8 | - gps 9 | --- 10 | 11 | # Example 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/assets/css/custom.css: -------------------------------------------------------------------------------- 1 | .ui.form input.right { 2 | text-align: right; 3 | } 4 | 5 | /* 6 | start anchorjs 7 | */ 8 | /* 9 | * Header link placement and hover behavior 10 | */ 11 | 12 | .header-link { 13 | position: absolute; 14 | padding-right: .9em; 15 | margin-left: -1em; 16 | color: inherit !important; 17 | text-decoration: none !important; 18 | opacity: 0; 19 | } 20 | 21 | .header-link .fa { 22 | font-size: 44%; 23 | vertical-align: .1em; 24 | } 25 | 26 | /* do not display in less than 768px screen */ 27 | @media (max-width: 767px) { 28 | .header-link { 29 | display: none !important; 30 | } 31 | } 32 | 33 | *:hover > .header-link { 34 | opacity: .75; 35 | /* to fade links as they appear, change transition-property from 'color' to 'all' */ 36 | -webkit-transition: color .16s linear; 37 | transition: color .16s linear; 38 | } 39 | 40 | *:hover > .header-link:hover, 41 | *:hover > .header-link:focus { 42 | opacity: 0.75; 43 | } 44 | /* 45 | end anchorjs 46 | */ 47 | 48 | -------------------------------------------------------------------------------- /docs/assets/images/bg_hr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pme123/github-pages-demo/225e979f470043470bbfd3cd624f93fda9b1a6bb/docs/assets/images/bg_hr.png -------------------------------------------------------------------------------- /docs/assets/images/blacktocat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pme123/github-pages-demo/225e979f470043470bbfd3cd624f93fda9b1a6bb/docs/assets/images/blacktocat.png -------------------------------------------------------------------------------- /docs/assets/images/icon_download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pme123/github-pages-demo/225e979f470043470bbfd3cd624f93fda9b1a6bb/docs/assets/images/icon_download.png -------------------------------------------------------------------------------- /docs/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pme123/github-pages-demo/225e979f470043470bbfd3cd624f93fda9b1a6bb/docs/assets/images/logo.png -------------------------------------------------------------------------------- /docs/assets/images/sprite_download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pme123/github-pages-demo/225e979f470043470bbfd3cd624f93fda9b1a6bb/docs/assets/images/sprite_download.png -------------------------------------------------------------------------------- /docs/assets/js/custom.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | 3 | $(document).ready(function () { 4 | 'use strict'; 5 | 6 | /* selector */ 7 | var postHeader = '.e-content > h1, .e-content > h2, .e-content > h3, .e-content > h4'; 8 | 9 | $(postHeader).filter('[id]').each(function () { 10 | var header = $(this), 11 | headerID = header.attr('id'), 12 | anchorClass = 'header-link', 13 | anchorIcon = ''; 14 | 15 | if (headerID) { 16 | header.prepend($('').addClass(anchorClass).attr({ 'href': '#' + headerID, 'aria-hidden': 'true' }).html(anchorIcon)); 17 | } 18 | 19 | return this; 20 | }); 21 | }); 22 | }(jQuery)); -------------------------------------------------------------------------------- /docs/assets/js/plugins/mathjax-editing.js: -------------------------------------------------------------------------------- 1 | "use strict";StackExchange.mathjaxEditing=function(){function e(){m.disabled=!0,g.resetEquationNumbers()}function t(){m.disabled=!1}function n(e,t){var n=c.slice(e,t+1).join("").replace(/&/g,"&").replace(//g,">");for(h&&(n=n.replace(/\n /g,"\n")),k.Browser.isMSIE&&(n=n.replace(/(%[^\n]*)\n/g,"$1{s"Formula: \\($expression\\)"}
43 |Radius | 40 |r | 41 |42 | {s"\\(r\\)"} 43 | | 44 |45 | // adjust the radius on blur 49 | radiusVar.value = radiusIn.value.toDouble 50 | }/> 51 | | 52 ||
Area | 55 |A | 56 |57 | {s"\\(\\pi*r^2\\)"} 58 | | 59 |60 | // adjust the radius with the area 64 | radiusVar.value = Math.sqrt(areaIn.value.toDouble / Math.PI) 65 | }/> 66 | | 67 |68 | {s"\\(r = \\sqrt{A/\\pi}\\)"} 69 | | 70 |
Latitute | 58 |lat | 59 |60 | {latInput.bind} 61 | | 62 |
Longitute | 65 |lon | 66 |67 | {lonInput.bind} 68 | | 69 |