Skip to content

Commit

Permalink
fix notifier test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DjangoPeng committed Aug 25, 2024
1 parent 54449f8 commit a638217
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 59 deletions.
119 changes: 61 additions & 58 deletions src/jupyter/hacker_news_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@
"cell_type": "code",
"execution_count": 1,
"id": "fdcc843e-a841-4850-8fb5-3ea37956606c",
"metadata": {
"collapsed": true,
"jupyter": {
"outputs_hidden": true
}
},
"metadata": {},
"outputs": [
{
"ename": "AttributeError",
Expand Down Expand Up @@ -296,74 +291,74 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"id": "b63e7f38-1a0e-4271-85cc-29c17584c78d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1. Ask HN: What are you working on (August 2024)?\n",
"1. Strandbeest\n",
" Link: https://www.strandbeest.com/\n",
"2. Ask HN: What are you working on (August 2024)?\n",
" Link: item?id=41342017\n",
"2. Defenders think in lists, attackers think in graphs (2015)\n",
"3. Defenders think in lists, attackers think in graphs (2015)\n",
" Link: https://github.com/JohnLaTwC/Shared/blob/master/Defenders%20think%20in%20lists.%20Attackers%20think%20in%20graphs.%20As%20long%20as%20this%20is%20true%2C%20attackers%20win.md\n",
"3. Neurotechnology Numbers Worth Knowing\n",
"4. Postgres as a Search Engine\n",
" Link: https://anyblockers.com/posts/postgres-as-a-search-engine\n",
"5. A World Split Apart (1978)\n",
" Link: https://www.solzhenitsyncenter.org/a-world-split-apart\n",
"6. Modern Wardriving\n",
" Link: https://simonroses.com/2023/12/modern-wardriving/\n",
"7. Neurotechnology numbers worth knowing (2022)\n",
" Link: https://milan.cvitkovic.net/writing/neurotechnology_numbers_worth_knowing/\n",
"4. Papersway – a scrollable window management for Sway/i3wm\n",
" Link: https://spwhitton.name/tech/code/papersway/\n",
"5. Transfer energy from nitrogen to argon enables 2-wayl cascaded lasing in air\n",
" Link: https://phys.org/news/2024-08-mechanism-energy-nitrogen-argon-enables.html\n",
"6. AMD's Radeon 890M: Strix Point's Bigger iGPU\n",
" Link: https://chipsandcheese.com/2024/08/24/amds-radeon-890m-strix-points-bigger-igpu/\n",
"7. Serpent OS Prealpha0 Released\n",
" Link: https://serpentos.com/blog/2024/08/01/serpent-os-prealpha0-released/\n",
"8. Consistently Making Wrong Decisions Whilst Writing Recreational C\n",
" Link: https://amodernist.com/texts/fun-c.html\n",
"8. Degrees of Kevin Bacon Using Postgres\n",
" Link: https://www.crunchydata.com/blog/six-degrees-of-kevin-bacon-postgres-style\n",
"9. You are not dumb, you just lack the prerequisites\n",
" Link: https://lelouch.dev/blog/you-are-probably-not-dumb/\n",
"10. Generating Mazes\n",
"10. Sticker on caption phone says that using the captions can be illegal. Why?\n",
" Link: https://law.stackexchange.com/questions/104642/sticker-on-caption-phone-says-that-using-the-captions-can-be-illegal-why\n",
"11. AMD's Radeon 890M: Strix Point's Bigger iGPU\n",
" Link: https://chipsandcheese.com/2024/08/24/amds-radeon-890m-strix-points-bigger-igpu/\n",
"12. Consistently Making Wrong Decisions Whilst Writing Recreational C\n",
" Link: https://amodernist.com/texts/fun-c.html\n",
"13. A 4096 channel event-based multielectrode array with asynchronous outputs\n",
" Link: https://www.nature.com/articles/s41467-024-50783-2\n",
"14. Generating Mazes\n",
" Link: https://healeycodes.com/generating-mazes\n",
"11. Show HN: Visualize database schemas with a single query\n",
"15. Papersway – a scrollable window management for Sway/i3wm\n",
" Link: https://spwhitton.name/tech/code/papersway/\n",
"16. The Treacherous Optimization (2006)\n",
" Link: https://ridiculousfish.com/blog/posts/old-age-and-treachery.html\n",
"17. Transferring energy from nitrogen to argon enables 2-way cascaded lasing in air\n",
" Link: https://phys.org/news/2024-08-mechanism-energy-nitrogen-argon-enables.html\n",
"18. Ruby's official documentation just got a new look\n",
" Link: https://docs.ruby-lang.org/en/master/\n",
"19. Serpent OS Prealpha0 Released\n",
" Link: https://serpentos.com/blog/2024/08/01/serpent-os-prealpha0-released/\n",
"20. Show HN: Visualize database schemas with a single query\n",
" Link: https://github.com/chartdb/chartdb\n",
"12. Small Strings in Rust: smolstr vs. smartstring\n",
" Link: https://fasterthanli.me/articles/small-strings-in-rust\n",
"13. Hot Page – a graphical site builder\n",
" Link: https://hot.page/\n",
"14. Shell.how: Explain Shell Commands\n",
"21. Anthropic Claude 3.5 can create icalendar files, so I did this\n",
" Link: https://gregsramblings.com/stupid-but-useful-ai-tricks-creating-calendar-entries-from-an-image-using-anthropic-claude-35\n",
"22. Show HN: Cursor AI Rules Directory (Open Source)\n",
" Link: https://cursor.directory\n",
"23. Shell.how: Explain Shell Commands\n",
" Link: https://www.shell.how\n",
"15. \"YOLO\" is not a valid hash construction\n",
" Link: https://blog.trailofbits.com/2024/08/21/yolo-is-not-a-valid-hash-construction/\n",
"16. Founder and CEO of Telegram arrested at French airport – report\n",
" Link: https://old.reddit.com/r/worldnews/comments/1f0g013/founder_and_ceo_of_telegram_arrested_at_french/\n",
"17. Postgres as a Search Engine\n",
" Link: https://anyblockers.com/posts/postgres-as-a-search-engine\n",
"18. NASA announces Boeing Starliner crew will return on SpaceX Crew-9\n",
" Link: https://twitter.com/NASA/status/1827393397939634503\n",
"19. Julius: Open-source reimplementation of Caesar III\n",
" Link: https://github.com/bvschaik/julius\n",
"20. ArcticDB: Why a Hedge Fund Built Its Own Database\n",
" Link: https://www.infoq.com/presentations/arcticdb/\n",
"21. Birds aren't real – how to create your own \"bird\"\n",
"24. Hot Page – a graphical site builder\n",
" Link: https://hot.page/\n",
"25. Small Strings in Rust: smolstr vs. smartstring\n",
" Link: https://fasterthanli.me/articles/small-strings-in-rust\n",
"26. Show HN: Permify 1.0 – Open-source fine-grained authorization service\n",
" Link: https://github.com/Permify/permify\n",
"27. Birds aren't real – how to create your own \"bird\"\n",
" Link: https://www.lampysecurity.com/post/birds-aren-t-real-how-to-create-your-own-bird\n",
"22. Techniques for safe garbage collection in Rust\n",
" Link: https://kyju.org/blog/rust-safe-garbage-collection/\n",
"23. Ruby's official documentation just got a new look\n",
" Link: https://docs.ruby-lang.org/en/master/\n",
"24. Golang Interpreter Written in PHP\n",
" Link: https://github.com/tuqqu/go-php\n",
"25. Telegram founder Pavel Durov arrested at French airport\n",
" Link: https://www.theguardian.com/media/article/2024/aug/24/telegram-app-founder-pavel-durov-arrested-at-french-airport\n",
"26. Implementing React from Scratch\n",
" Link: https://www.rob.directory/blog/react-from-scratch\n",
"27. Show HN: High school robotics code/CAD/design binder release\n",
" Link: https://www.chiefdelphi.com/t/team-341-miss-daisy-2024-cad-code-and-design-binder-release/467546\n",
"28. The Vital Necessity of Very Old Books (2023)\n",
" Link: https://www.millersbookreview.com/p/vital-necessity-of-very-old-books\n",
"29. OneText (YC W23) Is Hiring a Chief of Staff\n",
" Link: https://www.ycombinator.com/companies/onetext/jobs/B1RIFNb-founding-chief-of-staff\n",
"30. Anthropic Claude 3.5 can create icalendar files, so I did this\n",
" Link: https://gregsramblings.com/stupid-but-useful-ai-tricks-creating-calendar-entries-from-an-image-using-anthropic-claude-35\n"
"28. Julius: Open-source reimplementation of Caesar III\n",
" Link: https://github.com/bvschaik/julius\n",
"29. \"YOLO\" is not a valid hash construction\n",
" Link: https://blog.trailofbits.com/2024/08/21/yolo-is-not-a-valid-hash-construction/\n",
"30. Techniques for safe garbage collection in Rust\n",
" Link: https://kyju.org/blog/rust-safe-garbage-collection/\n"
]
}
],
Expand Down Expand Up @@ -482,6 +477,14 @@
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "b280e52a-9588-470d-9b7c-1e044c6ccfdc",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
3 changes: 2 additions & 1 deletion src/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def send_email(self, repo, report):
config = Config()
notifier = Notifier(config.email)

test_repo = "DjangoPeng/openai-quickstart"
test_report = """
# DjangoPeng/openai-quickstart 项目进展
Expand All @@ -54,4 +55,4 @@ def send_email(self, repo, report):
- 关闭了一些未解决的问题。
"""
notifier.notify(test_report)
notifier.notify(test_repo, test_report)

0 comments on commit a638217

Please sign in to comment.