typescript-exercises(四)
取悦于人并不困难,问题只是你是否能够了解别人的喜恶心理。——卡耐基 题目: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970/*Intro: As we introduced "type" to both User and Admin it's now easier to distinguish between them. Once object type checking logic was extracted into separate functions isUser and isAdmin - logPerson function got new type errors.Exercise: Figure out how to help TypeScript understand types i...
typescript-exercises(三)
青年人的教育是国家的基石。——富兰克林 题面: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970/*Intro: Since we already have some of the additional information about our users, it's a good idea to output it in a nice way.Exercise: Fix type errors in logPerson function. logPerson function should accept both User and Admin and should output relevant information according to the input: occupation for User an...
typescript-exercises(二)
亲善产生幸福,文明带来和谐。——雨果 题目: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566/*Intro: All 2 users liked the idea of the community. We should go forward and introduce some order. We are in Germany after all. Let's add a couple of admins. Initially, we only had users in the in-memory database. After introducing Admins, we need to fix the types so that everything works well together.Exercise: Type &q...
typescript-exercises(一)
你要克服的是你的虚荣心、炫耀欲,你要对付的是你时刻想要出风头的小聪明。——毛姆 题目: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104/*Welcome to: ................................................................ . . . #################### #################### E . . ####################...
Apache Kyuubi
求学的三个条件是:多观察、多吃苦、多研究。——加菲劳 文档: Quick Start — Apache Kyuubi GitHub: https://github.com/apache/kyuubi Apache Kyuubi 是一个分布式多租户网关,用于在数据仓库和 Lakehouse 上提供无服务器 SQL。 Kyuubi 通过 Thrift JDBC/ODBC 接口提供纯 SQL 网关,供最终用户使用预编程和可扩展的 Spark SQL 引擎操作大规模数据。这种“开箱即用”的模型最大限度地减少了最终用户在客户端使用 Spark 的障碍和成本。在服务器端,Kyuubi服务器和引擎的多租户架构为管理员提供了实现计算资源隔离、数据安全、高可用性、高客户端并发等的方法。 类似 HiveServer2 的 API 多租户 Spark 支持 以无服务器方式运行 Spark Kyuubi 的目标是让anyone可以轻松高效地使用 Spark(也许很快还有其他引擎),并方便用户像处理普通数据一样处理大数据。这里, anyone意思是用户不需要有 Spark 技术背...
一个自带流程设计器的工作流引擎warmflow
你与别人花费一样的时间,因为别人用心,而你吊儿郎当,所以到了最后检验成果的时候,别人成功,而你除了赔了时间之后,一无所得。——飞行员舒克 一个自带流程设计器的工作流引擎终于迎来了这个激动人心的版本1.3.0,不需要在为引入设计器而烦恼了,按照以下前四点,可以快速接入业务系统,下面介绍如何使用设计器 1. 引入依赖<dependency> <groupId>io.github.minliuhua</groupId> <artifactId>warm-flow-plugin-ui-sb-web</artifactId> <version>1.3.0</version> </dependency> 2. 后端放行部分路径 1、这两个路径需要放行,否则无法访问,/warm-flow-ui/**, /warm-flow/** 2、以下是spring-security放行配置示例 @Bean protected SecurityFilterC...
AjPlus Captcha
如同明日将死那样生活,如同永远不死那样求知。——甘地 行为验证码(滑动拼图、点选文字),前后端(java)交互,包含h5/Android/IOS/flutter/uni-app的源码和实现 github: https://github.com/anji-plus/captcha 在线文档:https://ajcaptcha.beliefteam.cn/captcha-doc/简介 AJ-Captcha行为验证码,包含滑动拼图、文字点选两种方式,UI支持弹出和嵌入两种方式。后端提供Java实现,前端提供了php、angular、html、vue、uni-app、flutter、android、ios等代码示例。 1 在线体验在线体验暂时下线 2 功能概述 2.1 组件介绍 行为验证码采用嵌入式集成方式,接入方便,安全,高效。抛弃了传统字符型验证码展示-填写字符-比对答案的流程,采用验证码展示-采集用户行为-分析用户行为流程,用户只需要产生指定的行为轨迹,不需要键盘...
slidev单文件页面
一个家庭中没有书籍,等于一间房子没有窗子。——约翰森 安装: 1npm i -g @slidev/cli 启动: 1slidev slides.md 对应的文件slides.md 1
protocol示例
没有意义的事物是最美丽的。——《新名字的故事》 github: https://github.com/protocolbuffers/protobuf 官方文档: https://protobuf.dev/ Protocol Buffers(又名 protobuf)是 Google 的语言中立、平台中立、可扩展的机制,用于序列化结构化数据。您可以在protobuf 的文档中了解更多信息。 使用 Protocol Buffers 在前后端传输数据的示例。后端使用 Spring Boot,前端使用 Parcel 和 JavaScript,前后端通过 .proto 文件定义的 Person 类进行数据传输。 后端 (Java - Spring Boot) pom.xml (包含 Spring Boot 和 Protocol Buffers 的依赖): 12345678910111213141516171819202122232425262728293031323334353637383940414243444546<project xmlns="http://mav...
carbon
一条路并不因为它路边长满荆棘而丧失其美丽,旅行者照旧向前进。——罗曼·罗兰 github: https://github.com/dromara/carbon 一个轻量级、语义化、对开发者友好的 golang 时间处理库,支持链式调用,已被 awesome-go-cn 收录 github.com/golang-module/carbon gitee.com/golang-module/carbon 安装使用Golang 版本大于等于 1.17 (推荐)123456789// 使用 github 库go get -u github.com/golang-module/carbon/v2import "github.com/golang-module/carbon/v2"// 使用 gitee 库go get -u gitee.com/golang-module/carbon/v2import "gitee.com/golang-module/carbon/v2" Golang 版本小于 1.17 ...
