From 3e687f1a8ccb1cd0d52a966005551d528ca141df Mon Sep 17 00:00:00 2001 From: Boris Verkhovskiy Date: Sat, 6 Apr 2024 08:33:50 -0700 Subject: [PATCH] Remove leading and trailing empty lines in code blocks --- CHICKEN.html.markdown | 2 +- amd.html.markdown | 7 ++ ar-ar/html-ar.html.markdown | 1 - ar-ar/python-ar.html.markdown | 1 - ar-ar/sql-ar.html.markdown | 1 + asciidoc.html.markdown | 1 - assemblyscript.html.markdown | 1 - awk.html.markdown | 1 - bc.html.markdown | 1 + c++.html.markdown | 3 +- c.html.markdown | 1 - ca-es/groovy-ca.html.markdown | 3 - ca-es/html-ca.html.markdown | 1 - ca-es/kotlin-ca.html.markdown | 1 - cobol.html.markdown | 6 -- coldfusion.html.markdown | 1 + common-lisp.html.markdown | 1 - crystal.html.markdown | 2 - cs-cz/hack.html.markdown | 1 - cs-cz/python.html.markdown | 1 - cs-cz/sass.html.markdown | 4 -- csharp.html.markdown | 1 - cue.html.markdown | 2 + cypher.html.markdown | 21 +++++- d.html.markdown | 1 - dart.html.markdown | 1 - de-de/asciidoc-de.html.markdown | 1 - de-de/bc.html.markdown | 1 + de-de/c++-de.html.markdown | 3 +- de-de/c-de.html.markdown | 1 + de-de/crystal-de.html.markdown | 1 - de-de/css-de.html.markdown | 3 - de-de/d-de.html.markdown | 2 - de-de/edn-de.html.markdown | 1 - de-de/elixir-de.html.markdown | 2 - de-de/hack-de.html.markdown | 1 - de-de/haml-de.html.markdown | 1 - de-de/haskell-de.html.markdown | 1 - de-de/html-de.html.markdown | 1 - de-de/latex-de.html.markdown | 1 + de-de/lua-de.html.markdown | 2 +- de-de/make-de.html.markdown | 1 - de-de/processing-de.html.markdown | 1 - de-de/pug-de.html.markdown | 3 +- de-de/pyqt-de.html.markdown | 1 - de-de/python-de.html.markdown | 2 - de-de/pythonlegacy-de.html.markdown | 1 - de-de/rst-de.html.markdown | 1 - de-de/sass-de.html.markdown | 3 - de-de/scala-de.html.markdown | 1 - de-de/shutit-de.html.markdown | 1 - de-de/tcl-de.html.markdown | 2 - docker.html.markdown | 5 +- edn.html.markdown | 1 - el-gr/haskell-gr.html.markdown | 1 - el-gr/html-gr.html.markdown | 1 - el-gr/java-gr.html.markdown | 1 - el-gr/ocaml-gr.html.markdown | 1 + el-gr/python-gr.html.markdown | 1 - el-gr/scala-gr.html.markdown | 2 - erlang.html.markdown | 1 - es-es/asymptotic-notation-es.html.markdown | 1 + es-es/awk-es.html.markdown | 1 - es-es/bf-es.html.markdown | 2 +- es-es/binary-search-es.html.markdown | 5 +- es-es/c++-es.html.markdown | 2 +- es-es/c-es.html.markdown | 1 - es-es/coldfusion-es.html.markdown | 1 + es-es/common-lisp-es.html.markdown | 1 - es-es/csharp-es.html.markdown | 1 - es-es/dart-es.html.markdown | 1 - es-es/edn-es.html.markdown | 1 - es-es/elixir-es.html.markdown | 1 - es-es/factor-es.html.markdown | 2 - es-es/forth-es.html.markdown | 1 - es-es/groovy-es.html.markdown | 3 - es-es/hack-es.html.markdown | 1 - es-es/haml-es.html.markdown | 1 - es-es/haskell-es.html.markdown | 1 - es-es/html-es.html.markdown | 1 - es-es/java-es.html.markdown | 1 - es-es/jquery-es.html.markdown | 4 -- es-es/json-es.html.markdown | 1 - es-es/lambda-calculus-es.html.markdown | 5 ++ es-es/learnsmallbasic-es.html.markdown | 2 +- es-es/less-es.html.markdown | 4 -- es-es/matlab-es.html.markdown | 1 - es-es/objective-c-es.html.markdown | 2 +- es-es/pascal-es.html.markdown | 1 - es-es/perl-es.html.markdown | 1 - es-es/php-composer-es.html.markdown | 2 +- es-es/php-es.html.markdown | 1 - es-es/pyqt-es.html.markdown | 1 - es-es/python-es.html.markdown | 1 - es-es/pythonstatcomp-es.html.markdown | 1 - es-es/r-es.html.markdown | 4 -- es-es/raku-es.html.markdown | 2 +- es-es/sass-es.html.markdown | 3 - es-es/scala-es.html.markdown | 2 - es-es/tcl-es.html.markdown | 2 - es-es/tmux-es.html.markdown | 4 -- es-es/tmux.html.markdown | 4 -- es-es/typescript-es.html.markdown | 1 - es-es/visualbasic-es.html.markdown | 1 - es-es/xml-es.html.markdown | 3 - es-es/yaml-es.html.markdown | 1 - fa-ir/css-fa.html.markdown | 5 +- fa-ir/java-fa.html.markdown | 1 - fa-ir/javascript-fa.html.markdown | 82 ++++++++++++++++++++++ factor.html.markdown | 2 - fish.html.markdown | 1 - forth.html.markdown | 1 - fortran.html.markdown | 2 - fr-fr/HTML-fr.html.markdown | 1 - fr-fr/awk-fr.html.markdown | 1 - fr-fr/binary-search-fr.html.markdown | 5 +- fr-fr/c++-fr.html.markdown | 4 +- fr-fr/crystal-fr.html.markdown | 2 - fr-fr/css-fr.html.markdown | 3 - fr-fr/d-fr.html.markdown | 6 +- fr-fr/elixir-fr.html.markdown | 1 - fr-fr/erlang-fr.html.markdown | 1 - fr-fr/fsharp-fr.html.markdown | 2 - fr-fr/haml-fr.html.markdown | 1 - fr-fr/haskell-fr.html.markdown | 1 - fr-fr/java-fr.html.markdown | 1 - fr-fr/javascript-fr.html.markdown | 1 - fr-fr/jquery-fr.html.markdown | 4 -- fr-fr/lua-fr.html.markdown | 2 +- fr-fr/make-fr.html.markdown | 1 - fr-fr/objective-c-fr.html.markdown | 1 - fr-fr/php-fr.html.markdown | 1 - fr-fr/pyqt-fr.html.markdown | 1 - fr-fr/python-fr.html.markdown | 1 - fr-fr/pythonlegacy-fr.html.markdown | 2 - fr-fr/r-fr.html.markdown | 4 -- fr-fr/ruby-fr.html.markdown | 1 - fr-fr/scala-fr.html.markdown | 3 - fr-fr/tmux-fr.html.markdown | 4 -- fr-fr/typescript-fr.html.markdown | 1 - fr-fr/xml-fr.html.markdown | 3 - fr-fr/yaml-fr.html.markdown | 1 - fsharp.html.markdown | 2 - git.html.markdown | 3 + groovy.html.markdown | 3 - hack.html.markdown | 1 - haml.html.markdown | 1 - haskell.html.markdown | 1 - haxe.html.markdown | 1 - hdl.html.markdown | 2 - html.html.markdown | 1 - hu-hu/pythonlegacy-hu.html.markdown | 1 - hu-hu/typescript-hu.html.markdown | 1 - id-id/asciidoc-id.html.markdown | 1 - id-id/css-id.html.markdown | 4 -- id-id/java-id.html.markdown | 1 - id-id/php-id.html.markdown | 1 - id-id/rst-id.html.markdown | 1 - id-id/smallbasic-id.html.markdown | 1 - id-id/xml-id.html.markdown | 4 +- it-it/asciidoc-it.html.markdown | 1 - it-it/bf-it.html.markdown | 1 - it-it/c++-it.html.markdown | 2 +- it-it/elixir-it.html.markdown | 1 - it-it/html-it.html.markdown | 1 - it-it/java-it.html.markdown | 1 + it-it/jquery-it.html.markdown | 4 -- it-it/matlab-it.html.markdown | 1 - it-it/php-composer-it.html.markdown | 2 +- it-it/pyqt-it.html.markdown | 1 - it-it/python-it.html.markdown | 1 - it-it/pythonlegacy-it.html.markdown | 1 - it-it/rst-it.html.markdown | 1 - it-it/solidity.html.markdown | 1 - it-it/zfs-it.html.markdown | 2 - ja-jp/asciidoc.html.markdown | 1 - ja-jp/bash-jp.html.markdown | 1 - ja-jp/julia-jp.html.markdown | 1 - ja-jp/php-jp.html.markdown | 1 - ja-jp/r-jp.html.markdown | 6 -- jinja.html.markdown | 2 - jquery.html.markdown | 3 - jsonnet.html.markdown | 1 - ko-kr/erlang-kr.html.markdown | 1 - ko-kr/java-kr.html.markdown | 1 - ko-kr/kotlin-kr.html.markdown | 1 - ko-kr/lua-kr.html.markdown | 1 - ko-kr/php-kr.html.markdown | 1 - ko-kr/pythonlegacy-kr.html.markdown | 2 - less.html.markdown | 4 -- lfe.html.markdown | 1 - lt-lt/tmux-lt.html.markdown | 4 -- lua.html.markdown | 1 - m.html.markdown | 11 ++- make.html.markdown | 1 - matlab.html.markdown | 1 - messagepack.html.markdown | 2 - mips.html.markdown | 1 - ms-my/common-lisp-my.html.markdown | 1 - ms-my/javascript-my.html.markdown | 1 + ms-my/sass-my.html.markdown | 5 -- ms-my/xml-my.html.markdown | 3 - nl-nl/typescript-nl.html.markdown | 1 - nl-nl/xml-nl.html.markdown | 3 - objective-c.html.markdown | 2 +- osl.html.markdown | 4 +- pascal.html.markdown | 1 - pcre.html.markdown | 2 - php-composer.html.markdown | 2 +- php.html.markdown | 1 - pl-pl/haskell-pl.html.markdown | 1 - pl-pl/perl-pl.html.markdown | 2 - pl-pl/xml-pl.html.markdown | 4 -- powershell.html.markdown | 2 +- pt-br/asciidoc-pt.html.markdown | 1 - pt-br/asymptotic-notation-pt.html.markdown | 1 + pt-br/awk-pt.html.markdown | 1 - pt-br/bc-pt.html.markdown | 1 + pt-br/binary-search-pt.html.markdown | 5 +- pt-br/c++-pt.html.markdown | 1 + pt-br/c-pt.html.markdown | 1 - pt-br/clojure-macros-pt.html.markdown | 1 - pt-br/common-lisp-pt.html.markdown | 1 - pt-br/cypher-pt.html.markdown | 21 +++++- pt-br/d-pt.html.markdown | 1 - pt-br/dart-pt.html.markdown | 1 - pt-br/elixir-pt.html.markdown | 1 - pt-br/erlang-pt.html.markdown | 1 - pt-br/factor-pt.html.markdown | 2 - pt-br/fsharp-pt.html.markdown | 2 - pt-br/git-pt.html.markdown | 2 + pt-br/groovy-pt.html.markdown | 3 - pt-br/hack-pt.html.markdown | 1 - pt-br/haxe-pt.html.markdown | 2 +- pt-br/html-pt.html.markdown | 1 - pt-br/java-pt.html.markdown | 1 - pt-br/jquery-pt.html.markdown | 4 -- pt-br/kotlin-pt.html.markdown | 1 - pt-br/less-pt.html.markdown | 4 -- pt-br/lua-pt.html.markdown | 1 - pt-br/make-pt.html.markdown | 1 - pt-br/matlab-pt.html.markdown | 1 - pt-br/pascal-pt.html.markdown | 1 - pt-br/php-composer-pt.html.markdown | 2 +- pt-br/php-pt.html.markdown | 1 - pt-br/pug-pt.html.markdown | 3 +- pt-br/pyqt-pt.html.markdown | 1 - pt-br/python-pt.html.markdown | 1 - pt-br/pythonlegacy-pt.html.markdown | 2 - pt-br/pythonstatcomp-pt.html.markdown | 4 -- pt-br/r-pt.html.markdown | 4 -- pt-br/sass-pt.html.markdown | 4 -- pt-br/scala-pt.html.markdown | 1 - pt-br/set-theory-pt.html.markdown | 4 ++ pt-br/stylus-pt.html.markdown | 2 - pt-br/swift-pt.html.markdown | 1 - pt-br/tmux-pt.html.markdown | 4 -- pt-br/typescript-pt.html.markdown | 1 - pt-br/visualbasic-pt.html.markdown | 1 - pt-br/xml-pt.html.markdown | 3 - pt-br/yaml-pt.html.markdown | 1 + pt-pt/scala-pt.html.markdown | 2 - pug.html.markdown | 3 +- purescript.html.markdown | 2 - pyqt.html.markdown | 1 - python.html.markdown | 2 - pythonlegacy.html.markdown | 1 - pythonstatcomp.html.markdown | 4 -- r.html.markdown | 4 -- raku-pod.html.markdown | 1 + raylib.html.markdown | 1 - rdf.html.markdown | 1 - red.html.markdown | 2 +- ro-ro/bf-ro.html.markdown | 1 - ro-ro/elixir-ro.html.markdown | 1 - ro-ro/haskell-ro.html.markdown | 2 +- ro-ro/pythonlegacy-ro.html.markdown | 2 - ro-ro/xml-ro.html.markdown | 3 - rst.html.markdown | 1 - ru-ru/binary-search-ru.html.markdown | 4 +- ru-ru/c++-ru.html.markdown | 2 +- ru-ru/common-lisp-ru.html.markdown | 1 - ru-ru/crystal-ru.html.markdown | 1 - ru-ru/css-ru.html.markdown | 3 - ru-ru/d-ru.html.markdown | 1 + ru-ru/elixir-ru.html.markdown | 1 - ru-ru/erlang-ru.html.markdown | 1 - ru-ru/forth-ru.html.markdown | 1 - ru-ru/haml-ru.html.markdown | 1 - ru-ru/haskell-ru.html.markdown | 1 - ru-ru/html-ru.html.markdown | 1 - ru-ru/java-ru.html.markdown | 1 - ru-ru/jquery-ru.html.markdown | 4 -- ru-ru/julia-ru.html.markdown | 1 - ru-ru/kotlin-ru.html.markdown | 1 - ru-ru/learnvisualbasic-ru.html.markdown | 1 - ru-ru/lua-ru.html.markdown | 2 +- ru-ru/objective-c-ru.html.markdown | 2 +- ru-ru/pascal-ru.html.markdown | 1 - ru-ru/php-composer-ru.html.markdown | 1 + ru-ru/php-ru.html.markdown | 1 - ru-ru/pyqt-ru.html.markdown | 2 - ru-ru/python-ru.html.markdown | 2 - ru-ru/pythonlegacy-ru.html.markdown | 1 - ru-ru/qt-ru.html.markdown | 1 + ru-ru/rust-ru.html.markdown | 1 - ru-ru/tcl-ru.html.markdown | 3 - ru-ru/tmux-ru.html.markdown | 4 -- ru-ru/typescript-ru.html.markdown | 1 - ru-ru/xml-ru.html.markdown | 3 - ru-ru/zfs-ru.html.markdown | 2 - sass.html.markdown | 3 - scala.html.markdown | 2 - self.html.markdown | 1 + shutit.html.markdown | 1 - sk-sk/elixir-sk.html.markdown | 1 - sl-si/asciidoc-sl.html.markdown | 2 - smallbasic.html.markdown | 1 - solidity.html.markdown | 1 - stylus.html.markdown | 1 - sv-se/haskell-sv.html.markdown | 1 - ta_in/xml-ta.html.markdown | 3 - tact.html.markdown | 1 - tailspin.html.markdown | 1 - tcl.html.markdown | 2 - textile.html.markdown | 11 +-- th-th/pascal.th.html.markdown | 1 - th-th/typescript.th.html.markdown | 2 - tmux.html.markdown | 4 -- toml.html.markdown | 3 +- tr-tr/c++-tr.html.markdown | 3 +- tr-tr/c-tr.html.markdown | 1 - tr-tr/dynamic-programming-tr.html.markdown | 3 +- tr-tr/edn-tr.html.markdown | 1 - tr-tr/fsharp-tr.html.markdown | 2 - tr-tr/git-tr.html.markdown | 5 ++ tr-tr/html-tr.html.markdown | 1 - tr-tr/jquery-tr.html.markdown | 2 - tr-tr/kotlin-tr.html.markdown | 2 - tr-tr/objective-c-tr.html.markdown | 4 +- tr-tr/php-tr.html.markdown | 1 - tr-tr/python-tr.html.markdown | 1 - tr-tr/pythonlegacy-tr.html.markdown | 3 - tr-tr/typescript-tr.html.markdown | 1 - typescript.html.markdown | 1 - uk-ua/c-ua.html.markdown | 2 +- uk-ua/cypher-ua.html.markdown | 19 ++++- uk-ua/java-ua.html.markdown | 1 - uk-ua/json-ua.html.markdown | 2 - uk-ua/mips-ua.html.markdown | 1 - uk-ua/wasm-ua.html.markdown | 1 - v.html.markdown | 2 +- vala.html.markdown | 3 +- vi-vn/html-vi.html.markdown | 1 - vi-vn/less-vi.html.markdown | 4 -- vi-vn/objective-c-vi.html.markdown | 4 +- vi-vn/python-vi.html.markdown | 1 - vi-vn/sass-vi.html.markdown | 3 - vi-vn/typescript-vi.html.markdown | 1 - visualbasic.html.markdown | 1 - vyper.html.markdown | 1 - wasm.html.markdown | 1 - zfs.html.markdown | 2 - zh-cn/asciidoc-cn.html.markdown | 1 - zh-cn/awk-cn.html.markdown | 2 +- zh-cn/bf-cn.html.markdown | 1 + zh-cn/c++-cn.html.markdown | 1 + zh-cn/c-cn.html.markdown | 1 - zh-cn/cobol-cn.html.markdown | 6 -- zh-cn/crystal-cn.html.markdown | 2 - zh-cn/csharp-cn.html.markdown | 1 - zh-cn/css-cn.html.markdown | 3 - zh-cn/dart-cn.html.markdown | 1 - zh-cn/elixir-cn.html.markdown | 1 - zh-cn/erlang-cn.html.markdown | 1 - zh-cn/fortran-cn.html.markdown | 1 - zh-cn/groovy-cn.html.markdown | 3 - zh-cn/haskell-cn.html.markdown | 1 - zh-cn/html-cn.html.markdown | 1 - zh-cn/java-cn.html.markdown | 1 - zh-cn/jquery-cn.html.markdown | 4 -- zh-cn/kotlin-cn.html.markdown | 1 - zh-cn/less-cn.html.markdown | 4 -- zh-cn/matlab-cn.html.markdown | 1 - zh-cn/mips-cn.html.markdown | 1 - zh-cn/perl-cn.html.markdown | 2 - zh-cn/php-cn.html.markdown | 1 - zh-cn/pythonlegacy-cn.html.markdown | 3 - zh-cn/r-cn.html.markdown | 1 - zh-cn/raylib-cn.html.markdown | 1 - zh-cn/red-cn.html.markdown | 1 - zh-cn/sass-cn.html.markdown | 3 - zh-cn/scala-cn.html.markdown | 2 - zh-cn/sql-cn.html.markdown | 1 - zh-cn/swift-cn.html.markdown | 1 - zh-cn/tmux-cn.html.markdown | 4 -- zh-cn/typescript-cn.html.markdown | 1 - zh-cn/visualbasic-cn.html.markdown | 1 - zh-cn/xml-cn.html.markdown | 3 - zh-cn/zfs-cn.html.markdown | 1 - zh-tw/dart-tw.html.markdown | 1 - zh-tw/elixir-tw.html.markdown | 1 - zh-tw/pythonlegacy-tw.html.markdown | 1 - 403 files changed, 257 insertions(+), 618 deletions(-) diff --git a/CHICKEN.html.markdown b/CHICKEN.html.markdown index 4ae45cac..37f6c859 100644 --- a/CHICKEN.html.markdown +++ b/CHICKEN.html.markdown @@ -504,8 +504,8 @@ sqr ;; => # (import star-squarer) (square 3) ;; => ((* * *)(* * *)(* * *)) - ``` + ## Further Reading * [CHICKEN User's Manual](https://wiki.call-cc.org/manual). * [R5RS standards](http://www.schemers.org/Documents/Standards/R5RS) diff --git a/amd.html.markdown b/amd.html.markdown index fc8f20a4..82739780 100644 --- a/amd.html.markdown +++ b/amd.html.markdown @@ -15,6 +15,7 @@ synchronous loading of modules incurs performance, usability, debugging, and cross-domain access problems. ### Basic concept + ```javascript // The basic AMD API consists of nothing but two methods: `define` and `require` // and is all about module definition and consumption: @@ -117,6 +118,7 @@ define(['daos/things', 'modules/someHelpers'], function(thingsDao, helpers){ return SomeClass; }); ``` + To alter the default path mapping behavior use `requirejs.config(configObj)` in your `main.js`: ```javascript @@ -135,6 +137,7 @@ require(['jquery', 'coolLibFromBower', 'modules/someHelpers'], function($, coolL coolLib.doFancyStuffWith(helpers.transform($('#foo'))); }); ``` + `require.js`-based apps will usually have a single entry point (`main.js`) that is passed to the `require.js` script tag as a data-attribute. It will be automatically loaded and executed on pageload: ```html @@ -156,16 +159,19 @@ Many people prefer using AMD for sane code organization during development, but `require.js` comes with a script called `r.js` (that you will probably run in node.js, although Rhino is supported too) that can analyse your project's dependency graph, and build a single file containing all your modules (properly named), minified and ready for consumption. Install it using `npm`: + ```shell $ npm install requirejs -g ``` Now you can feed it with a configuration file: + ```shell $ r.js -o app.build.js ``` For our above example the configuration might look like: + ```javascript /* file : app.build.js */ ({ @@ -182,6 +188,7 @@ For our above example the configuration might look like: ``` To use the built file in production, simply swap `data-main`: + ```html ``` diff --git a/ar-ar/html-ar.html.markdown b/ar-ar/html-ar.html.markdown index f17164cf..b88df668 100644 --- a/ar-ar/html-ar.html.markdown +++ b/ar-ar/html-ar.html.markdown @@ -107,7 +107,6 @@ HTML اختصار ل HyperText Markup Language، أي "لغة ترميز الن الصف الثاني، العمود الأول - ``` ## الاستعمال diff --git a/ar-ar/python-ar.html.markdown b/ar-ar/python-ar.html.markdown index f89c2f25..76191387 100644 --- a/ar-ar/python-ar.html.markdown +++ b/ar-ar/python-ar.html.markdown @@ -22,7 +22,6 @@ filename: learnpython-ar.py ملحوظة: هذا المقال يُطبق على بايثون 3 فقط. راجع المقال [هنا](http://learnxinyminutes.com/docs/pythonlegacy/) إذا أردت تعلم لغة البايثون نسخة 2.7 الأقدم ```python - # تعليق من سطر واحد يبدأ برمز الرقم. """ يمكن كتابة تعليق يتكون من أكثر من سطر diff --git a/ar-ar/sql-ar.html.markdown b/ar-ar/sql-ar.html.markdown index dea20c1f..de1f16a2 100644 --- a/ar-ar/sql-ar.html.markdown +++ b/ar-ar/sql-ar.html.markdown @@ -125,6 +125,7 @@ DELETE FROM tablename1; -- تماما tablename1 إزالة جدول DROP TABLE tablename1; ``` +
## اقرأ أكثر diff --git a/asciidoc.html.markdown b/asciidoc.html.markdown index 557ed294..95c545ce 100644 --- a/asciidoc.html.markdown +++ b/asciidoc.html.markdown @@ -81,7 +81,6 @@ Section Titles ==== Level 3

