2作者: 9999000009997 个月前原帖
我是一名非常普通的开发者,手头有一点空闲时间。因为这比买彩票便宜,我时不时会向YC(创业公司孵化器)推介我的副项目。 目前我正在开发一款开源的卡牌游戏,在我的梦想中,我想象着一个热爱游戏的慈善家为每个人资助小型开源游戏。 如果我有一天发财,我就会这样做。 但在那之前,我是应该仅仅推介我的卡牌游戏,还是尝试拼凑一些基于大型语言模型(LLM)的工具呢? 唯一的成本就是我的自尊心!
4作者: vincentyyy7 个月前原帖
A01 是一个新闻阅读器,您可以用简单的英语定义自己的算法。<p>例如,您可以这样提示它: • “我想关注最近的人工智能初创公司及其首次融资情况。” • “我想获取有关稳定币的监管变化和执法行动的更新。”<p>每隔几小时,后台会获取新文章,将其嵌入,并根据您的提示对每篇文章进行评分。只有最相关的内容会显示出来。没有参与度指标、趋势诱饵或“您可能还喜欢”的填充内容。<p>我之所以构建这个,是因为每次我打开 Twitter 或 LinkedIn 以获取信息时,总是会陷入与主题无关的内容。我想要一个有意图的资讯流:只展示我所要求的内容,其他的都不需要。<p>这是直接的 TestFlight 链接(100 个名额): <a href="https:&#x2F;&#x2F;testflight.apple.com&#x2F;join&#x2F;bgPEKf3M" rel="nofollow">https:&#x2F;&#x2F;testflight.apple.com&#x2F;join&#x2F;bgPEKf3M</a><p>如果名额已满,您可以在 www.a01ai.com 请求访问。输入您的电子邮件后,邀请将自动发送。无需账户或付款。<p>即将推出:随时修改您的提示、负面过滤器(例如“不要显示 X”)以及其他控制选项,让您完全掌控您的资讯流逻辑。<p>期待您的想法和反馈。
1作者: zhousg7 个月前原帖
HarmonyOS 5 新闻应用 - 敲击分享功能实现案例 摘要 本文详细介绍了在 HarmonyOS 5.0 新闻应用中实现敲击分享功能的过程。使用 KnockManager 类来管理敲击分享事件并实现新闻内容的分享。 ```typescript export class KnockManager { private static instance: KnockManager private ctx?: common.UIAbilityContext private isBind: boolean = false private news?: NewsModel static getInstance(ctx: common.UIAbilityContext, news: NewsModel) { if (!KnockManager.instance) { KnockManager.instance = new KnockManager(ctx, news) } return KnockManager.instance } constructor(ctx: common.UIAbilityContext, news: NewsModel) { this.ctx = ctx } // 处理敲击逻辑 knockCallback(target: harmonyShare.SharableTarget) { if (this.news && this.ctx) { // 示例封面是媒体资源,写入沙盒 const media = this.ctx.resourceManager.getMediaContentSync(this.news.cover as Resource) const filePath = this.ctx.filesDir + '/share_' + Date.now() + '.png' const file = fileIo.openSync(filePath, fileIo.OpenMode.READ_WRITE | fileIo.OpenMode.CREATE) fileIo.writeSync(file.fd, media.buffer) const uri = fileUri.getUriFromPath(filePath) // 创建分享数据 const shareData: systemShare.SharedData = new systemShare.SharedData({ utd: uniformTypeDescriptor.UniformDataType.HYPERLINK, content: 'https://edition.cnn.com/2025/06/20/sport/lionel-messi-club-world-cup-inter-miami-spt', thumbnailUri: uri, title: this.news.title, description: this.news.company, }) // 敲击分享 target.share(shareData) } } bindEvent() { if (!this.isBind) { harmonyShare.on('knockShare', (target) => { this.knockCallback(target) }) this.isBind = true } } unBindEvent() { harmonyShare.off('knockShare') this.isBind = false } } ```
1作者: zhousg7 个月前原帖
HarmonyOS 5 新闻应用 - 系统分享功能实现案例 摘要 本文详细介绍了在 HarmonyOS 5.0 新闻应用中实现系统分享功能的过程。通过使用 BarButton 组件和 systemShare 模块,实现了新闻链接的分享功能。 ```javascript BarButton({ icon: $r('sys.media.ohos_ic_public_share') }) .onClick(() => { // 系统分享 const data = new systemShare.SharedData({ utd: uniformTypeDescriptor.UniformDataType.HYPERLINK, title: 'NewsAPP', content: ' `https://edition.cnn.com/` ' }); const controller = new systemShare.ShareController(data); const ctx = this.getUIContext().getHostContext() as common.UIAbilityContext; controller.show(ctx, { previewMode: systemShare.SharePreviewMode.DETAIL, selectionMode: systemShare.SelectionMode.SINGLE }); }); ```