Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Base64-decode-data/J/base64-decode-data-1.j
Normal file
4
Task/Base64-decode-data/J/base64-decode-data-1.j
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
require'convert/misc/base64'
|
||||
frombase64 'VG8gZXJyIGlzIGh1bWFuLCBidXQgdG8gcmVhbGx5IGZvdWwgdGhpbmdzIHVwIHlvdSBuZWVkIGEgY29tcHV0ZXIuCiAgICAtLSBQYXVsIFIuIEVocmxpY2g='
|
||||
To err is human, but to really foul things up you need a computer.
|
||||
-- Paul R. Ehrlich
|
||||
6
Task/Base64-decode-data/J/base64-decode-data-2.j
Normal file
6
Task/Base64-decode-data/J/base64-decode-data-2.j
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
BASE64=: (a.{~ ,(a.i.'Aa') +/i.26),'0123456789+/'
|
||||
|
||||
frombase64=: {{
|
||||
pad=. _2 >. (y i. '=') - #y
|
||||
pad }. a. {~ #. _8 [\ , (6#2) #: BASE64 i. y
|
||||
}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue