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