History

initial export working

Paul Batchelor committed 6 years ago

Commit 71a8b511 parent 54be2ea8 files · +10 −5Browse files

Unified · Split

8 files
  1. .gitignore +2 −1
  2. Makefile +4 −1
  3. _img/osc_lerp.png +0 −0
  4. _img/osc_lerp_simp.png +0 −0
  5. _img/osc_log2.png +0 −0
  6. index.org +1 −1
  7. osc.org +3 −3
  8. weewiki.janet +3 −2
.gitignore+2−1
@@ -1,3 +1,4 @@
1_util1_util
2_live2_live
3_site3_site
4css
Makefile+4−1
@@ -16,6 +16,7 @@ export: db · 15 unmodified lines
16 mkdir -p _site/$(WIKI_PATH)16 mkdir -p _site/$(WIKI_PATH)
17 weewiki sync17 weewiki sync
18 weewiki export18 weewiki export
19 rsync -rvt _img _site/$(WIKI_PATH)/
19 mv mkdb.janet mkdb.janet.old20 mv mkdb.janet mkdb.janet.old
20 weewiki dump mkdb.janet21 weewiki dump mkdb.janet
21 22
@@ -26,8 +27,10 @@ dump: · 4 unmodified lines
26 weewiki dump mkdb.janet27 weewiki dump mkdb.janet
27 28
28transfer:29transfer:
30 $(RM) -r _live/$(WIKI_PATH)
29 mkdir -p _live/$(WIKI_PATH)31 mkdir -p _live/$(WIKI_PATH)
30 cp -r _site/$(WIKI_PATH)/* _live/$(WIKI_PATH)32 rsync -rvt _site/$(WIKI_PATH)/* _live/$(WIKI_PATH)
33 rsync -rvt _img _live/$(WIKI_PATH)/
31 34
32server:35server:
33 weewiki server - $(PORT)36 weewiki server - $(PORT)
_img/osc_lerp.png+0−0

Binary file not shown.

_img/osc_lerp_simp.png+0−0

Binary file not shown.

_img/osc_log2.png+0−0

Binary file not shown.

index.org+1−1
@@ -12,7 +12,7 @@ help explain and contextualize what every single line of · 11 unmodified lines
12code is doing.12code is doing.
13 13
14The text in this wiki is licensed under the14The text in this wiki is licensed under the
15[[https://creativecommons.org/share-your-work/public-domain/cc0/][Creatives Commons Zero]] license, otherwise15[[https://creativecommons.org/share-your-work/public-domain/cc0/][Creative Commons Zero]] license, otherwise
16known as "CC0".16known as "CC0".
17 17
18The tangled output is dual-licensed under MIT or18The tangled output is dual-licensed under MIT or
osc.org+3−3
@@ -188,7 +188,7 @@ number of lower bits. This value is stored in the variable · 187 unmodified lines
188 188
189@!189@!
190#$$n = log2(M/s)$$190#$$n = log2(M/s)$$
191(img "/res/wiki/osc/osc_log2.png")191(img "osc_log2.png")
192!@192!@
193 193
194Where =n= is the number of lower bits, =M= is the maximum194Where =n= is the number of lower bits, =M= is the maximum
@@ -354,7 +354,7 @@ linear interpolation is commonly shown as: · 159 unmodified lines
354#$$354#$$
355#y = (1 - \alpha) x_1 + \alpha x_2355#y = (1 - \alpha) x_1 + \alpha x_2
356#$$356#$$
357(img "/res/wiki/osc/osc_lerp.png")357(img "osc_lerp.png")
358!@358!@
359 359
360Where $x_1$ and $x_2$ are two values, and $\alpha$ is a360Where $x_1$ and $x_2$ are two values, and $\alpha$ is a
@@ -385,7 +385,7 @@ shave off a multiply operation. · 24 unmodified lines
385# &= x_1 + (x_2 - x_1)\alpha385# &= x_1 + (x_2 - x_1)\alpha
386# }386# }
387# $$387# $$
388(img "/res/wiki/osc/osc_lerp_simp.png")388(img "osc_lerp_simp.png")
389!@389!@
390 390
391Which then gets translated to the following C code below.391Which then gets translated to the following C code below.
weewiki.janet+3−2
@@ -1,5 +1,5 @@
1(def ww-dir "_site/wiki")1(def ww-dir "_site/sndkit")
2(def webroot "/wiki")2(def webroot "/sndkit")
3 3
4(defn pgexists? (name)4(defn pgexists? (name)
5 (var db (ww-db))5 (var db (ww-db))
@@ -42,6 +42,7 @@ · 36 unmodified lines
42 (print42 (print
43 (string43 (string
44 "<img src=\""44 "<img src=\""
45 webroot "/_img/"
45 path "\""46 path "\""
46 (if-not (nil? alt) (string " alt=\"" alt "\""))47 (if-not (nil? alt) (string " alt=\"" alt "\""))
47 ">")))48 ">")))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t