Compare commits
13 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c9f92ce07 | |||
|
062a20f251 |
|||
|
fb4fd26419 |
|||
|
bc51045fe5 |
|||
|
74c987c8f7 |
|||
|
4154530e02 |
|||
|
223b08303e |
|||
|
6c536609c8 |
|||
|
997ddb0a34 |
|||
|
1a515f3f29 |
|||
|
dd800a761d |
|||
|
476c749f4c |
|||
|
e24998f5e7 |
7 changed files with 162 additions and 37 deletions
2
.domains
2
.domains
|
|
@ -1 +1 @@
|
|||
nofi.sh
|
||||
w.nofi.sh
|
||||
1
404.html
Normal file
1
404.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<meta name='color-scheme' content='dark light'><style>*{font-family:monospace}</style>404 - that url doesn't exist!
|
||||
86
index.html
86
index.html
File diff suppressed because one or more lines are too long
42
scripts/cmds.go
Normal file
42
scripts/cmds.go
Normal 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
36
scripts/cmds.lua
Normal 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
BIN
scripts/lua-5.4.7.tar.gz
Normal file
Binary file not shown.
32
tree.html
Normal file
32
tree.html
Normal 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}
|
||||
Loading…
Add table
Add a link
Reference in a new issue