Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
'x' NB. Scalar character
'string' NB. List of characters, i.e. a string
'can''t get simpler' NB. Embedded single-quote

View file

@ -0,0 +1,7 @@
'Here is line 1',LF,'and line two'
'On a mac, you need',CR,'a carriage return'
'And on windows, ',CRLF,'you need both'
TAB,TAB,TAB,'Everyone loves tabs!'

View file

@ -0,0 +1,4 @@
CR =: 13 { a.
LF =: 10 { a.
CRLF =: CR,LF NB. Or just 10 13 { a.
TAB =: 9 { a.

View file

@ -0,0 +1,2 @@
NAME =: 'John Q. Public'
'Hello, ',NAME,' you may have already won $1,000,000'

View file

@ -0,0 +1,9 @@
template =: noun define
Hello, NAME.
My name is SHYSTER, and I'm here to tell
you that you my have already won $AMOUNT!!
To collect your winnings, please send $PAYMENT
to ADDRESS.
)

View file

@ -0,0 +1,12 @@
load 'strings'
name =: 'John Q. Public'
shyster =: 'Ed McMahon'
amount =: 1e6
payment =: 2 * amount
address =: 'Publisher''s Clearing House'
targets =: ;: 'NAME SHYSTER AMOUNT PAYMENT ADDRESS'
sources =: ":&.> name;shyster;amount;payment;address
message =: template rplc targets,.sources

View file

@ -0,0 +1,5 @@
load 'printf'
'This should look %d%% familiar \nto programmers of %s.' sprintf 99;'C'
This should look 99% familiar
to programmers of C.