summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cs-cz/python3.html.markdown1
-rw-r--r--css.html.markdown12
-rw-r--r--id-id/json-id.html.markdown60
-rw-r--r--id-id/xml-id.html.markdown129
-rw-r--r--javascript.html.markdown3
-rw-r--r--markdown.html.markdown6
-rw-r--r--php.html.markdown2
-rw-r--r--xml.html.markdown5
8 files changed, 206 insertions, 12 deletions
diff --git a/cs-cz/python3.html.markdown b/cs-cz/python3.html.markdown
index 1f380f36..11c8a654 100644
--- a/cs-cz/python3.html.markdown
+++ b/cs-cz/python3.html.markdown
@@ -8,6 +8,7 @@ contributors:
translators:
- ["Tomáš Bedřich", "http://tbedrich.cz"]
filename: learnpython3.py
+lang: cs-cz
---
Python byl vytvořen Guidem Van Rossum v raných 90. letech. Nyní je jedním z nejpopulárnějších jazyků.
diff --git a/css.html.markdown b/css.html.markdown
index 9e8664b3..7224d80a 100644
--- a/css.html.markdown
+++ b/css.html.markdown
@@ -7,19 +7,19 @@ contributors:
filename: learncss.css
---
-In early days of web there was no visual elements, just pure text. But with the
-further development of browser fully visual web pages also became common.
+In the early days of the web there were no visual elements, just pure text. But with the
+further development of browsers, fully visual web pages also became common.
CSS is the standard language that exists to keep the separation between
the content (HTML) and the look-and-feel of web pages.
In short, what CSS does is to provide a syntax that enables you to target
different elements on an HTML page and assign different visual properties to them.
-Like any other language, CSS has many versions. Here we focus on CSS2.0
-which is not the most recent but the most widely supported and compatible version.
+Like any other languages, CSS has many versions. Here we focus on CSS2.0,
+which is not the most recent version, but is the most widely supported and compatible version.
-**NOTE:** Because the outcome of CSS is some visual effects, in order to
-learn it, you need try all different things in a
+**NOTE:** Because the outcome of CSS consists of visual effects, in order to
+learn it, you need try everything in a
CSS playground like [dabblet](http://dabblet.com/).
The main focus of this article is on the syntax and some general tips.
diff --git a/id-id/json-id.html.markdown b/id-id/json-id.html.markdown
new file mode 100644
index 00000000..52e61449
--- /dev/null
+++ b/id-id/json-id.html.markdown
@@ -0,0 +1,60 @@
+---
+language: json
+filename: learnjson.json
+contributors:
+ - ["Anna Harren", "https://github.com/iirelu"]
+ - ["Marco Scannadinari", "https://github.com/marcoms"]
+translators
+ - ["Rizky Luthfianto", "https://github.com/rilut"]
+---
+
+JSON adalah format pertukaran data yang sangat simpel, kemungkinan besar,
+ini adalah "Learn X in Y Minutes" yang paling singkat.
+
+Murninya, JSON tidak mempunyai fitur komentar, tapi kebanyakan parser akan
+menerima komentar bergaya bahasa C (`//`, `/* */`). Namun, pada halaman ini,
+hanya dicontohkan JSON yang 100% valid.
+
+```json
+{
+ "kunci": "nilai",
+
+ "kunci": "harus selalu diapit tanda kutip",
+ "angka": 0,
+ "strings": "Halø, dunia. Semua karaktor unicode diperbolehkan, terumasuk \"escaping\".",
+ "punya tipe data boolean?": true,
+ "nilai kosong": null,
+
+ "angka besar": 1.2e+100,
+
+ "obyek": {
+ "komentar": "Most of your structure will come from objects.",
+
+ "array": [0, 1, 2, 3, "Array bisa berisi apapun.", 5],
+
+ "obyek lainnya": {
+ "komentar": "Obyek-obyek JSON dapat dibuat bersarang, sangat berguna."
+ }
+ },
+
+ "iseng-iseng": [
+ {
+ "sumber potassium": ["pisang"]
+ },
+ [
+ [1, 0, 0, 0],
+ [0, 1, 0, 0],
+ [0, 0, 1, "neo"],
+ [0, 0, 0, 1]
+ ]
+ ],
+
+ "gaya alternatif": {
+ "komentar": "lihat ini!"
+ , "posisi tanda koma": "tak masalah. selama sebelum nilai berikutnya, valid-valid saja"
+ , "komentar lainnya": "betapa asyiknya"
+ },
+
+ "singkat": "Dan Anda selesai! Sekarang Anda tahu apa saja yang disediakan oleh JSON."
+}
+```
diff --git a/id-id/xml-id.html.markdown b/id-id/xml-id.html.markdown
new file mode 100644
index 00000000..8e8cdf4e
--- /dev/null
+++ b/id-id/xml-id.html.markdown
@@ -0,0 +1,129 @@
+---
+language: xml
+filename: learnxml.xml
+contributors:
+ - ["João Farias", "https://github.com/JoaoGFarias"]
+translators:
+ - ["Rizky Luthfianto", "https://github.com/rilut"]
+---
+
+XML adalah bahasa markup yang dirancang untuk menyimpan dan mengirim data.
+
+Tidak seperti HTML, XML tidak menentukan bagaimana menampilkan atau format data, hanya membawanya.
+
+* Sintaks XML
+
+```xml
+<!-- Komentar di XML seperti ini -->
+
+<?xml version="1.0" encoding="UTF-8"?>
+<tokobuku>
+ <buku category="MEMASAK">
+ <judul lang="en">Everyday Italian</judul>
+ <pengarang>Giada De Laurentiis</pengarang>
+ <tahun>2005</tahun>
+ <harga>30.00</harga>
+ </buku>
+ <buku category="ANAK">
+ <judul lang="en">Harry Potter</judul>
+ <pengarang>J K. Rowling</pengarang>
+ <tahun>2005</tahun>
+ <harga>29.99</harga>
+ </buku>
+ <buku category="WEB">
+ <judul lang="en">Learning XML</judul>
+ <pengarang>Erik T. Ray</pengarang>
+ <tahun>2003</tahun>
+ <harga>39.95</harga>
+ </buku>
+</tokobuku>
+
+<!-- Di atas adalah contoh file XML biasa.
+   Dimulai dengan deklarasi, menginformasikan beberapa metadata (opsional).
+  
+   XML menggunakan struktur pohon. Di atas, simpul akar adalah 'tokobuku',
+ yang memiliki tiga node anak, para 'buku'. Node-node tersebut dapat memiliki
+ node-node anak, dan seterusnya ...
+  
+   Node dibuat menggunakan tag buka/tutup, dan node-node anak hanya
+ berada di antara tag buka dan tutup .-->
+
+
+<!-- XML membawa dua jenis data:
+   1 - Atribut -> Itu metadata tentang sebuah node.
+       Biasanya, parser XML menggunakan informasi ini untuk menyimpan data dengan
+ benar. Hal ini ditandai dengan muncul dengan format nama = "nilai" dalam pembukaan tag.
+   2 - Elemen -> Itu data yang murni.
+       Itulah yang parser akan mengambil dari file XML.
+       Elemen muncul antara tag membuka dan menutup.-->
+
+
+<!-- Di bawah ini, unsur dengan dua atribut-->
+<file type="gif" id="4293">komputer.gif</file>
+
+
+```
+
+* Dokumen yang well-formated & Validasi
+
+Sebuah dokumen XML disebut well-formated jika sintaksisnya benar.
+Namun, juga mungkin untuk mendefinisikan lebih banyak batasan dalam dokumen,
+menggunakan definisi dokumen, seperti DTD dan XML Schema.
+
+Sebuah dokumen XML yang mengikuti definisi dokumen disebut valid,
+jika sesuai dokumen itu.
+
+Dengan alat ini, Anda dapat memeriksa data XML di luar logika aplikasi.
+
+```xml
+
+<!-- Di bawah, Anda dapat melihat versi sederhana dari dokumen tokobuku,
+  dengan penambahan definisi DTD .-->
+
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catatan SYSTEM "tokobuku.dtd">
+<tokobuku>
+ <buku category="MEMASAK">
+ <judul >Everyday Italian</judul>
+ <harga>30.00</harga>
+ </buku>
+</tokobuku>
+
+<!-- This DTD could be something like:-->
+
+<!DOCTYPE catatan
+[
+<!ELEMENT tokobuku (buku+)>
+<!ELEMENT buku (judul,harga)>
+<!ATTLIST buku category CDATA "Sastra">
+<!ELEMENT judul (#PCDATA)>
+<!ELEMENT harga (#PCDATA)>
+]>
+
+
+<!-- DTD dimulai dengan deklarasi.
+  Berikut, node akar dinyatakan, membutuhkan 1 atau lebih anak node 'buku'.
+  Setiap 'buku' harus berisi tepat satu 'judul' dan 'harga' dan atribut
+  disebut 'kategori', dengan "Sastra" sebagai nilai default.
+  Node yang 'judul' dan 'harga' mengandung karakter data diurai .-->
+
+<!-- DTD dapat dideklarasikan di dalam file XML itu sendiri .-->
+
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE catatan
+[
+<!ELEMENT tokobuku (buku+)>
+<!ELEMENT buku (judul,harga)>
+<!ATTLIST buku category CDATA "Sastra">
+<!ELEMENT judul (#PCDATA)>
+<!ELEMENT harga (#PCDATA)>
+]>
+
+<tokobuku>
+ <buku category="MEMASAK">
+ <judul >Everyday Italian</judul>
+ <harga>30.00</harga>
+ </buku>
+</tokobuku>
+```
diff --git a/javascript.html.markdown b/javascript.html.markdown
index 588ea86d..ba2e8ce4 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -475,9 +475,6 @@ myNumber === myNumberObj; // = false
if (0){
// This code won't execute, because 0 is falsy.
}
-if (Number(0)){
- // This code *will* execute, because Number(0) is truthy.
-}
// However, the wrapper objects and the regular builtins share a prototype, so
// you can actually add functionality to a string, for instance.
diff --git a/markdown.html.markdown b/markdown.html.markdown
index 7541f904..6d19710f 100644
--- a/markdown.html.markdown
+++ b/markdown.html.markdown
@@ -232,6 +232,12 @@ can be anything so long as they are unique. -->
I want to type *this text surrounded by asterisks* but I don't want it to be
in italics, so I do this: \*this text surrounded by asterisks\*.
+<!-- Keyboard keys -->
+<!-- In Github Flavored Markdown, you can use a <kbd> tag to represent keyboard keys -->
+
+Your computer crashed? Try sending a
+<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Del</kbd>
+
<!-- Tables -->
<!-- Tables are only available in Github Flavored Markdown and are slightly
cumbersome, but if you really want it: -->
diff --git a/php.html.markdown b/php.html.markdown
index 5cc6a785..3fcce264 100644
--- a/php.html.markdown
+++ b/php.html.markdown
@@ -487,7 +487,7 @@ class MyClass
* Declaring class properties or methods as static makes them accessible without
* needing an instantiation of the class. A property declared as static can not
* be accessed with an instantiated class object (though a static method can).
-*/
+ */
public static function myStaticMethod()
{
diff --git a/xml.html.markdown b/xml.html.markdown
index fce1a3a4..059ea132 100644
--- a/xml.html.markdown
+++ b/xml.html.markdown
@@ -49,10 +49,11 @@ Unlike HTML, XML does not specify how to display or to format data, just carry i
<!-- XML carries two kind of data:
1 - Attributes -> That's metadata about a node.
Usually, the XML parser uses this information to store the data properly.
- It is characterized by appearing in parenthesis within the opening tag
+ It is characterized by appearing with the format name="value" within the opening
+ tag.
2 - Elements -> That's pure data.
That's what the parser will retrieve from the XML file.
- Elements appear between the open and close tags, without parenthesis. -->
+ Elements appear between the open and close tags. -->
<!-- Below, an element with two attributes -->