Skip to content

Commit 491a737

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

File tree

7 files changed

+151
-10
lines changed

7 files changed

+151
-10
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 1163 articles written by 260 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 1165 articles written by 260 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: 4 additions & 4 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 154 languages, of which 153 are tested, 1 is untestable, and 972 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 154 languages, of which 153 are tested, 1 is untestable, and 974 code snippets.
1010

1111
## Language Collections by Letter
1212

@@ -200,15 +200,15 @@ The 'K' collection contains 3 languages, of which 3 are tested, and 21 code snip
200200

201201
### L
202202

203-
The 'L' collection contains 9 languages, of which 9 are tested, and 32 code snippets.
203+
The 'L' collection contains 9 languages, of which 9 are tested, and 34 code snippets.
204204

205205
- [Latte](https://sampleprograms.io/languages/latte) (1 code snippet)
206206
- [Lily](https://sampleprograms.io/languages/lily) (1 code snippet)
207207
- [Lisp](https://sampleprograms.io/languages/lisp) (10 code snippets)
208208
- [Little](https://sampleprograms.io/languages/little) (1 code snippet)
209209
- [Livescript](https://sampleprograms.io/languages/livescript) (1 code snippet)
210-
- [Lobster](https://sampleprograms.io/languages/lobster) (1 code snippet)
211-
- [Lolcode](https://sampleprograms.io/languages/lolcode) (2 code snippets)
210+
- [Lobster](https://sampleprograms.io/languages/lobster) (2 code snippets)
211+
- [Lolcode](https://sampleprograms.io/languages/lolcode) (3 code snippets)
212212
- [Lua](https://sampleprograms.io/languages/lua) (13 code snippets)
213213
- [Lucee](https://sampleprograms.io/languages/lucee) (2 code snippets)
214214

docs/languages/lobster/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2023-08-14
33
featured-image: programming-languages.jpg
4-
last-modified: 2023-08-14
4+
last-modified: 2024-12-27
55
layout: default
66
tags:
77
- lobster
@@ -26,6 +26,7 @@ No 'Description' section available. [Please consider contributing](https://githu
2626

2727
## Articles
2828

29-
There is 1 article:
29+
There are 2 articles:
3030

31+
- [Baklava in Lobster](https://sampleprograms.io/projects/baklava/lobster)
3132
- [Hello World in Lobster](https://sampleprograms.io/projects/hello-world/lobster)

docs/languages/lolcode/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2018-05-11
33
featured-image: programming-languages.jpg
4-
last-modified: 2021-08-10
4+
last-modified: 2024-12-27
55
layout: default
66
tags:
77
- lolcode
@@ -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

31+
- [Baklava in Lolcode](https://sampleprograms.io/projects/baklava/lolcode)
3132
- [Fizz Buzz in Lolcode](https://sampleprograms.io/projects/fizz-buzz/lolcode)
3233
- [Hello World in Lolcode](https://sampleprograms.io/projects/hello-world/lolcode)

docs/projects/baklava/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Verify that the actual output matches the expected output
7979

8080
## Articles
8181

82-
There are 91 articles:
82+
There are 93 articles:
8383

8484
- [Baklava in Ada](https://sampleprograms.io/projects/baklava/ada)
8585
- [Baklava in Algol68](https://sampleprograms.io/projects/baklava/algol68)
@@ -109,6 +109,8 @@ There are 91 articles:
109109
- [Baklava in Julia](https://sampleprograms.io/projects/baklava/julia)
110110
- [Baklava in Kotlin](https://sampleprograms.io/projects/baklava/kotlin)
111111
- [Baklava in Lisp](https://sampleprograms.io/projects/baklava/lisp)
112+
- [Baklava in Lobster](https://sampleprograms.io/projects/baklava/lobster)
113+
- [Baklava in Lolcode](https://sampleprograms.io/projects/baklava/lolcode)
112114
- [Baklava in Lua](https://sampleprograms.io/projects/baklava/lua)
113115
- [Baklava in Lucee](https://sampleprograms.io/projects/baklava/lucee)
114116
- [Baklava in Malbolge](https://sampleprograms.io/projects/baklava/malbolge)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
authors:
3+
- rzuckerm
4+
date: 2024-12-27
5+
featured-image: baklava-in-every-language.jpg
6+
last-modified: 2024-12-27
7+
layout: default
8+
tags:
9+
- baklava
10+
- lobster
11+
title: Baklava in Lobster
12+
---
13+
14+
<!--
15+
AUTO-GENERATED -- PLEASE DO NOT EDIT!
16+
17+
Instead, please edit the following:
18+
19+
- sources/programs/baklava/lobster/how-to-implement-the-solution.md
20+
- sources/programs/baklava/lobster/how-to-run-the-solution.md
21+
22+
See .github/CONTRIBUTING.md for further details.
23+
-->
24+
25+
Welcome to the [Baklava](https://sampleprograms.io/projects/baklava) in [Lobster](https://sampleprograms.io/languages/lobster) 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+
```lobster
32+
for (21) n:
33+
let num_spaces = abs(n - 10)
34+
let num_stars = 21 - 2 * num_spaces
35+
let spaces = repeat_string(" ", num_spaces)
36+
let stars = repeat_string("*", num_stars)
37+
print "{spaces}{stars}"
38+
39+
```
40+
41+
{% endraw %}
42+
43+
Baklava in [Lobster](https://sampleprograms.io/languages/lobster) was written by:
44+
45+
- rzuckerm
46+
47+
If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).
48+
49+
## How to Implement the Solution
50+
51+
No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
52+
53+
## How to Run the Solution
54+
55+
No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
authors:
3+
- rzuckerm
4+
date: 2024-12-27
5+
featured-image: baklava-in-every-language.jpg
6+
last-modified: 2024-12-27
7+
layout: default
8+
tags:
9+
- baklava
10+
- lolcode
11+
title: Baklava in Lolcode
12+
---
13+
14+
<!--
15+
AUTO-GENERATED -- PLEASE DO NOT EDIT!
16+
17+
Instead, please edit the following:
18+
19+
- sources/programs/baklava/lolcode/how-to-implement-the-solution.md
20+
- sources/programs/baklava/lolcode/how-to-run-the-solution.md
21+
22+
See .github/CONTRIBUTING.md for further details.
23+
-->
24+
25+
Welcome to the [Baklava](https://sampleprograms.io/projects/baklava) in [Lolcode](https://sampleprograms.io/languages/lolcode) 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+
```lolcode
32+
HAI 1.2
33+
34+
BTW Function to output a string n times
35+
HOW IZ I OUTPUT_N_TIMES_FOR YR string AN YR n
36+
IM IN YR loop UPPIN YR i TIL BOTH SAEM i AN BIGGR OF i AN n
37+
VISIBLE ":{string}"!
38+
IM OUTTA YR loop
39+
IF U SAY SO
40+
41+
BTW For n = 0 to 20
42+
IM IN YR loop UPPIN YR n TIL BOTH SAEM n AN BIGGR OF n AN 21
43+
BTW num_spaces = abs(n - 10)
44+
I HAS A num_spaces ITZ DIFF OF n AN 10
45+
DIFFRINT num_spaces AN BIGGR OF 0 AN num_spaces
46+
O RLY?
47+
YA RLY
48+
num_spaces R PRODUKT OF -1 AN num_spaces
49+
OIC
50+
51+
BTW num_stars = 21 - 2 * num_spaces
52+
I HAS A num_stars ITZ DIFF OF 21 AN PRODUKT OF 2 AN num_spaces
53+
54+
BTW Output " " num_spaces times
55+
I IZ OUTPUT_N_TIMES_FOR YR " " AN YR num_spaces MKAY
56+
57+
BTW Output "*" num_stars times
58+
I IZ OUTPUT_N_TIMES_FOR YR "*" AN YR num_stars MKAY
59+
60+
BTW Output newline
61+
VISIBLE ""
62+
IM OUTTA YR loop
63+
64+
KTHXBYE
65+
66+
```
67+
68+
{% endraw %}
69+
70+
Baklava in [Lolcode](https://sampleprograms.io/languages/lolcode) was written by:
71+
72+
- rzuckerm
73+
74+
If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).
75+
76+
## How to Implement the Solution
77+
78+
No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
79+
80+
## How to Run the Solution
81+
82+
No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

0 commit comments

Comments
 (0)