Skip to content

Instantly share code, notes, and snippets.

@secwang
Created December 3, 2023 20:44
Show Gist options
  • Save secwang/a8897c5d52d5476490394c11d514d71b to your computer and use it in GitHub Desktop.
Save secwang/a8897c5d52d5476490394c11d514d71b to your computer and use it in GitHub Desktop.
camp sh and http command
hc ← ⎕SE.SALT.Load'HttpCommand'
a ← {hc.Get 'https://api.kanye.rest/'}
b←{⎕sh 'curl -s "https://api.kanye.rest/"'}
)copy dfns cmpx
cmpx 'a 0' 'b 0'
a 0 → 1.3E0 | 0% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕
* b 0 → 1.1E0 | -18% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment