From f324eb1cd8525a980d4f5022130d99c34da0163d Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Wed, 3 Oct 2018 02:57:29 +0200 Subject: [PATCH 1/3] Add emojicode to the editorconfig and "book.json". --- .editorconfig | 5 +++++ book.json | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.editorconfig b/.editorconfig index 87fd65028..fbc9a8842 100644 --- a/.editorconfig +++ b/.editorconfig @@ -109,3 +109,8 @@ indent_size = 2 [*.rs] indent_style = space indent_size = 4 + +# Emojicode +[*.emojic] +indent_style = space +indent_size = 2 diff --git a/book.json b/book.json index 94676c45b..ca4aa6cd9 100644 --- a/book.json +++ b/book.json @@ -139,6 +139,10 @@ { "lang": "f90", "name": "Fortran90" + }, + { + "lang": "emojic", + "name": "Emojicode" } ] } From bfd4ad6623b1d2db8181421c929e712784937ee0 Mon Sep 17 00:00:00 2001 From: Julian Schacher Date: Wed, 3 Oct 2018 03:05:02 +0200 Subject: [PATCH 2/3] Add Emojicode Bubble Sort. --- contents/bubble_sort/bubble_sort.md | 4 +++ .../code/emojicode/bubble_sort.emojic | 31 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 contents/bubble_sort/code/emojicode/bubble_sort.emojic diff --git a/contents/bubble_sort/bubble_sort.md b/contents/bubble_sort/bubble_sort.md index f18fb0e7a..bc98322f9 100644 --- a/contents/bubble_sort/bubble_sort.md +++ b/contents/bubble_sort/bubble_sort.md @@ -50,6 +50,8 @@ This means that we need to go through the vector $$\mathcal{O}(n^2)$$ times with [import:5-9, lang:"nim"](code/nim/bubble_sort.nim) {% sample lang="f90" %} [import:19-40, lang:"fortran"](code/fortran/bubble.f90) +{% sample lang="emojic" %} +[import:2-14, lang:"emojicode"](code/emojicode/bubble_sort.emojic) {% endmethod %} ... And that's it for the simplest bubble sort method. @@ -105,6 +107,8 @@ Trust me, there are plenty of more complicated algorithms that do precisely the [import, lang:"nim"](code/nim/bubble_sort.nim) {% sample lang="f90" %} [import, lang:"fortran"](code/fortran/bubble.f90) +{% sample lang="emojic" %} +[import, lang:"emojicode"](code/emojicode/bubble_sort.emojic) {% endmethod %}