Skip to content

Commit f7296ea

Browse files
committed
Generated Sample Programs website automatically
on-behalf-of: @TheRenegadeCoder <jeremy.grifski@therenegadecoder.com>
1 parent 791d877 commit f7296ea

File tree

5 files changed

+77
-17
lines changed

5 files changed

+77
-17
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ layout: default
55
title: Sample Programs in Every Language
66
---
77

8-
Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1540 articles written by 295 authors.
8+
Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1541 articles written by 296 authors.
99

1010
If you'd like to contribute to this growing collection, check out our [contributing document](https://github.com/TheRenegadeCoder/sample-programs/blob/master/.github/CONTRIBUTING.md) for more information. In addition, you can explore our documentation which is organized by [project](/projects) and by [language](/languages). If you don't find what you're look for, check out our list of related [open-source projects](/related). Finally, if code isn't your thing but you'd still like to help, there are plenty of other ways to [support the project](https://therenegadecoder.com/updates/5-ways-you-can-support-the-renegade-coder/).

docs/languages/index.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ layout: default
66
title: Programming Languages
77
---
88

9-
Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 157 languages, of which 156 are tested, 1 is untestable, and 1345 code snippets.
9+
Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 157 languages, of which 156 are tested, 1 is untestable, and 1346 code snippets.
1010

1111
## Language Breakdown
1212

@@ -54,7 +54,7 @@ Here are the percentages for each language in the collection:
5454

5555
<tr>
5656
<td class="right nowrap">C</td>
57-
<td class="right">4.37%</td>
57+
<td class="right">4.36%</td>
5858
<td class="bar-graph"><div style="width: 61.81%; background-color: #555555;"></div></td>
5959
</tr>
6060

@@ -210,7 +210,7 @@ Here are the percentages for each language in the collection:
210210

211211
<tr>
212212
<td class="right nowrap">Lua</td>
213-
<td class="right">0.64%</td>
213+
<td class="right">0.63%</td>
214214
<td class="bar-graph"><div style="width: 8.99%; background-color: #000080;"></div></td>
215215
</tr>
216216

@@ -814,6 +814,12 @@ Here are the percentages for each language in the collection:
814814
<td class="bar-graph"><div style="width: 0.35%; background-color: #FFF3D7;"></div></td>
815815
</tr>
816816

817+
<tr>
818+
<td class="right nowrap">Nit</td>
819+
<td class="right">0.02%</td>
820+
<td class="bar-graph"><div style="width: 0.35%; background-color: #009917;"></div></td>
821+
</tr>
822+
817823
<tr>
818824
<td class="right nowrap">Spry</td>
819825
<td class="right">0.02%</td>
@@ -928,12 +934,6 @@ Here are the percentages for each language in the collection:
928934
<td class="bar-graph"><div style="width: 0.16%; background-color: #82937F;"></div></td>
929935
</tr>
930936

931-
<tr>
932-
<td class="right nowrap">Nit</td>
933-
<td class="right">0.01%</td>
934-
<td class="bar-graph"><div style="width: 0.15%; background-color: #009917;"></div></td>
935-
</tr>
936-
937937
<tr>
938938
<td class="right nowrap">Ring</td>
939939
<td class="right">0.01%</td>
@@ -1185,11 +1185,11 @@ The 'M' collection contains 7 languages, of which 6 are tested, 1 is untestable,
11851185

11861186
### N
11871187

1188-
The 'N' collection contains 3 languages, of which 3 are tested, and 11 code snippets.
1188+
The 'N' collection contains 3 languages, of which 3 are tested, and 12 code snippets.
11891189

