【Hacker News搬运】显示HN:有一天,Gmail/谷歌应用程序脚本的开源日历替代品
-
Title: Show HN: Someday, Open-Source Calendly Alternative for Gmail / Google App Script
显示HN:有一天,Gmail/谷歌应用程序脚本的开源日历替代品
Text: Free and open-source. Simple alternative to cal.com / calendly, built on Google-App-Script for Gmail users. Built with modern technologies like React, TypeScript, Shadcn/UI, and Vite.
免费和开源。cal.com的简单替代方案;按时间顺序,为Gmail用户构建了基于Google App Script的应用程序。采用React、TypeScript、Shadcn等现代技术构建;UI和Vite。
Url: https://github.com/rbbydotdev/someday
很抱歉,我无法直接访问或处理互联网上的外部链接,包括 GitHub 仓库。不过,我可以提供一些关于如何使用 `JinaReader` 工具来分析 GitHub 仓库内容的概述。 `JinaReader` 是一个用于从文本中提取和总结信息的工具。以下是一个基本的步骤指南,说明如何使用 `JinaReader` 来分析 GitHub 仓库内容,并假设内容需要翻译成中文: 1. **安装 JinaReader**: 首先,你需要安装 `JinaReader`。如果你还没有安装,可以通过以下命令安装: ```bash pip install jina
-
安装翻译库:
由于JinaReader
本身不包含翻译功能,你需要安装一个支持翻译的库,如googletrans
,用于将非中文内容翻译成中文。pip install googletrans==4.0.0-rc1
-
设置翻译器:
在你的 Python 代码中,设置一个翻译器实例,用于处理非中文内容。from googletrans import Translator translator = Translator()
-
分析 GitHub 仓库内容:
使用JinaReader
的summarize
函数来分析内容。如果你需要分析的是 GitHub 仓库的 Readme 文件或任何其他文档,你可以使用 GitHub API 来获取内容。假设你已经从 GitHub API 获取了内容,以下是如何使用
JinaReader
和翻译器来处理这些内容的示例代码:from jina import Jina from jina.executors.summarizers import Summarizer from googletrans import Translator translator = Translator() def translate_to_chinese(text): translation = translator.translate(text, dest='zh-cn') return translation.text class CustomSummarizer(Summarizer): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.translator = translator def __call__(self, *args, **kwargs): # 翻译非中文内容 text = super().__call__(*args, **kwargs) if 'en' in self.translator.detect(text).lang: text = self.translator.translate(text, dest='zh-cn').text return text # 初始化 Jina 流 jina = Jina() # 注册自定义的 Summarizer jina.add_custom_summarizer(CustomSummarizer) # 加载 GitHub 仓库内容 with open('path_to_your_file_or_API_response', 'r') as file: content = file.read() # 分析并总结内容 summary = jina.summarize(content) print(summary) # 关闭 Jina 流 jina.close()
请注意,上述代码只是一个示例,实际应用中你可能需要根据 GitHub API 的具体实现来获取仓库内容,并且可能需要处理不同的文件格式或多个文件。
在处理 GitHub 仓库时,请确保遵守 GitHub 的使用条款和 API 使用限制。
## Post by: rbbydotdev ### Comments: **adobrawy**: This project is awesome! Using Google Apps Script for an appointment link is such a clever idea—just the right balance of simplicity and functionality.<p>Google Apps Script is such an underrated tool. I use it all the time to link up different services, and it’s truly “serverless” in a way that makes sense. No added complexity—just webhook handling and periodic tasks, which is usually all I need to sync ticket systems with Slack, pull in data from Sentry, and so on. Plus, it’s straightforward, no extra layers to worry about. LLMs are actually pretty handy for getting these scripts going too.<p>I use Google Calendar’s scheduling and think it’s great, but it does have limits. I still have to scrape calendar events to keep an ongoing list in a spreadsheet, which helps for billing clients by month. Google Apps Script makes all this work reliably without extra cost or maintenance.<p>There are other options, sure, but asking someone to set up PostgreSQL, Next.js, or Docker just for a personal scheduling link seems like overkill. For a solution that just works without needing constant attention, Apps Script is more than enough. > **adobrawy**: 这个项目太棒了!将Google Apps Script用于约会链接是一个非常聪明的想法——简单性和功能性的完美平衡<p> Google Apps Script是一个被低估的工具。我一直在使用它来链接不同的服务,它在某种程度上是真正的“无服务器”。没有增加复杂性——只有webhook处理和定期任务,这通常是我将工单系统与Slack同步、从Sentry获取数据等所需的全部。此外,它很简单,不需要担心额外的层。LLM实际上对于启动这些脚本也非常方便<p> 我使用谷歌日历的日程安排,认为它很棒,但它确实有局限性。我仍然需要抓取日历事件,以便在电子表格中保存一个持续的列表,这有助于按月向客户计费。Google Apps Script使所有这些工作可靠,无需额外成本或维护<p> 当然,还有其他选择,但要求别人设置PostgreSQL、Next.js或Docker只是为了个人日程安排链接似乎有些过头了。对于一个不需要持续关注就能正常工作的解决方案,Apps Script就足够了。 **Jonathanfishner**: Really interesting to see this built on Google Apps Script such an underrated gem for quick, reliable automations! Cal.com is already out there and doing great, but it’s still cool to see this lightweight approach. Sometimes simpler is just better, especially for folks who don’t need a full setup and just want a scheduling tool that ties right into Gmail.<p>It may be early, but great job putting it out there! Appreciate seeing alternatives that keep things lean and accessible-nice work! > **Jonathanfishner**: 非常有趣的是,它建立在谷歌应用脚本之上,是一个被低估的快速、可靠的自动化宝石!Cal.com已经在那里,做得很好,但看到这种轻量级的方法仍然很酷。有时,简单就是更好,尤其是对于那些不需要完整设置,只想要一个与Gmail直接绑定的日程安排工具的人来说<p> 这可能很早,但把它放在那里做得很好!很感激看到其他选择,让事情变得简洁明了,做得很好! **winrid**: Has anyone built this but for fastmail? > **winrid**: 除了fastmail,还有人做过这个吗? **tonymet**: it’s great to see more utilities taking advantage of Google App Script. It is one of the best things about Google’s Ecosystem, basically a server-side AppleScript for Google’s products, and not enough people take advantage of it. > **tonymet**: 很高兴看到更多的实用程序利用Google App Script。这是谷歌生态系统最好的东西之一,基本上是谷歌产品的服务器端AppleScript,没有足够的人利用它。 **zephyreon**: Google also revamped their appointment scheduling feature in Google Calendar, though I believe it is limited to Google Workspace subscribers. It’s basic but works quite well.<p><a href="https://workspace.google.com/resources/appointment-scheduling/" rel="nofollow">https://workspace.google.com/resources/appointment-schedulin...</a> > **zephyreon**: 谷歌还改进了他们在谷歌日历中的约会安排功能,尽管我认为它仅限于谷歌工作区订阅者。这是基本的,但效果很好<p> <a href=“https:”workspace.google.com“”resources“”约会日程安排“”rel=“nofollow”>https:”/;google.com;资源;预约时间表</一
-