Skip to content

Commit 5a57016

Browse files
authored
Merge branch 'master' into tree-traversal-ruby
2 parents a9320a8 + 7fe5bfe commit 5a57016

File tree

47 files changed

+500
-423
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+500
-423
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,21 @@ RUN mkdir -p ~/swift && wget https://swift.org/builds/swift-5.5-release/ubuntu20
8282
ENV PATH=$PATH:~/swift/usr/bin
8383

8484
# Setup viml
85-
## ?
85+
# To run vim script commands use `/usr/bin/vim -c ":source %" <path_to_file>`
86+
RUN export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends vim
8687

8788
# Setup whitespace
8889
## ?
8990

9091
# Setup Elm
91-
## https://github.com/elm/compiler/blob/master/installers/linux/README.md
92+
RUN mkdir -p ~/elm && curl -L -o ~/elm/elm.gz https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz && \
93+
gunzip ~/elm/elm.gz && chmod +x ~/elm/elm
94+
ENV PATH=$PATH:~/elm
9295

9396
# Setup V
94-
## https://github.com/vlang/v/blob/master/doc/docs.md
95-
97+
RUN mkdir -p ~/vlang && wget https://github.com/vlang/v/releases/download/weekly.2021.44/v_linux.zip -O ~/vlang/vlang.zip && \
98+
unzip ~/vlang/vlang.zip -d ~/vlang
99+
ENV PATH=$PATH:~/vlang/v
96100

97101
# Install the packages that needed extra help
98102
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

contents/IFS/IFS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Here, instead of tracking children of children, we track a single individual tha
135135
{% sample lang="hs" %}
136136
[import:7-13, lang:"haskell"](code/haskell/IFS.hs)
137137
{% sample lang="cpp" %}
138-
[import:39-52, lang:"cpp"](code/c++/IFS.cpp)
138+
[import:39-52, lang:"cpp"](code/cpp/IFS.cpp)
139139
{% sample lang="py" %}
140140
[import:5-12, lang:"python"](code/python/IFS.py)
141141
{% sample lang="c" %}
@@ -221,7 +221,7 @@ In addition, we have written the chaos game code to take in a set of points so t
221221
{% sample lang="hs" %}
222222
[import, lang:"haskell"](code/haskell/IFS.hs)
223223
{% sample lang="cpp" %}
224-
[import, lang:"cpp"](code/c++/IFS.cpp)
224+
[import, lang:"cpp"](code/cpp/IFS.cpp)
225225
{% sample lang="py" %}
226226
[import, lang:"python"](code/python/IFS.py)
227227
{% sample lang="c" %}
File renamed without changes.

contents/approximate_counting/approximate_counting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ As we do not have any objects to count, we will instead simulate the counting wi
363363
{% sample lang="c" %}
364364
[import, lang:"c"](code/c/approximate_counting.c)
365365
{% sample lang="cpp" %}
366-
[import, lang:"cpp"](code/c++/approximate_counting.cpp)
366+
[import, lang:"cpp"](code/cpp/approximate_counting.cpp)
367367
{% sample lang="python" %}
368368
[import, lang:"python"](code/python/approximate_counting.py)
369369
{% endmethod %}

contents/barnsley/barnsley.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The biggest differences between the two code implementations is that the Barnsle
128128
{% sample lang="rs" %}
129129
[import, lang:"rust"](code/rust/src/main.rs)
130130
{% sample lang="cpp" %}
131-
[import, lang:"cpp"](code/c++/barnsley.cpp)
131+
[import, lang:"cpp"](code/cpp/barnsley.cpp)
132132
{% sample lang="c" %}
133133
[import, lang:"c"](code/c/barnsley.c)
134134
{% sample lang="java" %}

contents/computus/computus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ For now, we have the code outputting a tuple of $$d$$ and $$e$$, so users can us
315315
{% sample lang="c" %}
316316
[import, lang:"c"](code/c/gauss_easter.c)
317317
{% sample lang="cpp" %}
318-
[import, lang:"cpp"](code/c++/gauss_easter.cpp)
318+
[import, lang:"cpp"](code/cpp/gauss_easter.cpp)
319319
{% sample lang="lisp" %}
320320
[import, lang:"lisp"](code/clisp/gauss-easter.lisp)
321321
{% sample lang="nim" %}

0 commit comments

Comments
 (0)