Compare commits

...
Sign in to create a new pull request.

13 commits

Author SHA1 Message Date
3c9f92ce07 refined treenav test 2025-02-16 03:31:47 +08:00
062a20f251
added 404 & changed scripts folder 2025-02-10 15:19:49 +08:00
fb4fd26419
updated lua 2025-02-09 15:14:08 +08:00
bc51045fe5
added lua 2025-02-09 14:21:01 +08:00
74c987c8f7
added basic tar 2025-02-09 11:58:55 +08:00
4154530e02
cleaned up the nav a bit 2025-02-09 01:30:35 +08:00
223b08303e
forgot that part lol 2025-02-08 23:40:30 +08:00
6c536609c8
added 'page' function 2025-02-08 23:37:04 +08:00
997ddb0a34
nav specfic 2025-02-07 18:59:02 +08:00
1a515f3f29
testing better navigation 2025-02-07 18:42:06 +08:00
dd800a761d
forgot the domain lol 2025-02-07 18:00:19 +08:00
476c749f4c
git notes 2025-02-07 17:57:36 +08:00
e24998f5e7
wiki build 2025-02-07 17:54:00 +08:00

View file

@ -1 +1 @@
nofi.sh
w.nofi.sh

1
404.html Normal file
View file

@ -0,0 +1 @@
<meta name='color-scheme' content='dark light'><style>*{font-family:monospace}</style>404 - that url doesn't exist!

File diff suppressed because one or more lines are too long

42
scripts/cmds.go Normal file
View file

@ -0,0 +1,42 @@
package main
import(
'fmt'
'time'
)
func main() {
fmt.println('hello, world!')
fmt.println('currently',time.Now())
}
/* hello, world!
currently 2009-11-10 23:00:00 +0000 m=+0.000000001
*/ // imported resources require Caps, local do not
import 'math/rand'
fmt.println('random number:',rand.Intn(10))
// random number: 4
import 'math'
fmt.printf('you have %g problems\n',math.Sqrt(7))
// you have 2.64575... problems
fmt.println(math.Pi)
// 3.141592653589793
func add(x int,y int)int{
return x+y
}
fmt.println(add(33,44))
// 77 // (x int,y int) match type, so (x,y int) works
func split(x,y int)int{
x=5
y=4
return
}
// empty return gives value of any set vars
var first second third bool
// sets any vars to bool (default false)
var first,second int=1,2
// sets values first=1 and second=2
func setvar(){
first:=1
}
// var can be skipped if inside a func using :=

36
scripts/cmds.lua Normal file
View file

@ -0,0 +1,36 @@
--[[
this all makes sense if you know python
]]
var = 'string'
print(var)
function doMath(n)
return n*2
end
print(doMath(2))
arry = {'structure', 'data', 'with', 'tables'}
-- arrays start at 1 not 0
dict = {
['title'] = 'value',
['title2'] = 'value2',
}
for titl, valu in pairs(dict) do
print(titl, valu)
end
pausable = coroutine.create(function()
coroutine.yield('rout1')
coroutine.yield('rout2')
return 'rout3'
end)
coroutine.resume(pausable) --rout1
coroutine.resume(pausable) --rout2
coroutine.resume(pausable) --rout3
coroutine.resume(pausable) --err

BIN
scripts/lua-5.4.7.tar.gz Normal file

Binary file not shown.

32
tree.html Normal file
View file

@ -0,0 +1,32 @@
<nav>
<ul>
<li>
<label>nav tree</label>
<input type='checkbox'/>
<ul>
<li><a>main item</a></li>
<li>
<a>main link</a>
<input type='checkbox'/>
<ul>
<li><a>sub item</a></li>
<li><a>sub item</a></li>
<li><a>sub item</a></li>
</ul>
</li>
<li><a>main item</a></li>
</ul>
</li>
</ul>
</nav>
<ul>
<li>body list</li>
<li>body list</li>
<li>body list</li>
</ul>
<style>
nav ul,nav li{list-style-type:none}
nav ul ul li,nav ul>li:not(:has(input)){display:none}
nav input:checked+ul>li,nav input:checked+ul>li input:checked+ul li{display:inherit}