===== Level 4

- ``` Lists diff --git a/assemblyscript.html.markdown b/assemblyscript.html.markdown index 4433b41e..0bc4bf0d 100644 --- a/assemblyscript.html.markdown +++ b/assemblyscript.html.markdown @@ -193,7 +193,6 @@ let doubles = [0.0, 1.0, 2, 3, 4] // will infer as Array let bytes1 = [0 as u8, 1, 2, 3, 4] // will infer as Array let bytes2 = [0, 1, 2, 3, 4] as u8[] // will infer as Array let bytes3: u8[] = [0, 1, 2, 3, 4] // will infer as Array - ``` ## Further Reading diff --git a/awk.html.markdown b/awk.html.markdown index e1d4a0a3..ee4cfcac 100644 --- a/awk.html.markdown +++ b/awk.html.markdown @@ -375,7 +375,6 @@ END { if (nlines) print "The average age for " name " is " sum / nlines; } - ``` Further Reading: diff --git a/bc.html.markdown b/bc.html.markdown index 9d63acfb..1103d7bb 100644 --- a/bc.html.markdown +++ b/bc.html.markdown @@ -93,6 +93,7 @@ print a[0], " ", a[1], " ", a[2], " ", a[3], "\n" quit /*Add this line of code to make sure that your program exits. This line of code is optional.*/ ``` + Enjoy this simple calculator! (Or this programming language, to be exact.) This whole program is written in GNU bc. To run it, use ```bc learnbc.bc```. diff --git a/c++.html.markdown b/c++.html.markdown index 499eb669..6a3fdb5b 100644 --- a/c++.html.markdown +++ b/c++.html.markdown @@ -1196,9 +1196,8 @@ compl 4 // Performs a bitwise not 4 bitor 3 // Performs bitwise or 4 bitand 3 // Performs bitwise and 4 xor 3 // Performs bitwise xor - - ``` + Further Reading: * An up-to-date language reference can be found at [CPP Reference](http://cppreference.com/w/cpp). diff --git a/c.html.markdown b/c.html.markdown index ef341abf..a737696f 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -905,7 +905,6 @@ Node createLinkedList(int *vals, int len); /* a header file but instead put into separate headers or a C file. */ #endif /* End of the if precompiler directive. */ - ``` ## Further Reading diff --git a/ca-es/groovy-ca.html.markdown b/ca-es/groovy-ca.html.markdown index f0a9adbe..9e3dabe1 100644 --- a/ca-es/groovy-ca.html.markdown +++ b/ca-es/groovy-ca.html.markdown @@ -13,7 +13,6 @@ translations: Groovy - Un llenguatge dinàmic per la plataforma Java [Llegir-ne més.](http://www.groovy-lang.org/) ```groovy - /* Posa'l en marxa tu mateix: @@ -413,8 +412,6 @@ int sum(int x, int y) { } assert sum(2,5) == 7 - - ``` ## Per aprendre'n més diff --git a/ca-es/html-ca.html.markdown b/ca-es/html-ca.html.markdown index 351eb722..206d9885 100644 --- a/ca-es/html-ca.html.markdown +++ b/ca-es/html-ca.html.markdown @@ -160,7 +160,6 @@ article tracta principalment la sintaxi de l'HTML i alguns consells útils. Segona fila, segona columna - ``` ## Ús diff --git a/ca-es/kotlin-ca.html.markdown b/ca-es/kotlin-ca.html.markdown index cd05a808..04681e11 100644 --- a/ca-es/kotlin-ca.html.markdown +++ b/ca-es/kotlin-ca.html.markdown @@ -379,7 +379,6 @@ fun useObject() { ObjectExample.hello() val someRef: Any = ObjectExample // podem fer servir el nom de l'objecte } - ``` ### Per llegir més diff --git a/cobol.html.markdown b/cobol.html.markdown index 1350c66f..208aec94 100644 --- a/cobol.html.markdown +++ b/cobol.html.markdown @@ -184,12 +184,6 @@ organizations. *and then re-run the program. This time the output is: THE FULL NAME IS: BOB GIBBERISH COBB - - - - - - ``` ##Ready For More? diff --git a/coldfusion.html.markdown b/coldfusion.html.markdown index 97259f56..01d44e98 100644 --- a/coldfusion.html.markdown +++ b/coldfusion.html.markdown @@ -233,6 +233,7 @@ ColdFusion started as a tag-based language. Almost all functionality is availabl Code for reference (Functions must return something to support IE) ``` + ```cfs diff --git a/common-lisp.html.markdown b/common-lisp.html.markdown index 1f2bb366..6fbb9a25 100644 --- a/common-lisp.html.markdown +++ b/common-lisp.html.markdown @@ -17,7 +17,6 @@ popular and recent book is [Land of Lisp](http://landoflisp.com/). A new book ab ```lisp - ;;;----------------------------------------------------------------------------- ;;; 0. Syntax ;;;----------------------------------------------------------------------------- diff --git a/crystal.html.markdown b/crystal.html.markdown index d32712ce..eed009cb 100644 --- a/crystal.html.markdown +++ b/crystal.html.markdown @@ -9,7 +9,6 @@ contributors: --- ```crystal - # This is a comment # Everything is an object @@ -556,7 +555,6 @@ rescue ex4 # catch any kind of exception end ex #=> "ex2" - ``` ## Additional resources diff --git a/cs-cz/hack.html.markdown b/cs-cz/hack.html.markdown index 736ad7e0..9004632a 100644 --- a/cs-cz/hack.html.markdown +++ b/cs-cz/hack.html.markdown @@ -295,7 +295,6 @@ class Samuel $cat = new Samuel(); $cat instanceof KittenInterface === true; // True - ``` ## Více informací diff --git a/cs-cz/python.html.markdown b/cs-cz/python.html.markdown index 71509460..b89408a0 100644 --- a/cs-cz/python.html.markdown +++ b/cs-cz/python.html.markdown @@ -20,7 +20,6 @@ autora českého překladu pak na [@tbedrich](http://twitter.com/tbedrich) nebo Poznámka: Tento článek je zaměřen na Python 3. Zde se můžete [naučit starší Python 2.7](http://learnxinyminutes.com/docs/pythonlegacy/). ```python - # Jednořádkový komentář začíná křížkem """ Víceřádkové komentáře používají tři uvozovky nebo apostrofy diff --git a/cs-cz/sass.html.markdown b/cs-cz/sass.html.markdown index 0d2fca64..c8c5a2ca 100644 --- a/cs-cz/sass.html.markdown +++ b/cs-cz/sass.html.markdown @@ -19,8 +19,6 @@ Tento tutoriál bude používat syntaxi CSS. Pokud jste již obeznámeni s CSS3, budete schopni používat Sass relativně rychle. Nezprostředkovává nějaké úplně nové stylové možnosti, spíše nátroje, jak psát Vás CSS kód více efektivně, udržitelně a jednoduše. ```scss - - //Jednořádkové komentáře jsou ze Sassu při kompilaci vymazány /*Víceřádkové komentáře jsou naopak zachovány */ @@ -411,8 +409,6 @@ body { .gutter { width: 6.25%; } - - ``` diff --git a/csharp.html.markdown b/csharp.html.markdown index 1d7d0881..cfc75d25 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -1311,7 +1311,6 @@ namespace Csharp7 } } } - ``` ## Topics Not Covered diff --git a/cue.html.markdown b/cue.html.markdown index a1ff0822..a1a21086 100644 --- a/cue.html.markdown +++ b/cue.html.markdown @@ -23,6 +23,7 @@ disposition: "oblivious" ``` Now we can unify and export to JSON: + ```bash % cue export name.cue disposition.cue { @@ -32,6 +33,7 @@ Now we can unify and export to JSON: ``` Or YAML: + ```bash % cue export --out yaml name.cue disposition.cue name: Daniel diff --git a/cypher.html.markdown b/cypher.html.markdown index 32868354..5fe113a2 100644 --- a/cypher.html.markdown +++ b/cypher.html.markdown @@ -93,7 +93,6 @@ path = shortestPath( (user)-[:KNOWS*..5]-(other) ) // Tree navigation (root)<-[:PARENT*]-(leaf:Category)-[:ITEM]->(data:Product) - ``` @@ -101,13 +100,16 @@ Create queries --- Create a new node + ``` CREATE (a:Person {name:"Théo Gauchoux"}) RETURN a ``` + *`RETURN` allows to have a result after the query. It can be multiple, as `RETURN a, b`.* Create a new relationship (with 2 new nodes) + ``` CREATE (a:Person)-[k:KNOWS]-(b:Person) RETURN a,k,b @@ -117,36 +119,42 @@ Match queries --- Match all nodes + ``` MATCH (n) RETURN n ``` Match nodes by label + ``` MATCH (a:Person) RETURN a ``` Match nodes by label and property + ``` MATCH (a:Person {name:"Théo Gauchoux"}) RETURN a ``` Match nodes according to relationships (undirected) + ``` MATCH (a)-[:KNOWS]-(b) RETURN a,b ``` Match nodes according to relationships (directed) + ``` MATCH (a)-[:MANAGES]->(b) RETURN a,b ``` Match nodes with a `WHERE` clause + ``` MATCH (p:Person {name:"Théo Gauchoux"})-[s:LIVES_IN]->(city:City) WHERE s.since = 2015 @@ -154,6 +162,7 @@ RETURN p,state ``` You can use `MATCH WHERE` clause with `CREATE` clause + ``` MATCH (a), (b) WHERE a.name = "Jacquie" AND b.name = "Michel" @@ -165,6 +174,7 @@ Update queries --- Update a specific property of a node + ``` MATCH (p:Person) WHERE p.name = "Théo Gauchoux" @@ -172,6 +182,7 @@ SET p.age = 23 ``` Replace all properties of a node + ``` MATCH (p:Person) WHERE p.name = "Théo Gauchoux" @@ -179,6 +190,7 @@ SET p = {name: "Michel", age: 23} ``` Add new property to a node + ``` MATCH (p:Person) WHERE p.name = "Théo Gauchoux" @@ -186,6 +198,7 @@ SET p + = {studies: "IT Engineering"} ``` Add a label to a node + ``` MATCH (p:Person) WHERE p.name = "Théo Gauchoux" @@ -197,6 +210,7 @@ Delete queries --- Delete a specific node (linked relationships must be deleted before) + ``` MATCH (p:Person)-[relationship]-() WHERE p.name = "Théo Gauchoux" @@ -204,14 +218,17 @@ DELETE relationship, p ``` Remove a property in a specific node + ``` MATCH (p:Person) WHERE p.name = "Théo Gauchoux" REMOVE p.age ``` + *Pay attention to the `REMOVE`keyword, it's not `DELETE` !* Remove a label from a specific node + ``` MATCH (p:Person) WHERE p.name = "Théo Gauchoux" @@ -219,11 +236,13 @@ DELETE p:Person ``` Delete entire database + ``` MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n, r ``` + *Seriously, it's the `rm -rf /` of Cypher !* diff --git a/d.html.markdown b/d.html.markdown index 93c08da2..e56661e7 100644 --- a/d.html.markdown +++ b/d.html.markdown @@ -128,7 +128,6 @@ class Matrix(uint m, uint n, T = int) { } auto mat = new Matrix!(3, 3); // We've defaulted type 'T' to 'int'. - ``` Speaking of classes, let's talk about properties for a second. A property diff --git a/dart.html.markdown b/dart.html.markdown index ab3c07d2..e6594fc5 100644 --- a/dart.html.markdown +++ b/dart.html.markdown @@ -710,7 +710,6 @@ main() { example30 // Adding this comment stops the dart formatter from putting all items on a new line ].forEach((ef) => ef()); } - ``` ## Further Reading diff --git a/de-de/asciidoc-de.html.markdown b/de-de/asciidoc-de.html.markdown index d0a62c66..c12c2479 100644 --- a/de-de/asciidoc-de.html.markdown +++ b/de-de/asciidoc-de.html.markdown @@ -87,7 +87,6 @@ Abteilungstitel ==== Level 3

