393 karma · joined January 5, 2024
```
#!/bin/bash
# Required parameters: # @raycast.schemaVersion 1 # @raycast.title Ask LLM # @raycast.mode fullOutput
# Optional parameters: # @raycast.icon # @raycast.argument1 { "type": "text", "placeholder": "Your question" }
# Documentation: # @raycast.author Your Name # @raycast.authorURL https://github.com/you
QUERY="$1" [ -z "$QUERY" ] && exit 0
FULL_QUERY="Answer in as little words as possible, concisely, for an intelligent person: $QUERY"
# URL encode (pure bash) encode_query() { local query="$1" local encoded="" local c for (( i=0; i<${#query}; i++ )); do c="${query:$i:1}" case $c in [a-zA-Z0-9.~_-]) encoded+="$c" ;; *) encoded+=$(printf '%%%02X' "'$c") ;; esac done echo "$encoded" }
ENCODED_QUERY=$(encode_query "$FULL_QUERY")
# Get response RESPONSE=$(curl -s "https://ch.at/?q=$ENCODED_QUERY")
# Output to Raycast echo "$RESPONSE"
# --- Optional: also pop up a big dialog --- osascript -e 'display dialog "'"$RESPONSE"'" buttons {"OK"} default button 1 with title "LLM Answer"'
```
then use `c "the prompt"`
Some app like Windsurf can easily pay with Alipay, a everyone-app in China.
Love to try the Claude Code VScode extension if the price is right and purchase-able from China.
Particularly, if one using ASE or other higher level wrapper of calculators(like quacc), he can share all the params in just one python script.
If not, just share the INCARs and POSCARs using a github link or whatsoever.
Honestly, I'm kind of frustrated now, too many work is close-source in this area. The research paper will tell you everything except how to reproduce this work in minimal effort, it's like they are hiding something.
They also using a `Origin` to plot and MS Word to write paper, which is also non-free licensed, and made them harder to collaborate and reproduce.
Yume 2kki [1] is a fan-made game of Yume Nikki [2].
Play the game here: https://ynoproject.net/2kki/
And thank you for your advice. I can't find a cheep and reliable marketplace for an old 3090 in China.
Our school provide some V100s on cluster, it may be tricky but able to run some program.