11901190
- [Never](https://sampleprograms.io/languages/never) (3 code snippets)
11911191
- [Nim](https://sampleprograms.io/languages/nim) (6 code snippets)
1192-
- [Nit](https://sampleprograms.io/languages/nit) (2 code snippets)
1192+
- [Nit](https://sampleprograms.io/languages/nit) (3 code snippets)
11931193

11941194
&laquo; [Return to Top](#language-collections-by-letter) &raquo;
11951195

docs/languages/nit/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2021-05-25
33
featured-image: programming-languages.jpg
4-
last-modified: 2024-12-23
4+
last-modified: 2025-10-30
55
layout: default
66
tags:
77
- nit
@@ -26,7 +26,8 @@ No 'Description' section available. [Please consider contributing](https://githu
2626

2727
## Articles
2828

29-
There are 2 articles:
29+
There are 3 articles:
3030

3131
- [Baklava in Nit](https://sampleprograms.io/projects/baklava/nit)
32-
- [Hello World in Nit](https://sampleprograms.io/projects/hello-world/nit)
32+
- [Hello World in Nit](https://sampleprograms.io/projects/hello-world/nit)
33+
- [Reverse String in Nit](https://sampleprograms.io/projects/reverse-string/nit)

docs/projects/reverse-string/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2018-04-12
33
featured-image: reverse-string-in-every-language.jpg
4-
last-modified: 2025-10-15
4+
last-modified: 2025-10-30
55
layout: default
66
tags:
77
- reverse-string
@@ -70,7 +70,7 @@ In this section, we specify the set of tests specific to Reverse String.
7070

7171
## Articles
7272

73-
There are 55 articles:
73+
There are 56 articles:
7474

7575
- [Reverse String in Algol68](https://sampleprograms.io/projects/reverse-string/algol68)
7676
- [Reverse String in Awk](https://sampleprograms.io/projects/reverse-string/awk)
@@ -102,6 +102,7 @@ There are 55 articles:
102102
- [Reverse String in Moonscript](https://sampleprograms.io/projects/reverse-string/moonscript)
103103
- [Reverse String in Never](https://sampleprograms.io/projects/reverse-string/never)
104104
- [Reverse String in Nim](https://sampleprograms.io/projects/reverse-string/nim)
105+
- [Reverse String in Nit](https://sampleprograms.io/projects/reverse-string/nit)
105106
- [Reverse String in Objective C](https://sampleprograms.io/projects/reverse-string/objective-c)
106107
- [Reverse String in Octave](https://sampleprograms.io/projects/reverse-string/octave)
107108
- [Reverse String in Odin](https://sampleprograms.io/projects/reverse-string/odin)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
authors:
3+
- liliann19
4+
date: 2025-10-30
5+
featured-image: reverse-string-in-every-language.jpg
6+
last-modified: 2025-10-30
7+
layout: default
8+
tags:
9+
- nit
10+
- reverse-string
11+
title: Reverse String in Nit
12+
---
13+
14+
<!--
15+
AUTO-GENERATED -- PLEASE DO NOT EDIT!
16+
17+
Instead, please edit the following:
18+
19+
- sources/programs/reverse-string/nit/how-to-implement-the-solution.md
20+
- sources/programs/reverse-string/nit/how-to-run-the-solution.md
21+
22+
See .github/CONTRIBUTING.md for further details.
23+
-->
24+
25+
Welcome to the [Reverse String](https://sampleprograms.io/projects/reverse-string) in [Nit](https://sampleprograms.io/languages/nit) page! Here, you'll find the source code for this program as well as a description of how the program works.
26+
27+
## Current Solution
28+
29+
{% raw %}
30+
31+
```nit
32+
if args.length > 0 then
33+
var word = args[0]
34+
var reversed = ""
35+
var i = word.length - 1
36+
while i >= 0 do
37+
reversed += word.chars[i].to_s
38+
i -= 1
39+
end
40+
printn reversed
41+
end
42+
```
43+
44+
{% endraw %}
45+
46+
Reverse String in [Nit](https://sampleprograms.io/languages/nit) was written by:
47+
48+
- liliann19
49+
50+
If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).
51+
52+
## How to Implement the Solution
53+
54+
No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
55+
56+
## How to Run the Solution
57+
58+
No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

0 commit comments

Comments
 (0)