Skip to content

Commit 2b2aa0d

Browse files
refactor(posts): remove replit.com demos and references
Remove Replit demos, links, and iframes from 37 blog posts. The Replit service is no longer a viable demo platform.
1 parent 31e497f commit 2b2aa0d

38 files changed

Lines changed: 12 additions & 250 deletions

File tree

_posts/2016/2016-09-22-webpack-build-umd.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,3 @@ Load module with [script tag](https://www.html5rocks.com/en/tutorials/speed/scri
126126
});
127127
</script>
128128
```
129-
130-
## Demo
131-
132-
[Replit](https://replit.com/@remarkablemark/webpack-umd):
133-
134-
<iframe height="400px" width="100%" src="https://replit.com/@remarkablemark/webpack-umd?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

_posts/2017/2017-01-17-minimal-express-server.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,3 @@ app.get('/', (req, res, next) => {
8989
const port = process.env.PORT || 3000;
9090
app.listen(port, () => console.log(`Listening on port ${port}`));
9191
```
92-
93-
## Demo
94-
95-
<iframe height="400px" width="100%" src="https://replit.com/@remarkablemark/express?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
96-
97-
The [Replit](https://replit.com/@remarkablemark/express) demo includes:
98-
99-
- [morgan](https://www.npmjs.com/package/morgan) (HTTP request logger)
100-
- route not found (404 error)
101-
- error handling (500 internal server error)

_posts/2017/2017-05-07-hot-module-replacement.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ Run `webpack-dev-server` without passing any options:
108108
npx webpack serve
109109
```
110110

111-
## Demo
112-
113-
[Replit](https://replit.com/@remarkablemark/webpack-dev-server-hot-module-replacement):
114-
115-
<iframe height="400px" width="100%" src="https://replit.com/@remarkablemark/webpack-dev-server-hot-module-replacement?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
116-
117111
## Resources
118112

119113
- [Hot Module Replacement](https://survivejs.com/webpack/appendices/hmr/)

_posts/2019/2019-09-28-javascript-remove-punctuation.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To remove punctuation with JavaScript, you can _iterate_ through each letter and
2424
var rawString = 'Hello, world!';
2525

2626
var rawLetters = rawString.split('');
27-
var cleanLetters = rawLetters.filter(function(letter) {
27+
var cleanLetters = rawLetters.filter(function (letter) {
2828
return punctuation.indexOf(letter) === -1;
2929
});
3030

@@ -39,7 +39,7 @@ var punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~';
3939
function removePunctuation(string) {
4040
return string
4141
.split('')
42-
.filter(function(letter) {
42+
.filter(function (letter) {
4343
return punctuation.indexOf(letter) === -1;
4444
})
4545
.join('');
@@ -78,12 +78,6 @@ function removePunctuation(string) {
7878
}
7979
```
8080

81-
## Demo
82-
83-
See [Replit](https://replit.com/@remarkablemark/Remove-punctuation) demo:
84-
85-
<iframe height="400px" width="100%" src="https://replit.com/@remarkablemark/Remove-punctuation?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
86-
8781
You can also find the code in this [Gist](https://gist.github.com/remarkablemark/6ef2779bee9d98bcfdc1fef2300f0476).
8882

8983
<!--/email_off-->

_posts/2020/2020-01-12-eslint-sort-imports.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ This article goes over how to **sort imports** with [ESLint](https://eslint.org/
2121
- [Solution](#solution)
2222
- [sort-imports](#sort-imports)
2323
- [eslint-plugin-simple-import-sort](#eslint-plugin-simple-import-sort)
24-
- [Demo](#demo)
2524

2625
</details>
2726
</p>
@@ -286,9 +285,3 @@ import foo from './foo';
286285
```
287286

288287
Congratulations! You've set up import sorting with ESLint.
289-
290-
## Demo
291-
292-
[Replit](https://replit.com/@remarkablemark/eslint-sort-imports#.eslintrc.json) example:
293-
294-
<iframe height="400px" width="100%" src="https://replit.com/@remarkablemark/eslint-sort-imports?lite=true#.eslintrc.json" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

_posts/2020/2020-05-11-texsvg.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ npx texsvg '\frac{a}{b}' fraction.svg # texsvg <tex> <file>
4444

4545
The examples below were built with [texsvg-server](https://github.com/remarkablemark/texsvg-server).
4646

47-
[Quadratic formula](https://texsvg-server-github.remarkablemark.repl.co/?tex=x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}):
48-
49-
![x equals begin fraction negative b plus or minus begin square root b squared minus 4 times a times c end square root over 2 times a end fraction](https://texsvg-server-github.remarkablemark.repl.co/?tex=x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} 'Quadratic Formula')
50-
5147
[JSFiddle](https://jsfiddle.net/remarkablemark/1k7t6s9o/):
5248

5349
<script async src="https://jsfiddle.net/remarkablemark/1k7t6s9o/embed/result/"></script>

_posts/2020/2020-06-25-php-date-time-format.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,3 @@ Here are some examples of using shorthand constants:
8585
echo date('c', strtotime('now')); // ISO8601
8686
echo (new DateTime())->format('r'); // RFC2822
8787
```
88-
89-
## Demo
90-
91-
Check out the following [Replit](https://replit.com/@remarkablemark/PHP-date):
92-
93-
<iframe height="800px" width="100%" src="https://replit.com/@remarkablemark/PHP-date?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

_posts/2020/2020-07-14-call-private-protected-php-method.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,3 @@ This means you can call `Foo::bar`:
7272
```php
7373
callObjectMethod(new Foo(), 'bar'); // 'baz'
7474
```
75-
76-
## Demo
77-
78-
See [Replit](https://replit.com/@remarkablemark/PHP-call-private-method):
79-
80-
<iframe height="800px" width="100%" src="https://replit.com/@remarkablemark/PHP-call-private-method?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

_posts/2020/2020-07-30-php-benchmark-function.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,3 @@ myFunction();
8686
echo number_format(benchmark('myFunction'), 3); // 1.000
8787
echo number_format(benchmark('myFunction', true), 3); // 0.000
8888
```
89-
90-
## Demo
91-
92-
Check out the [Replit](https://replit.com/@remarkablemark/PHP-benchmark-function) of the advanced function:
93-
94-
<iframe height="800px" width="100%" src="https://replit.com/@remarkablemark/PHP-benchmark-function?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

_posts/2020/2020-08-24-python-speech-recognition.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,7 @@ python speech_to_text.py # hello world
6868
| Fairly accurate | Transcript can be off |
6969
| | No punctuation marks |
7070

71-
See [guide](https://realpython.com/python-speech-recognition/) for more details.
72-
73-
### Demo
74-
75-
[Replit](https://replit.com/@remarkablemark/Speech-Recognition):
76-
77-
<iframe height="550px" width="100%" src="https://replit.com/@remarkablemark/Speech-Recognition?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
78-
79-
See [GitHub repository](https://github.com/remarkablemark/speech-recognition-demo) for more details.
71+
See [guide](https://realpython.com/python-speech-recognition/) and [GitHub repository](https://github.com/remarkablemark/speech-recognition-demo) for more details.
8072

8173
## Web Speech API
8274

0 commit comments

Comments
 (0)