===== Level 4

- ``` Listen diff --git a/de-de/bc.html.markdown b/de-de/bc.html.markdown index 49a2878d..d2c6e9ae 100644 --- a/de-de/bc.html.markdown +++ b/de-de/bc.html.markdown @@ -96,6 +96,7 @@ print a[0], " ", a[1], " ", a[2], " ", a[3], "\n" quit /* Füge diese Codezeile hinzu, um sicherzustellen, dass das Programm beendet. Diese Codezeile ist optional.*/ ``` + Viel Spass mit diesem einfachen Rechner! (Oder dieser Programmiersprache, um exakt zu sein.) Das ganze Programm wurde in GNU bc geschrieben. Um es auszuführen, benutze ```bc learnbc.bc```. diff --git a/de-de/c++-de.html.markdown b/de-de/c++-de.html.markdown index cca54c30..6224d179 100644 --- a/de-de/c++-de.html.markdown +++ b/de-de/c++-de.html.markdown @@ -1148,9 +1148,8 @@ compl 4 // Führt bitweises nicht aus. 4 bitor 3 // Führt bitweises oder aus. 4 bitand 3 // Führt bitweises und aus. 4 xor 3 // Führt bitweises xor aus. - - ``` + Weiterführende Literatur: * Aktuelle Sprachen-Referenz [CPP Reference](http://cppreference.com/w/cpp). diff --git a/de-de/c-de.html.markdown b/de-de/c-de.html.markdown index 3a726b83..3eb1e4e6 100644 --- a/de-de/c-de.html.markdown +++ b/de-de/c-de.html.markdown @@ -844,6 +844,7 @@ Node create_linked_list(int *value, int length); #endif /* Ende der Präprozessordirektive */ ``` + ## Weiterführende Literatur Das Beste wird es sein, wenn man sich ein Exemplar des Buches diff --git a/de-de/crystal-de.html.markdown b/de-de/crystal-de.html.markdown index 535267ee..2c1dda72 100644 --- a/de-de/crystal-de.html.markdown +++ b/de-de/crystal-de.html.markdown @@ -10,7 +10,6 @@ lang: de-de --- ```crystal - # Das ist ein Kommentar # Alles ist ein Objekt diff --git a/de-de/css-de.html.markdown b/de-de/css-de.html.markdown index da706e91..02c7559f 100644 --- a/de-de/css-de.html.markdown +++ b/de-de/css-de.html.markdown @@ -144,7 +144,6 @@ selector { font-family: "Courier New", Trebuchet, Arial; /* wird die erste Schriftart nicht gefunden, wird die zweite benutzt, usw. */ } - ``` ## Benutzung @@ -164,7 +163,6 @@ empfohlen ist -->
- ``` ## Spezifität @@ -190,7 +188,6 @@ p {} /*E*/ p { property: wert !important; } - ``` und das folgende Markup: diff --git a/de-de/d-de.html.markdown b/de-de/d-de.html.markdown index 28ecc7ae..a4c8c372 100644 --- a/de-de/d-de.html.markdown +++ b/de-de/d-de.html.markdown @@ -128,7 +128,6 @@ class Matrix(uint m, uint n, T = int) { } auto mat = new Matrix!(3, 3); // Standardmäßig ist T vom Typ Integer - ``` Wo wir schon bei Klassen sind - Wie wäre es mit Properties! Eine Property @@ -248,5 +247,4 @@ void main() { ref = sqrt(i + 1.0); } } - ``` diff --git a/de-de/edn-de.html.markdown b/de-de/edn-de.html.markdown index 2434d1bd..2d194f3b 100644 --- a/de-de/edn-de.html.markdown +++ b/de-de/edn-de.html.markdown @@ -102,7 +102,6 @@ false (edn/read-string {:readers {'MyYelpClone/MenuItem map->menu-item}} "#MyYelpClone/MenuItem {:name \"eggs-benedict\" :rating 10}") ; -> #user.MenuItem{:name "eggs-benedict", :rating 10} - ``` # Referenzen diff --git a/de-de/elixir-de.html.markdown b/de-de/elixir-de.html.markdown index 4acb8e23..a91288c9 100644 --- a/de-de/elixir-de.html.markdown +++ b/de-de/elixir-de.html.markdown @@ -13,7 +13,6 @@ kompatibel mit Erlang, verfügt aber über eine freundlichere Syntax und bringt viele Features mit. ```ruby - # Einzeilige Kommentare werden mit der Raute gesetzt. # Es gibt keine mehrzeiligen Kommentare; @@ -412,7 +411,6 @@ pid <- {:circle, 2} # Die Shell selbst ist ein Prozess und mit dem Schlüsselwort 'self' kann man # die aktuelle pid herausfinden. self() #=> #PID<0.27.0> - ``` ## Referenzen und weitere Lektüre diff --git a/de-de/hack-de.html.markdown b/de-de/hack-de.html.markdown index 42428130..6e9b9da3 100644 --- a/de-de/hack-de.html.markdown +++ b/de-de/hack-de.html.markdown @@ -305,7 +305,6 @@ class Samuel $cat = new Samuel(); $cat instanceof KittenInterface === true; // True - ``` ## Weitere Informationen diff --git a/de-de/haml-de.html.markdown b/de-de/haml-de.html.markdown index 7272b365..9757ec2f 100644 --- a/de-de/haml-de.html.markdown +++ b/de-de/haml-de.html.markdown @@ -147,7 +147,6 @@ $ haml input_file.haml output_file.html :javascript console.log('Dies ist ein