mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +00:00
Update wolframalpha.nu
documented commands
This commit is contained in:
parent
806956529a
commit
aae15eecb1
1 changed files with 6 additions and 2 deletions
|
@ -1,11 +1,15 @@
|
|||
def wolfram [...query] {
|
||||
#Fetch simple anwser from WolframAlpha API
|
||||
def wolfram [...query #Your query
|
||||
] {
|
||||
let appID = #YOUR APP_ID
|
||||
let query_string = ($query | str collect " ")
|
||||
let result = (fetch ("https://api.wolframalpha.com/v1/result?" + ([[appid i]; [$appID $query_string]] | to url)))
|
||||
$result + ""
|
||||
}
|
||||
|
||||
def wolframimg [...query] {
|
||||
#Fetch image with full anwser from WolframAlpha API
|
||||
def wolframimg [...query #Your query
|
||||
] {
|
||||
let appID = #YOUR APP_ID
|
||||
let query_string = ($query | str collect " ")
|
||||
let filename = ($query_string + ".png")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue