write a shell script with multiple line 12- |- if [ "$ENV" == "pro" ]; then cancel a job 1exit 1 [ -z "$Base_Ref" ] -z: Tests if the variable is empty or undefined. echo "VAR2=$VAR2" >> variables.txt: > Redirects output, overwriting the file if it exists. >> Redirects output and appends it to the file, preserving existing content.
- February 20253
- January 20252
- November 20241
- November 20231
- September 20231
- June 20231
- March 20231
- November 20221
- July 20221
- March 20222
- January 20221
- December 20211
- November 20214
- October 20211
- September 20211
- August 20212
- July 20213
- June 20211
- May 20211
- March 20211
- August 20196
- July 20191
- May 20191
- April 20192
- March 20193
- February 20191
- December 20181
- November 20181
- October 20183
- September 20182
- August 201811
- June 20181
- May 20182
- January 20183
- December 20173
2025/02/23 comparison-api differs from options-api and hooks vue components jp 52 2025/02/20 rxjs, ts error, Property ‘next’ does not exist on type ‘Observable<’ subject is an extended version of Observable, and has next defined. a subject‘s type is transformed into an observable by calling piple. however the next prop remains available. for better ts practice, it’s recommended to separate ...
2023/7/19 CSS filter can form stacking context input‘s’ property hidden does not work in Safari 2024/11/15 Vertical or horizontal lines with gradient strokes in SVG won’t display. Keyword objectBoundingBox should not be used when the geometry of the applicable element has no width or no height, such as the case of a horizontal or vertical line, even when the line has actual thickness when vie...
前段时间微前端实践:single-spa+vite的方式对项目进行了整合,也用 使用 Gitlab CI/CD 自动打包和部署微前端 基础概念 jobs 定义在 pipeline 中的单个任务 stage 用于组合 job, 官方提供了一些默认值.pre build test deploy .post, 除了这些默认值以外, 可以通过全局关键字 stages 自定义 stage 是从上到下按序执行, stage 中的 job 是并行运行的, 可以通过 needs / dependencies 更改 pipeline 是一组 job 的集合, 也代表 CI/CD 处理流程, 这些 job 可以并行/按顺序运行 可以通过多种方式触发, 触发来源可通过 CI_PIPELINE_SOURCE 获取 (ci_pipeline_source) runner 一个应用程序, 在服务...
背景介绍前段时间微前端实践:single-spa+vite的方式对项目进行了整合,也用 使用 Gitlab CI/CD 自动打包和部署微前端 微前端目前已经是非常成熟的前端技术,类似于微服务模式。允许使用不同的框架和技术栈,独立开发以及部署不同的模块。这也表示一个大型的应用可以拆分成小型的 “app”,在运行时再根据需要去整合以及加载这些 “app”。 优点很明显: 可以拆分巨石应用,也可以用于整合小应用 对灰色部署友好,可以渐进式替换或重写项目的某些部分 可以共享通用库, 比如 react / vue 这类包,可以加载一次后在多个微前端中复用 在着手开始做之前调研了一些比较流行的解决方案,也尝试过 QianKun, 最后衡量之下使用了 single-spa,我的场景是整合小型应用,它们的技术栈非常相似,都是 vite + vue,由于都是vue所以重合的包非常多 Single-...
名前 vs 名字名字 pecifically refer to a person’s family name or surname 人 vs 人間人間 is used when discussing the human race, human nature, or humans as a collective.あの人は医者です人間は感情を持っている動物です 表情 vs 顔色表情 focuses on expression (emotional display).顔色 focuses on color/complexion (physical appearance)(类似脸色、面色). 今まで vs これまでこれまで refer to a particular point in time or a certain period up to the present, slightly ...
quick review 53 にして 52 ところ, can refer to a situation or moment in which someone is busy or occupied. お忙しいところ、すみません 思ったより ということです, explaining or summarizing information (often in past tense) that was provided or heard てもらいませんか うち そうです このように, そのように 51, 日本の名字の起源と中国の名字の違い ~といわれています,express a common sence, It is believed that ~ People say that ~ “いわれています” is the passive form of 言う ~わけにはいき...
PBRanti-aliasing 反锯齿multi-sample anti-aliasing 多重采样, this is a build-in WebGL method, depending on GPU render1234const renderer = new WebGLRenderer({ antialias: true, // turn on anti-aliasing, to blur the edges of square pixels. }); renderer.physicallyCorrectLights = true; // camera two types of camera perspective projection 透视投影, the area in between the Near Clipping Plane and...
想要给大家介绍一个 i18n 插件,写这个插件的起源也是因为项目中对 i18n 的需求,这个插件覆盖了我们项目中遇到的大部分 i18n 需求,说不定也能覆盖你的,try 一 try 不后悔 集成 ChatGPT 和 YouDao,自动翻译功能开箱即用 如果对你有用,可以给个 star 吗 i18n-plan i18n-plan中文/English i18n-plan 是一个简单的 i18n Javascript 插件,支持基于 Node.js 和浏览器的 App,并且应该适用于所有 Javascript 框架。 i18n-plan 能做什么 生成和更新本地语言资源,只需执行一个命令即可 提供导出和导入功能以便高效地管理本地语言资源。可以将本地语言资源导出为 .xls 文件,也可以通过导入 .xls 文件对本地语言资源进行更新。此功能可以让团队协作管理本地语言资源 目前已...
原文地址:A step-by-step guide to building a chatbot based on your own documents with GPT 原文作者:Guodong (Troy) Zhao 译文出自:掘金翻译计划 本文永久链接:https://github.com/itcodes/gold-miner/blob/master/article/2023/A-step-by-step-guide-to-building-a-chatbot-based-on-your-own-documents-with-GPT.md 译者:tong-h 校对者: 与 ChatGPT 聊天是有趣且丰富的,过去一段时间我一直在与它闲聊并探索新的想法。但这些都是比较随机的用例,新奇感很快就减弱,尤其是当你意识到它可以产生幻觉的时候。 我们如何以更高效的方式使用它?随着 Ope...