diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 2040804..b5b0dfc 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,6 +1,9 @@ # Code owners .github/CODEOWNERS @exercism/maintainers-admin +# The code sample shown in the code check when people sign up to Exercism +docs/SIGN_UP_SNIPPET.txt @exercism/maintainers-admin + # Changes to `fetch-configlet` should be made in the `exercism/configlet` repo bin/fetch-configlet @exercism/maintainers-admin diff --git a/docs/SIGN_UP_SNIPPET.txt b/docs/SIGN_UP_SNIPPET.txt new file mode 100644 index 0000000..1cf8fd8 --- /dev/null +++ b/docs/SIGN_UP_SNIPPET.txt @@ -0,0 +1,14 @@ +variable matches + +: count-word + 0 matches ! + 2swap begin 2over search while + 1 matches +! + 1 /string + repeat + 2drop 2drop matches @ ; + +: report + 2dup 2>r count-word 2r> + [char] " emit type [char] " emit + ." appears " . ." times" ;