Skip to content

Commit b9a6896

Browse files
author
Christophe Delord
committed
migration to github
1 parent 6c040fd commit b9a6896

File tree

5 files changed

+37
-80
lines changed

5 files changed

+37
-80
lines changed

README.md

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ environment. Fizzbuzz is just an application example.
88

99
# Links
1010

11-
- [fizzbuzz_slideshow.pdf](http://cdelord.fr/fizzbuzz/fizzbuzz_slideshow.pdf):
11+
- [fizzbuzz_slideshow.pdf](https://github.com/CDSoft/FizzBuzz/releases):
1212
PDF slideshow
13-
- [fizzbuzz.pdf](http://cdelord.fr/fizzbuzz/fizzbuzz.pdf): PDF
13+
- [fizzbuzz.pdf](https://github.com/CDSoft/FizzBuzz/releases): PDF
1414
demonstration (specification, implementation, tests, test report,
1515
documentation generator, …)
1616
- [github.com/CDSoft/fizzbuzz](https://github.com/CDSoft/fizzbuzz):
@@ -170,13 +170,13 @@ LuaX comes with a standard Lua interpreter and provides some libraries
170170
- [inspect](https://github.com/CDSoft/luax/blob/master/doc/inspect.md):
171171
Human-readable representation of Lua tables
172172

173-
More information here: <http://cdelord.fr/luax>
173+
More information here: <https://github.com/CDSoft/luax>
174174

175175
# Scripting with LuaX
176176

177177
LuaX can be used as a general programming language. There are plenty of
178178
[good documentations for Lua](https://www.lua.org/docs.html) and
179-
[LuaX](http://cdelord.fr/luax).
179+
[LuaX](https://github.com/CDSoft/luax).
180180

181181
A big advantage of Lua is the usage of Lua tables as a common data
182182
format usable by various tools. It is Human-readable and structured. It
@@ -237,7 +237,7 @@ Ypp is a minimalist and generic text preprocessor using Lua macros.
237237
Ypp is compiled by LuaX, i.e. Lua and LuaX functions and modules are
238238
available in macros.
239239

240-
More information here: <http://cdelord.fr/ypp>
240+
More information here: <https://github.com/CDSoft/ypp>
241241

242242
Ypp is pretty simple. It searches for Lua expressions and replaces
243243
macros with their results.
@@ -259,9 +259,11 @@ $$
259259

260260
is rendered as
261261

262-
> $$
262+
>
263+
> ``` math
264+
>
263265
> \sum_{i=1}^{100} i^2 = 338350
264-
> $$
266+
> ```
265267
266268
Macros can also define variables reusable later by other macros.
267269
@@ -274,7 +276,7 @@ Macros can also define variables reusable later by other macros.
274276
]]
275277
```
276278
277-
defines `N` ($N = 1000$) which can be read in a Lua expression or with
279+
defines `N` ($`N = 1000`$) which can be read in a Lua expression or with
278280
`@N` and `sumsq` which computes the sum of squares.
279281

280282
Then
@@ -287,9 +289,11 @@ $$
287289

288290
becomes
289291

290-
> $$
292+
>
293+
> ``` math
294+
>
291295
> \sum_{i=1}^{1000} i^2 = 333833500
292-
> $$
296+
> ```
293297
294298
# Pandoc
295299
@@ -322,7 +326,7 @@ It provides several interesting features:
322326
- script execution (e.g. to include the result of a command)
323327
- diagrams (Graphviz, PlantUML, ditaa, Asymptote, blockdiag, mermaid…)
324328
325-
The documentation of Panda is here: <http://cdelord.fr/panda>
329+
The documentation of Panda is here: <https://github.com/CDSoft/panda>
326330
327331
## Examples
328332
@@ -400,24 +404,6 @@ code blocks and are replaced by an image by panda.
400404
401405
<img src="./img/example-gnuplot.svg" style="width:67.0%" />
402406
403-
# Precompiled LuaX binaries
404-
405-
[cdelord.fr/pub](https://cdelord.fr/pub) provides LuaX binaries as well
406-
as some other useful softwares (LuaX based tools, Pandoc…).
407-
408-
These tools are used to pre-process files and generate documents, using
409-
Lua as a common, simple and powerful scripting language.
410-
411-
These tools can easily be installed with a single shell command:
412-
413-
``` sh
414-
curl https://cdelord.fr/pub/luax-full.sh | sh
415-
```
416-
417-
More details on [cdelord.fr/pub](https://cdelord.fr/pub), especially for
418-
Windows users who may need to download a Zip archive and decompress it
419-
manually.
420-
421407
# Fizzbuzz
422408
423409
Fizzbuzz is a concrete example of the usage of LuaX/ypp/pandoc/panda to
@@ -435,17 +421,20 @@ From [Wikipedia](https://en.wikipedia.org/wiki/Fizz_buzz):
435421
`fizzbuzz` is a function that returns `"fizz"`, `"buzz"`, `"fizzbuzz"`
436422
or `n` for any positive integer `n`.
437423
438-
$$
424+
``` math
425+
439426
fizzbuzz : \mathbb{N}^+ \to \{fizz, buzz, fizzbuzz\} \cup \mathbb{N}^+
440-
$$ $$
427+
```
428+
``` math
429+
441430
fizzbuzz(n) =
442431
\begin{cases}
443432
\text{"fizzbuzz" } & \text{if } (3|n) \land (5|n) \\
444433
\text{"fizz" } & \text{if } (3|n) \land \lnot (5|n) \\
445434
\text{"buzz" } & \text{if } (5|n) \land \lnot (3|n) \\
446435
n & \text{if } \lnot (3|n) \land \lnot (5|n) \\
447436
\end{cases}
448-
$$
437+
```
449438
450439
### Requirements
451440
@@ -566,13 +555,14 @@ The functions `fizzbuzz` builds three infinite lists and combine them.
566555
| fizzes | . | . | fizz | . | . | fizz | . | . | fizz | . | . | fizz | . | . | fizz | … |
567556
| buzzes | . | . | . | . | buzz | . | . | . | . | buzz | . | . | . | . | buzz | … |
568557
569-
$$
558+
``` math
559+
570560
fizzbuzz(n) =
571561
\begin{cases}
572562
fizz + buzz & \text{if } fizz \ne Nothing \lor buzz \ne Nothing \\
573563
n & \text{if } fizz = buzz = Nothing \\
574564
\end{cases}
575-
$$
565+
```
576566
577567
``` hs
578568
fizzbuzz :: [String]

build.ninja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Ninja file generated by bang (https://cdelord.fr/bang)
1+
# Ninja file generated by bang (https://github.com/cdsoft/bang)
22
# bang build.lua -o build.ninja
33

44
# Fizzbuzz build system

fizzbuzz.md

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ documentation environment. Fizzbuzz is just an application example.
4646

4747
# Links
4848

49-
- [fizzbuzz_slideshow.pdf](http://cdelord.fr/fizzbuzz/fizzbuzz_slideshow.pdf): PDF slideshow
50-
- [fizzbuzz.pdf](http://cdelord.fr/fizzbuzz/fizzbuzz.pdf): PDF demonstration (specification, implementation, tests, test report, documentation generator, ...)
49+
- [fizzbuzz_slideshow.pdf](https://github.com/CDSoft/FizzBuzz/releases): PDF slideshow
50+
- [fizzbuzz.pdf](https://github.com/CDSoft/FizzBuzz/releases): PDF demonstration (specification, implementation, tests, test report, documentation generator, ...)
5151
- [github.com/CDSoft/fizzbuzz](https://github.com/CDSoft/fizzbuzz): Sources
5252

5353
![]({{logo}}){width=50%}
@@ -182,13 +182,13 @@ in a single executable, no external dependency required):
182182
- [luasocket](https://github.com/CDSoft/luax/blob/master/doc/luasocket.md): Network support for the Lua language
183183
- [inspect](https://github.com/CDSoft/luax/blob/master/doc/inspect.md): Human-readable representation of Lua tables
184184

185-
More information here: <http://cdelord.fr/luax>
185+
More information here: <https://github.com/CDSoft/luax>
186186

187187
# Scripting with LuaX
188188

189189
LuaX can be used as a general programming language.
190190
There are plenty of [good documentations for Lua](https://www.lua.org/docs.html)
191-
and [LuaX](http://cdelord.fr/luax).
191+
and [LuaX](https://github.com/CDSoft/luax).
192192

193193
A big advantage of Lua is the usage of Lua tables as a common data format usable by various tools.
194194
It is Human-readable and structured. It can be generated by Lua scripts but also by any software producing text files.
@@ -242,7 +242,7 @@ Ypp is a minimalist and generic text preprocessor using Lua macros.
242242
Ypp is compiled by LuaX, i.e. Lua and LuaX functions and modules are available
243243
in macros.
244244

245-
More information here: <http://cdelord.fr/ypp>
245+
More information here: <https://github.com/CDSoft/ypp>
246246

247247
Ypp is pretty simple. It searches for Lua expressions and replaces macros with their results.
248248

@@ -347,7 +347,7 @@ It provides several interesting features:
347347
- script execution (e.g. to include the result of a command)
348348
- diagrams (Graphviz, PlantUML, ditaa, Asymptote, blockdiag, mermaid…)
349349

350-
The documentation of Panda is here: <http://cdelord.fr/panda>
350+
The documentation of Panda is here: <https://github.com/CDSoft/panda>
351351

352352
## Examples
353353

@@ -417,24 +417,6 @@ set yrange [-1.5:1.5]
417417
plot sin(x) lw 4, cos(x) lw 4
418418
```
419419

420-
# Precompiled LuaX binaries
421-
422-
[cdelord.fr/pub](https://cdelord.fr/pub) provides LuaX binaries
423-
as well as some other useful softwares (LuaX based tools, Pandoc...).
424-
425-
These tools are used to pre-process files and generate documents,
426-
using Lua as a common, simple and powerful scripting language.
427-
428-
These tools can easily be installed with a single shell command:
429-
430-
``` sh
431-
curl https://cdelord.fr/pub/luax-full.sh | sh
432-
```
433-
434-
More details on [cdelord.fr/pub](https://cdelord.fr/pub),
435-
especially for Windows users who may need to download a Zip archive
436-
and decompress it manually.
437-
438420
# Fizzbuzz
439421

440422
Fizzbuzz is a concrete example of the usage of LuaX/ypp/pandoc/panda to specify

fizzbuzz_slideshow.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -529,19 +529,6 @@ plot sin(x) lw 4, cos(x) lw 4
529529
```
530530
``````
531531

532-
# LuaX binaries
533-
534-
## [cdelord.fr/pub](https://cdelord.fr/pub)
535-
536-
- single shell script
537-
- install LuaX, ypp, pandoc, panda, ...
538-
539-
## Simple installation
540-
541-
``` sh
542-
curl https://cdelord.fr/pub/luax-full.sh | sh
543-
```
544-
545532
# Fizzbuzz
546533

547534
::::::::::::::::::::::::::::: {.columns}
@@ -578,9 +565,8 @@ curl https://cdelord.fr/pub/luax-full.sh | sh
578565
## Complete Fizzbuzz example
579566

580567
- [github.com/CDSoft/fizzbuzz](https://github.com/CDSoft/fizzbuzz)
581-
- [cdelord.fr/fizzbuzz](http://cdelord.fr/fizzbuzz):
582-
- [fizzbuzz.pdf](http://cdelord.fr/fizzbuzz/fizzbuzz.pdf)
583-
- [fizzbuzz.html](http://cdelord.fr/fizzbuzz/fizzbuzz.html)
568+
- [fizzbuzz.pdf](https://github.com/CDSoft/FizzBuzz/releases)
569+
- [fizzbuzz.html](https://github.com/CDSoft/FizzBuzz/releasesl)
584570

585571
::::::::::
586572

@@ -604,7 +590,7 @@ curl https://cdelord.fr/pub/luax-full.sh | sh
604590
- @link "Pandoc manual" "https://pandoc.org/MANUAL.html"
605591
- @link "Pandoc Lua filters" "https://pandoc.org/lua-filters.html"
606592
- @link "Panda" "https://github.com/CDSoft/panda"
607-
- @link "LuaX binaries" "https://cdelord.fr/pub"
593+
- @link "LuaX binaries" "https://github.com/CDSoft/pub"
608594

609595
# Questions
610596

@@ -614,7 +600,7 @@ curl https://cdelord.fr/pub/luax-full.sh | sh
614600

615601
## Web / email
616602

617-
[cdelord.fr](http://cdelord.fr)
603+
[CDSoft.github.io](https://CDSoft.github.io)
618604

619605
## Github
620606

@@ -628,8 +614,7 @@ curl https://cdelord.fr/pub/luax-full.sh | sh
628614

629615
[github.com/CDSoft/fizzbuzz](https://github.com/CDSoft/fizzbuzz)
630616

631-
[cdelord.fr/fizzbuzz](http://cdelord.fr/fizzbuzz)
632-
[cdelord.fr/fizzbuzz/fizzbuzz.pdf](http://cdelord.fr/fizzbuzz/fizzbuzz.pdf)
617+
[fizzbuzz.pdf](https://github.com/CDSoft/fizzbuzz/releases)
633618

634619
## LinkdIn
635620

project_data.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
AUTHOR = "Christophe Delord - <http://cdelord.fr/fizzbuzz>"
1+
AUTHOR = "Christophe Delord - <https://github.com/CDSoft/fizzbuzz>"
22
DATE = os.date("%a %b %e, %Y", sh "git log -1 --format=%ct")

0 commit comments

Comments
 (0)