This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Questions on SPACES paths | |
Please answer with yes/or no | |
| | Stored as block? | Stored as name + size block? | Stored as path? | Stored as tree path? | Visualized as path? | Visualized as tree path? | returned as path by functions? | returned as tree path by functions? | | |
| ----------------------------------- | ---------------- | ---------------------------- | --------------- | -------------------- | ------------------- | ------------------------ | ------------------------------ | ----------------------------------- | | |
| /map facet | | | | | | | | | | |
| /parent facet | | | | | | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This code: | |
view [ | |
host [ | |
vlist [ | |
bt: button "Press meee I am space!" | |
gr: grid-view source= table-data2 size 400x300 on-created [probe gr save %new-mold.txt gr] | |
with [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Red [] | |
Rebol [] | |
find**: func [ | |
data | |
column | |
value | |
/local | |
container | |
out-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Red [] | |
Rebol [] | |
sort-by-length: func [ | |
[catch] | |
"Sort a block by the length of its components from smaller to bigger" | |
data [block!] "Block of elements" | |
/safe "Elements type can be mixed" | |
/reverse "Reverse the order of sorting" | |
/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Red [] | |
Rebol [] | |
recycle/off | |
;This code is from Ashley Graham | |
platform?: case [ | |
2 = system/version/1 ['Rebol] | |
not rebol ['Red] | |
system/product = 'atronix-view ['Atronix] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Red [] | |
Rebol [] | |
recycle/off | |
;This code is from Ashley Graham | |
platform?: case [ | |
2 = system/version/1 ['Rebol] | |
not rebol ['Red] | |
system/product = 'atronix-view ['Atronix] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--== Red 0.6.4 ==-- | |
Type HELP for starting information. | |
>> do %pp.r | |
actor/open: connection | |
init-odbc | |
OPEN-ENVIRONMENT [ | |
SQLAllocHandle 0 | |
henv/value = 2158376 | |
SQLSetEnvAttr 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do %../scripts/send-to.r | |
port-number: 55551 | |
server-address: "localhost" | |
Forever [ | |
prin "Insert a server command > " message: input | |
if message = "exit" [Print "!!! Exit Received, quitting !!!" break] | |
response: send-to server-address port-number message | |
print "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SERVER-DB: "myserver" | |
DB: "mydb" | |
port-number: 55551 | |
server-address: "localhost" | |
;--- These are the commands we could execute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
send-to: func [ | |
"Send a message and returns the response. NONE if no response (TBD:)" | |
server-address "The address of the server" | |
port-number [integer!] "The remote port number" | |
message [String! block!] "The message to send" | |
/local | |
out-data ;"The return data" | |
connection | |
server |