Skip to content

Instantly share code, notes, and snippets.

View dziban303's full-sized avatar
πŸ’­
πŸ±β€πŸ‰

Dziban303 dziban303

πŸ’­
πŸ±β€πŸ‰
View GitHub Profile
@dziban303
dziban303 / wolf.sh
Created July 4, 2022 19:40 — forked from josheinstein/wolf.sh
Simple Wolfram Alpha queries from the Mac terminal. The XML parsing is incredibly basic (it just looks complicated because of the work needed to indent the lines to make it look good) so I haven't really tested it with any other results yet.
url="http://api.wolframalpha.com/v2/query"
appid="YOUR APP ID" # get one at https://developer.wolframalpha.com/portal/apisignup.html
query="$@"
value="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$query")"
echo "Computing: $query"
curl -s -L -G -d "input=$value&appid=$appid&format=plaintext" $url >/tmp/wolfram-alpha.xml
xsltproc ~/Scripts/wolf.xslt /tmp/wolfram-alpha.xml
@dziban303
dziban303 / code_colors_discordjs.md
Created December 10, 2024 20:49 — forked from thomasbnt/code_colors_discordjs.md
Code colors for embed discord.js

Here is an updated list of the colors that are currently implemented with a name. To using colors on discord.js, this is a typedef Colors, Colors.Aqua to get the Aqua color.

Name Int value Hex Code
Default 0 #000000
Aqua 1752220 #1ABC9C
DarkAqua 1146986 #11806A
Green 5763719 #57F287
DarkGreen 2067276 #1F8B4C