ngn-k tutorial

(razetime.github.io)

1 points | by 1vuio0pswjnm7 12 hours ago ago

1 comments

  • 1vuio0pswjnm7 12 hours ago ago

    Tutorial as a single HTML file:

       (n=0
       for x in \
       /ngn-k-tutorial/-preface.html \
       /ngn-k-tutorial/1-introduction.html \
       /ngn-k-tutorial/2-working-with-arrays.html \
       /ngn-k-tutorial/3-functions-and-defining-variables.html \
       /ngn-k-tutorial/4-indexing-and-application.html \
       /ngn-k-tutorial/5-adverbs.html \
       /ngn-k-tutorial/6-numbers-and-logic.html \
       /ngn-k-tutorial/7-more-adverbs.html \
       /ngn-k-tutorial/8-dictionaries-tables-strings-and-other-miscellaneous-functions.html \
       /ngn-k-tutorial/9-special-forms.html \
       /ngn-k-tutorial/10-input-and-output.html \
       /ngn-k-tutorial/11-debugging-and-errors.html \
       /ngn-k-tutorial/12-thinking-in-an-array-language.html \
       /ngn-k-tutorial/13-writing-a-prelude.html \
       /ngn-k-tutorial/14-a-sudoku-program.html \
       /ngn-k-tutorial/15-tables-and-libraries.html \
       /ngn-k-tutorial/16-the-ngnk-c-api.html 
       do
       printf 'GET '$x' HTTP/1.1\r\n'
       printf 'Host: razetime.github.io\r\n'
       case $n in 16)printf 'Connection: close\r\n\r\n'
       ;;*)printf 'Connection: keep-alive\r\n\r\n'
       esac
       n=$((n+1))
       done;sleep 1)|bssl client -connect razetime.github.io:443 > 1.htm
       firefox ./1.htm
       #links -dump 1.htm|sed '/HTTP\/1.1/,/Next:/d' > 1.txt
       #less 1.txt