diff --git a/misc/api/compression-encoding.html b/misc/api/compression-encoding.html index 99008f0..c7252c6 100644 --- a/misc/api/compression-encoding.html +++ b/misc/api/compression-encoding.html @@ -21,8 +21,33 @@
-

Under development...

- +

Eventually, compression will be 100% working but tends to be slow and a proof + of concept for sheer size. The encoding / decoding is more than perfect for what + it does and for the sake of file checking, md5 does also exist in SlideScript + for file checking.

+ +

Encoding and decoding

+

+ SlideScript has its own encoding algorithm unique to itself. In the future, I do + plan on allowing the trigger change of encode stepping to give the user their own + ability to give their twist to the encoding. This makes password encoding or decoding + a bit more secure. Examples: +


+#!/usr/bin/slidescript
+# Read a file and encode its contents
+
+read "docs/README.txt" | encode "%PIPE%" | fileenc=%PIPE%
+
+print "Encoded: %fileenc%"
+
+decode "%fileenc%" | filedec=%PIPE%
+
+print "Decoded: %filedec%"
+
+

+

This page is still under development!

+

+

IRC server

Still need help? Want to report a bug? Join us!

diff --git a/misc/api/file-manipulation.html b/misc/api/file-manipulation.html index e231008..8210ea5 100644 --- a/misc/api/file-manipulation.html +++ b/misc/api/file-manipulation.html @@ -49,7 +49,7 @@ showpath pwd # alias # chdir: Change directory -# argument count: 1, ex: docs/; /home/user +# argument count: 1, "path" ex: "docs/"; "/home/user" # returns: No return chdir "docs/" showpath # Show return of change @@ -60,34 +60,34 @@ showpath # Show return of change backdir # isdir / isfile: Return true or false (0 or 1) on file / directory find. -# argument count: 1, ex: "docs/README.txt" +# argument count: 1, "file/path" ex: "docs/README.txt" # returns: true / false isfile "docs/README.txt" # returns: true isdir "docs/" # returns: true isfile "docs/" # returns: false # move: move file / rename file based on arguments. -# argument count: 2, , ex: "docs/" "documents/" +# argument count: 2, "original" "new file name/location", ex: "docs/" "documents/" # returns: no return move "docs" "documents" # renamed docs -> documents # delete: delete file (non-recursive) -# argument count: 1, , ex: "docs/README.txt" +# argument count: 1, "filename", ex: "docs/README.txt" # return: no return delete "docs/README.txt" # deletes README.txt inside docs/ # read: read contents of file given to function -# argument count: 1, , ex: "docs/README.txt" +# argument count: 1, "file", ex: "docs/README.txt" # return: contents of file read "docs/README.txt" # Returns contents of "README.txt" # write: write contents to file. -# argument count: 2, , ex: "test.txt" "Hello world!" +# argument count: 2, "filename" "contents", ex: "test.txt" "Hello world!" # return: no return write "test.txt" "Hello world!" # cat: catenate file with given contents -# argument count: 2, , ex: "test.txt" "I'm back!" +# argument count: 2, "file" "contents", ex: "test.txt" "I'm back!" # return: no return cat "test.txt" "I'm back!" # catenates "I'm back!" to the end of the original test.txt "Hello world!" # Ending file contents of "test.txt": diff --git a/misc/index.html b/misc/index.html index 178cfae..0d53993 100644 --- a/misc/index.html +++ b/misc/index.html @@ -63,6 +63,11 @@ of operating systems from *Nix 32/64 bit, Windows, OSX, Android (Termux), and more! But due to rapidly changing in features, and bugfixes, its just too unstable and... well... outdated after a week or two :D +


+git clone https://notabug.org/Pentium44/slidescript
+
+OR download from source: ZIP & + Tar.GZ

IRC server