-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
169 lines (149 loc) · 6.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
---
layout: default
---
<div class="golden-rule">
<h2>The Golden rule</h2>
<p>“Every line of code should appear to be written by a single person, no matter the number of contributors.”</p>
</div>
<div class="heading" id="toc">
<h2>Table of contents</h2>
</div>
<div class="section">
<div class="toc">
<div class="col">
<h4><a href="#html">HTML</a></h4>
<ul>
<li><a href="#html-syntax">Syntax</a></li>
<li><a href="#html-doctype">HTML5 doctype</a></li>
<li><a href="#html-lang">Language attribute</a></li>
<li><a href="#html-encoding">Character encoding</a></li>
<li><a href="#html-ie-compatibility-mode">Internet Explorer compatibility mode</a></li>
<li><a href="#html-style-script">CSS and JavaScript includes</a></li>
<li><a href="#html-practicality">Practicality over purity</a></li>
<li><a href="#html-attribute-order">Attribute order</a></li>
<li><a href="#html-boolean-attributes">Boolean attributes</a></li>
<li><a href="#html-reducing-markup">Reducing markup</a></li>
<li><a href="#html-javascript">JavaScript generated markup</a></li>
</ul>
</div>
<div class="col">
<h4><a href="#sass">Sass</a></h4>
<ul>
<li><a href="#sass-syntax">Syntax</a></li>
<li><a href="#sass-selectors">Selectors</a></li>
<li><a href="#sass-nesting">Nesting</a></li>
<li><a href="#sass-variables">Variables</a></li>
<li><a href="#sass-includes-extends">@includes vs @extends</a></li>
<li><a href="#sass-comments">Comments</a></li>
<li><a href="#sass-media-queries">Media query placement</a></li>
<li><a href="#sass-single-declarations">Rules with single declarations</a></li>
<li><a href="#sass-shorthand">Shorthand notation</a></li>
<li><a href="#sass-classes">Classes</a></li>
<li><a href="#sass-organization">Organization</a></li>
<li><a href="#sass-maintainability">Maintainability</a></li>
<li><a href="#sass-declaration-order">Declaration order</a></li>
</ul>
</div>
<div class="col">
<h4><a href="#javascript">JavaScript (ES6)</a></h4>
<ul>
<li><a href="#javascript-whitespace">Syntax</a></li>
<li><a href="#javascript-variables">Variables</a></li>
<li><a href="#javascript-comparison">Comparison</a></li>
<li><a href="#javascript-typecasting">Type casting</a></li>
<li><a href="#javascript-naming">Naming conventions</a></li>
<li><a href="#javascript-comments">Comments</a></li>
<li><a href="#javascript-destructuring">Destructuring</a></li>
<li><a href="#javascript-modules">Modules</a></li>
<li><a href="#javascript-strings">Strings</a></li>
<li><a href="#javascript-arrays">Arrays</a></li>
<li><a href="#javascript-functions">Functions</a></li>
<li><a href="#javascript-objects">Objects</a></li>
<li><a href="#javascript-classes">Classes</a></li>
<li><a href="#javascript-events">Events</a></li>
<li><a href="#javascript-jquery">jQuery</a></li>
</ul>
</div>
<div class="col">
<h4><a href="#liquid">Liquid</a></h4>
<ul>
<li><a href="#liquid-intro">An Introduction to Shopify</a></li>
<li><a href="#liquid-syntax">Syntax</a></li>
<li><a href="#liquid-whitespace">Whitespace in Expressions and Statements</a></li>
<li><a href="#liquid-variables">Variables</a></li>
<li><a href="#liquid-debugging">Debugging Tips</a></li>
</ul>
</div>
</div>
</div>
<div class="section">
<div class="toc">
<div class="col">
<h4><a href="#php">PHP</a></h4>
<ul>
<li><a href="#php-introduction">Introduction</a></li>
<li><a href="#php-basics">Basics</a></li>
<li><a href="#php-namespace-use">Namespace and Use Declarations</a></li>
<li><a href="#php-methods-functions">Methods and Function Calls</a></li>
<li><a href="#php-control-structures">Control Structures</a></li>
<li><a href="#php-closures">Closures</a></li>
</ul>
</div>
<div class="col">
<h4><a href="#php-wp">WordPress</a></h4>
<ul>
<li><a href="#php-wp-introduction">Introduction</a></li>
<li><a href="#php-wp-quotes">Single and Double Quotes</a></li>
<li><a href="#php-wp-indentation">Indentation</a></li>
<li><a href="#php-wp-brace-style">Brace Style</a></li>
<li><a href="#php-wp-function-guards">Function Guards</a></li>
<li><a href="#php-wp-regular-expressions">Regular Expressions</a></li>
<li><a href="#php-wp-spaces">Space Usage</a></li>
<li><a href="#php-wp-sql-statements">Formatting SQL statements</a></li>
<li><a href="#php-wp-database-queries">Database Queries</a></li>
<li><a href="#php-wp-naming">Naming Conventions</a></li>
<li><a href="#php-wp-self-explanatory">Self-Explanatory Flag Values for Function Arguments</a></li>
<li><a href="#php-wp-ternary-operator">Ternary Operator</a></li>
<li><a href="#php-wp-yoda-conditions">Yoda Conditions</a></li>
<li><a href="#php-wp-miscellaneous">Miscellaneous</a></li>
</ul>
</div>
<div class="col">
<h4><a href="#coffee">CoffeeScript</a></h4>
<ul>
<li><a href="#coffee-code-layout">Code layout</a></li>
<li><a href="#coffee-imports">Module Imports</a></li>
<li><a href="#coffee-whitespace">Whitespace in Expressions and Statements</a></li>
<li><a href="#coffee-comments">Comments</a></li>
<li><a href="#coffee-naming">Naming Conventions</a></li>
<li><a href="#coffee-functions">Functions</a></li>
<li><a href="#coffee-strings">Strings</a></li>
<li><a href="#coffee-conditionals">Conditionals</a></li>
<li><a href="#coffee-looping">Looping and Comprehensions</a></li>
<li><a href="#coffee-annotations">Annotations</a></li>
<li><a href="#coffee-miscellaneous">Miscellaneous</a></li>
</ul>
</div>
<div class="col">
<h4><a href="#git">Git</a></h4>
<ul>
<li><a href="#git-introduction">An introduction to Git</a></li>
<li><a href="#git-repos">Repo Naming</a></li>
<li><a href="#git-setup">Setup</a></li>
<li><a href="#git-branches">Branches and Pull Requests</a></li>
<li><a href="#git-commits">Commits</a></li>
<li><a href="#git-pushing">Pushing</a></li>
<li><a href="#git-merging">Merging</a></li>
<li><a href="#git-tagging">Tagging and Releasing</a></li>
</ul>
</div>
</div>
</div>
{% include section-html.html %}
{% include section-sass.html %}
{% include section-javascript.html %}
{% include section-liquid.html %}
{% include section-php-apps.html %}
{% include section-php-wordpress.html %}
{% include section-coffeescript.html %}
{% include section-git.html %}