Skip to content

Commit

Permalink
add twitter script
Browse files Browse the repository at this point in the history
  • Loading branch information
wizicer committed Aug 7, 2024
1 parent fb15264 commit 1a377de
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/zkweekly/twitter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output.md
6 changes: 6 additions & 0 deletions docs/zkweekly/twitter/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
http://localhost:5173/zkweekly/twitter/output.html



————
以上由本人 @icerdesign 收集整理及注释,欢迎转发,署名即可。查看往期可访问:https://zkshanghai.xyz/zkweekly/2024/q3.html
1 change: 1 addition & 0 deletions docs/zkweekly/twitter/prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
翻译以下ZKP专题的内容为英文,同时请不要改变原始内容的格式,尤其不要变成markdown,这个是纯文本的内容:
15 changes: 15 additions & 0 deletions docs/zkweekly/twitter/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e

input=../2024/q3.md
output="output.md"

sedi=(-i) && [ "$(uname)" == "Darwin" ] && sedi=(-i '')

cp "$input" "$output"

sed "${sedi[@]}" -e 's/^- /- \\\+ /g' "$output"
sed "${sedi[@]}" -E 's/^ \[(.*)\]\((.*)\)/\n - \n - \\\- \1: \2/g' "$output"

sed "${sedi[@]}" -E 's/## 一周ZKP新闻 - ([0-9.]+)/## 🚀 zkWeekly - \1\n<br\/>\n/g' "$output"

0 comments on commit 1a377de

Please sign in to comment.