Skip to content

Commit b7ed8e5

Browse files
Wesley-Arringtonleios
authored andcommitted
Getting rid of language headlines (#246)
1 parent 6dcdf85 commit b7ed8e5

File tree

12 files changed

+1
-79
lines changed

12 files changed

+1
-79
lines changed

chapters/algorithms/euclidean_algorithm/euclidean_algorithm.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,46 +78,34 @@ The Euclidean Algorithm is truly fundamental to many other algorithms throughout
7878

7979
{% method %}
8080
{% sample lang="c" %}
81-
### C
8281
[import, lang="c_cpp"](code/c/euclidean_example.c)
8382
{% sample lang="cs" %}
84-
### C# #
8583
EuclideanAlgorithm.cs
8684
[import, lang="csharp"](code/csharp/EuclideanAlgorithm.cs)
8785
Program.cs
8886
[import, lang="csharp"](code/csharp/Program.cs)
8987
{% sample lang="clj" %}
90-
### Clojure
9188
[import 2-20, lang="clojure"](code/clojure/euclidean_example.clj)
9289
{% sample lang="cpp" %}
93-
### Cpp
9490
[import, lang="c_cpp"](code/c++/euclidean.cpp)
9591
{% sample lang="java" %}
96-
### Java
9792
EuclideanAlgo.java
9893
[import, lang="java"](code/java/EuclideanAlgo.java)
9994
MainClass.java
10095
[import, lang="java"](code/java/MainClass.java)
10196
{% sample lang="js" %}
102-
### JavaScript
10397
[import, lang="javascript"](code/javascript/euclidean_example.js)
10498
{% sample lang="py" %}
105-
### Python
10699
[import, lang="python"](code/python/euclidean_example.py)
107100
{% sample lang="haskell" %}
108-
### Haskell
109101
[import, lang="haskell"](code/haskell/euclidean_example.hs)
110102
{% sample lang="rs" %}
111-
### Rust
112103
[import, lang="rust"](code/rust/euclidean_example.rs)
113104
{% sample lang="ml" %}
114-
### Ocaml
115105
[import, lang="ocaml"](code/ocaml/euclidean_example.ml)
116106
{% sample lang="go" %}
117-
### Go
118107
[import, lang="golang"](code/go/euclidean.go)
119108
{% sample lang="swift" %}
120-
### Swift
121109
[import, lang="swift"](code/swift/euclidean_algorithm.swift)
122110
{% endmethod %}
123111

chapters/algorithms/forward_euler_method/forward_euler_method.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,23 @@ So, this time, let's remove ourselves from any physics and instead solve the fol
9999

100100
{% method %}
101101
{% sample lang="jl" %}
102-
### Julia
103102
[import, lang:"julia"](code/julia/euler.jl)
104103
{% sample lang="c" %}
105-
### C
106104
[import, lang:"c_cpp"](code/c/euler.c)
107105
{% sample lang="cpp" %}
108-
### C++
109106
[import, lang:"c_cpp"](code/c++/euler.cpp)
110107
{% sample lang="rs" %}
111-
### Rust
112108
[import, lang:"rust"](code/rust/euler.rs)
113109
{% sample lang="elm" %}
114-
### Elm
115110
[import:44-54, lang:"elm"](code/elm/euler.elm)
116111
[import:193-210, lang:"elm"](code/elm/euler.elm)
117112

118113
Full code for the visualization follows:
119114
[import, lang:"elm"](code/elm/euler.elm)
120115

121116
{% sample lang="py" %}
122-
### Python
123117
[import, lang:"python"](code/python/euler.py)
124118
{% sample lang="hs" %}
125-
### Haskell
126119
[import, lang:"haskell"](code/haskell/euler.hs)
127120
{% endmethod %}
128121

chapters/algorithms/gaussian_elimination/gaussian_elimination.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,10 @@ Now, as for what's next... Well, we are in for a treat! The above algorithm clea
286286

287287
{% method %}
288288
{% sample lang="jl" %}
289-
### Julia
290289
[import, lang:"julia"](code/julia/gaussian_elimination.jl)
291290
{% sample lang="c" %}
292-
### C
293291
[import, lang:"c_cpp"](code/c/gaussian_elimination.c)
294292
{% sample lang="rs" %}
295-
### Rust
296293
[import, lang:"rust"](code/rust/gaussian_elimination.rs)
297294
{% endmethod %}
298295

chapters/algorithms/graham_scan/graham_scan.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,12 @@ In the end, the code should look something like this:
5252

5353
{% method %}
5454
{% sample lang="jl" %}
55-
### Julia
5655
[import, lang:"julia"](code/julia/graham.jl)
5756
{% sample lang="hs" %}
58-
### Haskell
5957
[import, lang:"haskell"](code/haskell/grahamScan.hs)
6058
{% sample lang="c" %}
61-
### C
6259
[import, lang:"c_cpp"](code/c/graham.c)
6360
{% sample lang="js" %}
64-
### Javascript
6561
[import, lang:"javascript"](code/javascript/graham-scan.js)
6662
{% endmethod %}
6763

chapters/algorithms/huffman_encoding/huffman_encoding.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,37 +55,27 @@ Whether you use a stack or straight-up recursion also depends on the language, b
5555

5656
{% method %}
5757
{% sample lang="jl" %}
58-
### Julia
5958
[import, lang:"julia"](code/julia/huffman.jl)
6059
{% sample lang="rs" %}
61-
### Rust
6260
[import, lang:"rust"](code/rust/huffman.rs)
6361
{% sample lang="c" %}
64-
### C
6562
[import, lang:"c_cpp"](code/c/huffman.c)
6663
{% sample lang="hs" %}
67-
### Haskell
6864
[import, lang:"haskell"](code/haskell/huffman.hs)
6965
{% sample lang="cs" %}
70-
### C# #
7166
HuffmanCoding.cs
7267
[import, lang:"csharp"](code/csharp/HuffmanCoding.cs)
7368
Program.cs
7469
[import, lang:"csharp"](code/csharp/Program.cs)
7570
{% sample lang="cpp" %}
76-
### C++
7771
[import, lang:"c_cpp"](code/c++/huffman.cpp)
7872
{% sample lang="clj" %}
79-
### Clojure
8073
[import 2-117, lang:"clojure"](code/clojure/huffman.clj)
8174
{% sample lang="py" %}
82-
### Python
8375
[import, lang:"python"](code/python/huffman.py)
8476
{% sample lang="js" %}
85-
### JavaScript
8677
[import, lang:"javascript"](code/javascript/huffman.js)
8778
{% sample lang="java" %}
88-
### Java
8979
[import, lang:"java"](code/java/huffman.java)
9080
{% endmethod %}
9181

chapters/algorithms/jarvis_march/jarvis_march.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,19 @@ Since this algorithm, there have been many other algorithms that have advanced t
2424

2525
{% method %}
2626
{% sample lang="cs" %}
27-
### C# #
2827
JarvisMarch.cs
2928
[import, lang="csharp"](code/csharp/JarvisMarch.cs)
3029
Program.cs
3130
[import, lang="csharp"](code/csharp/Program.cs)
3231
{% sample lang="jl" %}
33-
### Julia
3432
[import, lang:"julia"](code/julia/jarvis.jl)
3533
{% sample lang="hs" %}
36-
### Haskell
3734
[import, lang:"haskell"](code/haskell/jarvisMarch.hs)
3835
{% sample lang="c" %}
39-
### C
4036
[import, lang:"c_cpp"](code/c/jarvis_march.c)
4137
{% sample lang="js" %}
42-
### JavaScript
4338
[import, lang:"javascript"](code/javascript/jarvis-march.js)
4439
{% sample lang="py" %}
45-
### Python
4640
[import, lang:"python"](code/py/jarvisMarch.py)
4741
{% endmethod %}
4842

chapters/algorithms/monte_carlo_integration/monte_carlo_integration.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,37 +91,26 @@ Feel free to submit your version via pull request, and thanks for reading!
9191

9292
{% method %}
9393
{% sample lang="jl" %}
94-
### Julia
9594
[import, lang:"julia"](code/julia/monte_carlo.jl)
9695
{% sample lang="clj" %}
97-
### Clojure
9896
[import, lang:"clojure"](code/clojure/monte_carlo.clj)
9997
{% sample lang="c" %}
100-
### C
10198
[import, lang:"c_cpp"](code/c/monte_carlo.c)
10299
{% sample lang="js" %}
103-
### Javascript
104100
[import, lang:"javascript"](code/javascript/monte_carlo.js)
105101
{% sample lang="hs" %}
106-
### Haskell
107102
[import, lang:"haskell"](code/haskell/monteCarlo.hs)
108103
{%sample lang="rs" %}
109-
### Rust
110104
[import, lang:"rust"](code/rust/monte_carlo.rs)
111105
{%sample lang="d" %}
112-
### D
113106
[import, lang:"d"](code/d/monte_carlo.d)
114107
{%sample lang="go" %}
115-
### Go
116108
[import, lang:"golang"](code/go/monteCarlo.go)
117109
{%sample lang="r" %}
118-
### R
119110
[import, lang:"r"](code/r/monte_carlo.R)
120111
{% sample lang="java" %}
121-
### Java
122112
[import, lang:"java"](code/java/MonteCarlo.java)
123113
{% sample lang="swift" %}
124-
### Swift
125114
[import, lang:"swift"](code/swift/monte_carlo.swift)
126115
{% endmethod %}
127116

chapters/algorithms/split-operator_method/split-operator_method.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ The Split-Operator method is one of the most commonly used quantum simulation al
8484
## Example Code
8585
{% method %}
8686
{% sample lang="jl" %}
87-
### Julia
8887
[import, lang:"julia"](code/julia/split_op.jl)
8988
{% endmethod %}
9089

chapters/algorithms/stable_marriage_problem/stable_marriage_problem.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,18 @@ I am incredibly interested to see what you guys do and how you implement the alg
2222

2323
{% method %}
2424
{% sample lang="jl" %}
25-
### Julia
2625
[import, lang:"julia"](code/julia/stable_marriage.jl)
2726
{% sample lang="py" %}
28-
### Python
2927
[import, lang:"python"](code/python/stable_marriage.py)
3028
{% sample lang="hs" %}
31-
### Haskell
3229
[import, lang:"haskell"](code/haskell/stableMarriage.hs)
3330
{% sample lang="c" %}
34-
### C
3531
[import, lang:"c_cpp"](code/c/stable_marriage.c)
3632
{% sample lang="cpp" %}
37-
### C++
3833
[import, lang:"c_cpp"](code/c++/stable_marriage.cpp)
3934
{% sample lang="js" %}
40-
### JavaScript
4135
[import, lang:"javascript"](code/javascript/stable-marriage.js)
4236
{% sample lang="cs" %}
43-
### C# #
4437
GaleShapleyAlgorithm.cs
4538
[import, lang:"csharp"](code/csharp/GaleShapleyAlgorithm.cs)
4639
Person.cs

chapters/algorithms/thomas_algorithm/thomas_algorithm.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ $$
3939

4040
{% method %}
4141
{% sample lang="jl" %}
42-
### Julia
4342
[import, lang:"julia"](code/julia/thomas.jl)
4443
{% sample lang="c" %}
45-
### C
4644
[import, lang:"c_cpp"](code/c/thomas.c)
4745
{% sample lang="py" %}
48-
### Python
4946
[import, lang:"python"](code/python/thomas.py)
5047
{% endmethod %}
5148

chapters/algorithms/tree_traversal/tree_traversal.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,37 +198,30 @@ This has not been implemented in your chosen language, so here is the Julia code
198198
## Example Code
199199
{% method %}
200200
{% sample lang="jl" %}
201-
### Julia
202201
[import, lang:"julia"](code/julia/Tree.jl)
203202
{% sample lang="cpp" %}
204-
### C++
205203
[import, lang:"c_cpp"](code/c++/tree_example.cpp)
206204
{% sample lang="cs" %}
207-
### C# #
208205
Tree.cs
209206
[import, lang:"csharp"](code/csharp/Tree.cs)
210207
Program.cs
211208
[import, lang:"csharp"](code/csharp/Program.cs)
212209
{% sample lang="c" %}
213-
### C
214210
utility.h
215211
[import, lang:"c_cpp"](code/c/utility.h)
216212
tree_traversal.c
217213
[import, lang:"c_cpp"](code/c/tree_traversal.c)
218214
{% sample lang="java" %}
219-
### Java
220215
Tree.java
221216
[import, lang:"java"](code/java/Tree.java)
222217
MainClass.java
223218
[import, lang:"java"](code/java/MainClass.java)
224219
{% sample lang="js" %}
225-
### JavaScript
226220
[import, lang:"javascript"](code/javascript/tree.js)
227221
{% sample lang="py" %}
228-
### Python
229222
[import, lang:"python"](code/python/Tree_example.py)
230223
{% sample lang="scratch" %}
231-
### Scratch
224+
232225
<p>
233226
<img class="center" src="code/scratch/scratch_tree.png" />
234227
</p>

chapters/algorithms/verlet_integration/verlet_integration.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,25 +170,18 @@ Both of these methods work simply by iterating timestep-by-timestep and can be w
170170

171171
{% method %}
172172
{% sample lang="jl" %}
173-
### Julia
174173
[import, lang:"julia"](code/julia/verlet.jl)
175174
{% sample lang="cpp" %}
176-
### C++
177175
[import, lang:"c_cpp"](code/c++/verlet.cpp)
178176
{% sample lang="c" %}
179-
### C
180177
[import, lang:"c_cpp"](code/c/verlet.c)
181178
{% sample lang="java" %}
182-
### Java
183179
[import, lang:"java"](code/java/verlet.java)
184180
{% sample lang="py" %}
185-
### Python
186181
[import, lang:"python"](code/python/verlet.py)
187182
{% sample lang="hs" %}
188-
### Haskell
189183
[import, lang:"haskell"](code/haskell/verlet.hs)
190184
{% sample lang="scratch" %}
191-
### Scratch
192185
Submitted by Jie
193186
<p>
194187
<img class="center" src="code/scratch/verlet_scratch.png" />

0 commit comments

Comments
 (0)