基于mkdocs-material实现的帮助中心(markdown + 中文搜索 + 图片放大)
需求 整站文档使用markdown,方便产品&运营童鞋们编写 支持搜索 点击图片能放大 最终完成效果如下:左侧导航栏支持多层级嵌套,右侧为当前文档内标题导航。 顶部右侧搜索栏(目前只支持分词搜索,不支持整句): 图片放大: 实现 mkdocs-demo.git 更全面的信息请移步官网:mkdocs官网mkdocs-material官网 环境搭建 p...
基于微信小程序的校园物业报修小程序开发笔记一
学生和员工需求: 学生和员工在校园内可能遇到各种维修问题,如故障的电灯、漏水、损坏的设备等。他们需要一种便捷的方式来报修问题并追踪报修进度。
2023-10-30
正则表达式
正则表达式 目录 正则表达式特殊序列 表 []表范围 re模块 {代码...} re 所定义的 flag 包括: {代码...} 为何要用r前缀 以下两种用法结果相同:(A) {代码...} (B) {代码...} 因此使用Python的r前缀,就不用考虑转义的问题了 {代码...} search re.search(pattern, string[, flags])`在字符串中查找匹配正则表达式模式的...
2016-12-20
AngularJS 2 Quick Start
Angular2 是 Google 用于构建基于浏览器的复杂应用的下一代 MV* 框架。该项目是我学习 Angular2 的入门项目,我觉得它很友好地表达了 Angular2 的有趣实现方式,并更易于了解和入门。它涵盖了 Angular2 的一些基本概念,包括:组件(Component)、模型(Model)、服务(Service)、管道(Pipe)、传入传出(Input / Outp...
[LeetCode] Valid Perfect Square
Given a positive integer num, write a function which returns True if num is a perfect square else False.
2016-07-26
LeetCode[285] Inorder Successor in BST
Given a binary search tree and a node in it, find the in-order successor of that node in the BST. Note: If the given node has no in-order successor in the tree, return null.
2016-11-01
快排序找出第k小/大的数
程序代码:找出数组的第k小。找第k大也类似。 {代码...}
2020-03-26
SAP CRM的状态管理和权限控制的集成
CRM status management framework supports the authorization concept as below.Customer can choose that only specific user group (with dedicated PFCG role) contains the authorization to change the status of transaction/activity to specific status, e.g. “Completed” and “Cancelled”.Other user group (w...
2020-02-08
掌握模型性能:使用 GridSearchCV 调整超参数
Hyper参数是在学习机的学习过程之前设置的参数,在模型训练的学习过程中不会直接从数据中学习。与模型参数不同,这些参数不是从数据中学习的,超参数是由数据科学家或机器学习专家根据他们的知识和直觉确定的。
2023-07-24
elastic stack 那些事【4】
search api实现对es中存储的数据进行查询分析,endpoint为_search,如 GET /_search查询有两种形式URI searchRequest body search es 提供的完备的查询语法 Query DSL domain specific languageURI search通过url query参数来实现搜索,常用参数如下:q 指定查询的语句,语法为query string syntaxdf q 中不指定字段时默...
2022-12-24
LeetCode 108. Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
2018-01-12
leetcode109. Convert Sorted List to Binary Search Tree
在这里需要注意的是,因为提供的数据结构为链表,所以我们必须顺序遍历才能知道该链表的长度以及该链表的中间位置。在这里,我们可以采用递归的形式,而且在递归中我们通过双指针的方式找到其中的中间节点。并依次递归左子节点和右子节点。
[LeetCode] 108. Convert Sorted Array to Binary Search Tree
Given a sorted (increasing order) array, Convert it to create a binary tree with minimal height.
2016-03-05
Golang 用Olivere库操作Elastic Search
链接
2021-03-23
selenium 定位方式1
通过 HTML 代码中的 name 属性来定位元素。 name 属性的值有可能不是唯一的,这时,会找到多个元素,遇到此类情况,程序会优先选择第一个定位元素。
2020-08-03
uniApp实现自定义导航栏解析
最近在学习uni-app,由于是基于vue.js技术开发的,只要你熟悉vue,基本上很快就能上手了。在uni-app里面如何实现一些自定导航,比如支持一些标题、按钮、搜索、城市选择。。。
VuePress 博客之 SEO 优化(六)站长工具
前言在 《一篇带你用 VuePress + Github Pages 搭建博客》中,我们使用 VuePress 搭建了一个博客,最终的效果查看:TypeScript 中文文档。本篇接着讲讲 SEO 优化会用到的站长平台和工具等。1. 百度统计地址:[链接]网站流量分析工具,能够告诉用户访客是如何找到并浏览用户的网站,在网站上做了些什么2. 百度搜索资源平...