Skip to content

Commit 6c9395f

Browse files
committed
Generated Sample Programs website automatically
on-behalf-of: @TheRenegadeCoder <[email protected]>
1 parent af2e3fc commit 6c9395f

File tree

5 files changed

+76
-7
lines changed

5 files changed

+76
-7
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 1150 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 1151 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: 3 additions & 3 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 959 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 960 code snippets.
1010

1111
## Language Collections by Letter
1212

@@ -253,7 +253,7 @@ The 'O' collection contains 7 languages, of which 7 are tested, and 33 code snip
253253

254254
### P
255255

256-
The 'P' collection contains 14 languages, of which 14 are tested, and 128 code snippets.
256+
The 'P' collection contains 14 languages, of which 14 are tested, and 129 code snippets.
257257

258258
- [Pascal](https://sampleprograms.io/languages/pascal) (10 code snippets)
259259
- [Perl](https://sampleprograms.io/languages/perl) (18 code snippets)
@@ -265,7 +265,7 @@ The 'P' collection contains 14 languages, of which 14 are tested, and 128 code s
265265
- [Pinecone](https://sampleprograms.io/languages/pinecone) (3 code snippets)
266266
- [Pony](https://sampleprograms.io/languages/pony) (2 code snippets)
267267
- [Powershell](https://sampleprograms.io/languages/powershell) (4 code snippets)
268-
- [Prolog](https://sampleprograms.io/languages/prolog) (2 code snippets)
268+
- [Prolog](https://sampleprograms.io/languages/prolog) (3 code snippets)
269269
- [Purescript](https://sampleprograms.io/languages/purescript) (1 code snippet)
270270
- [Pyret](https://sampleprograms.io/languages/pyret) (4 code snippets)
271271
- [Python](https://sampleprograms.io/languages/python) (37 code snippets)

docs/languages/prolog/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2023-06-10
33
featured-image: programming-languages.jpg
4-
last-modified: 2024-05-26
4+
last-modified: 2024-12-21
55
layout: default
66
tags:
77
- prolog
@@ -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 Prolog](https://sampleprograms.io/projects/baklava/prolog)
3132
- [Fizz Buzz in Prolog](https://sampleprograms.io/projects/fizz-buzz/prolog)
3233
- [Hello World in Prolog](https://sampleprograms.io/projects/hello-world/prolog)

docs/projects/baklava/index.md

Lines changed: 2 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 78 articles:
82+
There are 79 articles:
8383

8484
- [Baklava in Ada](https://sampleprograms.io/projects/baklava/ada)
8585
- [Baklava in Algol68](https://sampleprograms.io/projects/baklava/algol68)
@@ -122,6 +122,7 @@ There are 78 articles:
122122
- [Baklava in Pinecone](https://sampleprograms.io/projects/baklava/pinecone)
123123
- [Baklava in Pony](https://sampleprograms.io/projects/baklava/pony)
124124
- [Baklava in Powershell](https://sampleprograms.io/projects/baklava/powershell)
125+
- [Baklava in Prolog](https://sampleprograms.io/projects/baklava/prolog)
125126
- [Baklava in Pyret](https://sampleprograms.io/projects/baklava/pyret)
126127
- [Baklava in Python](https://sampleprograms.io/projects/baklava/python)
127128
- [Baklava in Quackery](https://sampleprograms.io/projects/baklava/quackery)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
authors:
3+
- rzuckerm
4+
date: 2024-12-21
5+
featured-image: baklava-in-every-language.jpg
6+
last-modified: 2024-12-21
7+
layout: default
8+
tags:
9+
- baklava
10+
- prolog
11+
title: Baklava in Prolog
12+
---
13+
14+
<!--
15+
AUTO-GENERATED -- PLEASE DO NOT EDIT!
16+
17+
Instead, please edit the following:
18+
19+
- sources/programs/baklava/prolog/how-to-implement-the-solution.md
20+
- sources/programs/baklava/prolog/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 [Prolog](https://sampleprograms.io/languages/prolog) 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+
```prolog
32+
:- initialization(main).
33+
34+
baklava(N, NE) :-
35+
forall(between(N, NE, X), baklava_line(X)).
36+
37+
baklava_line(N) :-
38+
NSP is abs(N),
39+
NST is 21 - 2 * NSP,
40+
output_repeat(" ", NSP),
41+
output_repeat("*", NST),
42+
nl.
43+
44+
output_repeat(S, N) :-
45+
forall(between(1, N, _), write(S)).
46+
47+
main() :-
48+
baklava(-10, 10),
49+
halt.
50+
51+
```
52+
53+
{% endraw %}
54+
55+
Baklava in [Prolog](https://sampleprograms.io/languages/prolog) was written by:
56+
57+
- rzuckerm
58+
59+
If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).
60+
61+
## How to Implement the Solution
62+
63+
No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
64+
65+
## How to Run the Solution
66+
67+
No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

0 commit comments

Comments
 (0)