Skip to content

Commit eb28936

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

File tree

5 files changed

+83
-16
lines changed

5 files changed

+83
-16
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 1534 articles written by 291 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 1535 articles written by 292 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/coffeescript/index.md

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

2727
## Articles
2828

29-
There are 7 articles:
29+
There are 8 articles:
3030

3131
- [Baklava in Coffeescript](https://sampleprograms.io/projects/baklava/coffeescript)
3232
- [Even Odd in Coffeescript](https://sampleprograms.io/projects/even-odd/coffeescript)
3333
- [Factorial in Coffeescript](https://sampleprograms.io/projects/factorial/coffeescript)
3434
- [Fizz Buzz in Coffeescript](https://sampleprograms.io/projects/fizz-buzz/coffeescript)
3535
- [Hello World in Coffeescript](https://sampleprograms.io/projects/hello-world/coffeescript)
3636
- [Longest Word in Coffeescript](https://sampleprograms.io/projects/longest-word/coffeescript)
37-
- [Quine in Coffeescript](https://sampleprograms.io/projects/quine/coffeescript)
37+
- [Quine in Coffeescript](https://sampleprograms.io/projects/quine/coffeescript)
38+
- [Remove All Whitespace in Coffeescript](https://sampleprograms.io/projects/remove-all-whitespace/coffeescript)

docs/languages/index.md

Lines changed: 10 additions & 10 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 1339 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 1340 code snippets.
1010

1111
## Language Breakdown
1212

@@ -78,7 +78,7 @@ Here are the percentages for each language in the collection:
7878

7979
<tr>
8080
<td class="right nowrap">M4</td>
81-
<td class="right">3.44%</td>
81+
<td class="right">3.43%</td>
8282
<td class="bar-graph"><div style="width: 48.44%; background-color: #CCCCCC;"></div></td>
8383
</tr>
8484

@@ -335,15 +335,15 @@ Here are the percentages for each language in the collection:
335335
</tr>
336336

337337
<tr>
338-
<td class="right nowrap">Lolcode</td>
339-
<td class="right">0.11%</td>
340-
<td class="bar-graph"><div style="width: 1.49%; background-color: #CC9900;"></div></td>
338+
<td class="right nowrap">Coffeescript</td>
339+
<td class="right">0.13%</td>
340+
<td class="bar-graph"><div style="width: 1.81%; background-color: #244776;"></div></td>
341341
</tr>
342342

343343
<tr>
344-
<td class="right nowrap">Coffeescript</td>
345-
<td class="right">0.10%</td>
346-
<td class="bar-graph"><div style="width: 1.46%; background-color: #244776;"></div></td>
344+
<td class="right nowrap">Lolcode</td>
345+
<td class="right">0.11%</td>
346+
<td class="bar-graph"><div style="width: 1.49%; background-color: #CC9900;"></div></td>
347347
</tr>
348348

349349
<tr>
@@ -1026,7 +1026,7 @@ The 'B' collection contains 9 languages, of which 9 are tested, and 79 code snip
10261026

10271027
### C
10281028

1029-
The 'C' collection contains 15 languages, of which 15 are tested, and 185 code snippets.
1029+
The 'C' collection contains 15 languages, of which 15 are tested, and 186 code snippets.
10301030

10311031
- [C](https://sampleprograms.io/languages/c) (38 code snippets)
10321032
- [C#](https://sampleprograms.io/languages/c-sharp) (38 code snippets)
@@ -1038,7 +1038,7 @@ The 'C' collection contains 15 languages, of which 15 are tested, and 185 code s
10381038
- [Chapel](https://sampleprograms.io/languages/chapel) (3 code snippets)
10391039
- [Clojure](https://sampleprograms.io/languages/clojure) (6 code snippets)
10401040
- [Cobol](https://sampleprograms.io/languages/cobol) (6 code snippets)
1041-
- [Coffeescript](https://sampleprograms.io/languages/coffeescript) (7 code snippets)
1041+
- [Coffeescript](https://sampleprograms.io/languages/coffeescript) (8 code snippets)
10421042
- [Commodore Basic](https://sampleprograms.io/languages/commodore-basic) (38 code snippets)
10431043
- [Crystal](https://sampleprograms.io/languages/crystal) (4 code snippets)
10441044
- [Cyclone](https://sampleprograms.io/languages/cyclone) (2 code snippets)
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
authors:
3+
- Ryan Mills
4+
date: 2025-10-29
5+
featured-image: remove-all-whitespace-in-every-language.jpg
6+
last-modified: 2025-10-29
7+
layout: default
8+
tags:
9+
- coffeescript
10+
- remove-all-whitespace
11+
title: Remove All Whitespace in Coffeescript
12+
---
13+
14+
<!--
15+
AUTO-GENERATED -- PLEASE DO NOT EDIT!
16+
17+
Instead, please edit the following:
18+
19+
- sources/programs/remove-all-whitespace/coffeescript/how-to-implement-the-solution.md
20+
- sources/programs/remove-all-whitespace/coffeescript/how-to-run-the-solution.md
21+
22+
See .github/CONTRIBUTING.md for further details.
23+
-->
24+
25+
Welcome to the [Remove All Whitespace](https://sampleprograms.io/projects/remove-all-whitespace) in [Coffeescript](https://sampleprograms.io/languages/coffeescript) 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+
```coffeescript
32+
33+
removeAllWhitespace = (inputString) ->
34+
return usage() if not inputString
35+
words = inputString.split(/[\s]+/)
36+
finalString = ''
37+
for word in words
38+
finalString += word
39+
return finalString
40+
usage = () ->
41+
"Usage: please provide a string"
42+
43+
main = () ->
44+
args = process.argv
45+
return removeAllWhitespace(args[2])
46+
47+
console.log main()
48+
49+
```
50+
51+
{% endraw %}
52+
53+
Remove All Whitespace in [Coffeescript](https://sampleprograms.io/languages/coffeescript) was written by:
54+
55+
- Ryan Mills
56+
57+
If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).
58+
59+
## How to Implement the Solution
60+
61+
No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
62+
63+
## How to Run the Solution
64+
65+
No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

docs/projects/remove-all-whitespace/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2022-04-28
33
featured-image: remove-all-whitespace-in-every-language.jpg
4-
last-modified: 2025-10-09
4+
last-modified: 2025-10-29
55
layout: default
66
tags:
77
- remove-all-whitespace
@@ -95,7 +95,7 @@ Usage: please provide a string
9595

9696
## Articles
9797

98-
There are 27 articles:
98+
There are 28 articles:
9999

100100
- [Remove All Whitespace in Algol68](https://sampleprograms.io/projects/remove-all-whitespace/algol68)
101101
- [Remove All Whitespace in Awk](https://sampleprograms.io/projects/remove-all-whitespace/awk)
@@ -104,6 +104,7 @@ There are 27 articles:
104104
- [Remove All Whitespace in C](https://sampleprograms.io/projects/remove-all-whitespace/c)
105105
- [Remove All Whitespace in C#](https://sampleprograms.io/projects/remove-all-whitespace/c-sharp)
106106
- [Remove All Whitespace in C++](https://sampleprograms.io/projects/remove-all-whitespace/c-plus-plus)
107+
- [Remove All Whitespace in Coffeescript](https://sampleprograms.io/projects/remove-all-whitespace/coffeescript)
107108
- [Remove All Whitespace in Commodore Basic](https://sampleprograms.io/projects/remove-all-whitespace/commodore-basic)
108109
- [Remove All Whitespace in Dart](https://sampleprograms.io/projects/remove-all-whitespace/dart)
109110
- [Remove All Whitespace in Elvish](https://sampleprograms.io/projects/remove-all-whitespace/elvish)

0 commit comments

Comments
 (0)