poe.com added a bot that can consume 75,000
words, that can read the code or papers and give suggestions based on it. It's amazing.
Code was generated by GPT-4
Save it to print.sh
and make it executable chmod +x ./print.sh
$ ./print.sh > all-code
would save all *.ts
and *.tsxto the
all-code` file
print.sh
#!/bin/bash
# Print the tree for .ts and .tsx files using the tree command, excluding .d.ts files and the node_modules directory
tree -I '*.d.ts|node_modules' -P '*.ts' -P '*.tsx' ./
# Print the content of each .ts and .tsx file with the file path, excluding .d.ts files and the node_modules directory
find ./ -type d -name 'node_modules' -prune -o \( -name "*.ts" -o -name "*.tsx" \) ! -name "*.d.ts" -print | while read -r file; do
echo
echo "$file"
echo
echo "\`\`\`"
cat "$file"
echo "\`\`\`"
done
- summarize
summarize the following software code
xxx
- how to add a new feature?
based on the previous context, if I would like to add a new feature that "xxxxxx", what files would I have to modify, what functions would be involoed, how can I add this feature?`