摘要:
mkdocs https://www.mkdocs.org/ MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentat
阅读全文
posted @ 2022-09-22 23:43
lightsong
阅读(107)
推荐(0)
摘要:
LDAP https://www.onelogin.com/learn/what-is-ldap LDAP是一种软件协议, 用于查询一个网络内的信息和设备。 提供服务: 组织内的用户认证 简化访问内部服务器。 The Lightweight Directory Access Protocol (LD
阅读全文
posted @ 2022-09-22 11:28
lightsong
阅读(192)
推荐(0)
摘要:
oso https://github.com/osohq/oso Oso is a batteries-included framework for building authorization in your application. OSO是一款功能齐全的框架, 可以在应用中使用这个工具构建授权
阅读全文
posted @ 2022-09-22 10:59
lightsong
阅读(256)
推荐(0)
摘要:
JWT https://jwt.io/introduction 是一套开放的标准,定义了在两者之前安全传输信息的方法,信息的内容为JSON格式。 What is JSON Web Token? JSON Web Token (JWT) is an open standard (RFC 7519) t
阅读全文
posted @ 2022-09-15 10:00
lightsong
阅读(80)
推荐(0)
摘要:
ROUTER OF APP https://fastapi.tiangolo.com/tutorial/first-steps/ 如果应用比较简单,可以把所有的路径定义在app上。 如果应用非常庞大,有很多的逻辑,按照业务分为产生数十以上的路径,则需要用模块的方式拆分应用 路径也需要对应拆分,不能把
阅读全文
posted @ 2022-09-05 16:27
lightsong
阅读(146)
推荐(0)
摘要:
DI (Dependency Injection) https://www.freecodecamp.org/news/a-quick-intro-to-dependency-injection-what-it-is-and-when-to-use-it-7578c84fa88f/ 依赖注入 当一个
阅读全文
posted @ 2022-09-04 22:22
lightsong
阅读(118)
推荐(0)
摘要:
tox https://github.com/tox-dev/tox Command line driven CI frontend and development task automation tool. 功能特性: 子任务环境隔离 自动化任务执行 构建 测试 发布 At its core to
阅读全文
posted @ 2022-08-12 14:34
lightsong
阅读(121)
推荐(0)
摘要:
FastAPI Project Template https://github.com/rochacbruno/fastapi-project-template fastapi框架的脚手架, 集成的技术都是fastapi作者推荐的: SQLModel -- sqlachemy 和 pydantic的
阅读全文
posted @ 2022-08-02 00:24
lightsong
阅读(372)
推荐(0)
摘要:
amis https://gitee.com/baidu/amis 前端低代码框架,通过 JSON 配置就能生成各种后台页面,极大减少开发成本,甚至可以不需要了解前端。 https://aisuda.bce.baidu.com/amis/zh-CN/docs/index amis 的其它亮点 提供完
阅读全文
posted @ 2022-07-31 16:31
lightsong
阅读(3001)
推荐(1)
摘要:
Machine learning model serving in Python using FastAPI and streamlit https://davidefiocco.github.io/streamlit-fastapi-ml-serving/ 背景描述 ML工程师需要面向做出快速原型
阅读全文
posted @ 2022-07-30 10:27
lightsong
阅读(355)
推荐(0)
摘要:
eel https://github.com/ChrisKnott/Eel#intro electron是一种实现GUI单体应用的框架, GUI部分使用web前端技术, 后台运行在nodejs上。 虽然在同一个机器上,实际上实现了前后台分离。 nodejs属于web领域发展形成的后端平台, 对于py
阅读全文
posted @ 2022-07-29 00:11
lightsong
阅读(573)
推荐(0)
摘要:
引子 对于python开发者不用学习前端的知识,也希望能够做前后端一体的web应用。 优点: 提高开发效率; 减少用人成本。 发展道路, 从简到繁。 dominate -- 后端静态HTML https://github.com/Knio/dominate 纯粹产生前端HTML CSS代码. Dom
阅读全文
posted @ 2022-07-24 23:54
lightsong
阅读(161)
推荐(0)
摘要:
strapi https://github.com/strapi/strapi 无头CMS, 支持非常简单地、快速地创建安全API。 优点: 获得对自己数据的控制权 相对blog网站来说 自助选择服务器 数据库独立性 可定制 API creation made simple, secure and
阅读全文
posted @ 2022-07-24 17:42
lightsong
阅读(307)
推荐(0)
摘要:
gatsby https://www.gatsbyjs.com gatsby是前后端分离框架中, 负责前端显示的框架。 其通过 CMS API 和 数据库, 获取数据,并生成静态网页。有利于SEO. Maybe it's time your CMS had a faster frontend Gat
阅读全文
posted @ 2022-07-18 16:37
lightsong
阅读(221)
推荐(0)
摘要:
sqlachemy https://www.sqlalchemy.org/ 面向数据库的ORM工具,其仅仅做ORM工作,不做校验工作。 SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives appli
阅读全文
posted @ 2022-07-12 23:19
lightsong
阅读(1030)
推荐(0)
摘要:
class -- 普通数据聚合 https://python.land/objects-and-classes#What_is_a_Python_object 类可以用来管理聚合数据,但是本身类病是不是为数据管理设计。 class Car: speed = 0 started = False def
阅读全文
posted @ 2022-07-08 23:03
lightsong
阅读(111)
推荐(0)
摘要:
Background 对于一些场景, 我们要求词典对于不存在的key,不报错,返回默认值。 dict有处理方法, get 方法 或者 setdefault方法。 但是过于繁琐。 Handling Missing Keys in Dictionaries https://realpython.com/
阅读全文
posted @ 2022-07-07 22:34
lightsong
阅读(75)
推荐(0)
摘要:
MST -- Minumum Spinning Tree https://www.geeksforgeeks.org/kruskals-minimum-spanning-tree-algorithm-greedy-algo-2/?ref=leftbar-rightbar 简化一个图, 在保证所有节点
阅读全文
posted @ 2022-06-21 23:45
lightsong
阅读(93)
推荐(0)
摘要:
A Knight’s Tour https://www.tutorialspoint.com/The-Knight-s-tour-problem In chess, we know that the knight can jump in a special manner. It can move e
阅读全文
posted @ 2022-06-20 13:23
lightsong
阅读(83)
推荐(0)
摘要:
B - Unbalanced Squares https://atcoder.jp/contests/arc142/tasks/arc142_b 思路 按照第一行,第二行, ......, 第n行的顺序,将所有元素排成一行 X11, X12, ...., X1N, X21, X22, ...., X
阅读全文
posted @ 2022-06-20 12:00
lightsong
阅读(44)
推荐(0)
摘要:
Best First Search (Informed Search) https://www.geeksforgeeks.org/best-first-search-informed-search/ 最好优先搜索 BFS DFS使用暴力方式盲目搜索。 Best First 方式,使用评价函数来决定
阅读全文
posted @ 2022-06-17 21:24
lightsong
阅读(133)
推荐(0)
摘要:
A* Search Algorithm https://www.geeksforgeeks.org/a-search-algorithm/?ref=lbp 目标: 在存在障碍设置的空间中做路径搜索。 除了这个算法,还有其它搜索算法,见 https://www.cs.cmu.edu/~motionpl
阅读全文
posted @ 2022-06-17 15:37
lightsong
阅读(148)
推荐(0)
摘要:
Search Algorithms in AI https://www.geeksforgeeks.org/search-algorithms-in-ai/?ref=lbp 搜索算法是agent在特定背景下执行目标搜索的方法。 搜索问题包括: 状态空间 启始状态 目标状态 目标检测函数 解决方法,对
阅读全文
posted @ 2022-06-16 11:26
lightsong
阅读(148)
推荐(0)
摘要:
D - ±1 Operation 2 https://atcoder.jp/contests/abc255/tasks/abc255_d 思路 首先将 A 数组进行排序, 然后计算A数组的累加数组, 即每个位置上的左侧累加值, 对于每个查询 x, 使用二分查找, 找到 upper_bound 位置,
阅读全文
posted @ 2022-06-13 14:25
lightsong
阅读(57)
推荐(0)
摘要:
D - Together Square https://atcoder.jp/contests/abc254/tasks/abc254_d 思路 Code #include <bits/stdc++.h> using namespace std; int gcd(int a,int b){ if(b
阅读全文
posted @ 2022-06-08 12:44
lightsong
阅读(65)
推荐(0)
摘要:
K Swap https://atcoder.jp/contests/abc254/tasks/abc254_c 思路 Code #include <bits/stdc++.h> #include <vector> #include <algorithm> #include <deque> #inc
阅读全文
posted @ 2022-06-06 22:35
lightsong
阅读(89)
推荐(0)
摘要:
CPU Scheduling in Operating Systems https://www.geeksforgeeks.org/cpu-scheduling-in-operating-systems/?ref=leftbar-rightbar CPU调度是一个过程,当一个进程被挂起时候,例如等待
阅读全文
posted @ 2022-06-05 23:29
lightsong
阅读(161)
推荐(0)
摘要:
问题 http://poj.org/problem?id=2386 Description Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by
阅读全文
posted @ 2022-06-05 14:58
lightsong
阅读(27)
推荐(0)
摘要:
Dijstra https://chinese.freecodecamp.org/news/dijkstras-shortest-path-algorithm-visual-introduction/ https://mathweb.ucsd.edu/~fan/teach/202/notes/04g
阅读全文
posted @ 2022-06-03 23:41
lightsong
阅读(89)
推荐(0)
摘要:
E - Road Reduction https://atcoder.jp/contests/abc252/tasks/abc252_e 思路 https://www.cnblogs.com/zengzk/p/16296821.html 一眼最短路树,跑遍dijkstra就行了。 分析: 要求从某个
阅读全文
posted @ 2022-06-01 09:55
lightsong
阅读(104)
推荐(0)
摘要:
巧抓纪念币 http://go.helloworldroom.com:50080/problem/2723 题目描述 为了让同学们留下美好的回忆,博物院准备了很多纪念币,但需要通过特制的游戏手柄 抓取。纪念币在数轴的任意位置 Y。游戏手柄通过轨道移动,轨道与数轴同长且首尾对齐。 当游戏手柄的坐标与纪
阅读全文
posted @ 2022-05-30 23:36
lightsong
阅读(210)
推荐(0)
摘要:
编钟演绎 http://go.helloworldroom.com:50080/problem/2719 题目描述 同学们在古典乐器馆见到了编钟,领略了编钟清脆明亮、悠扬动听的音质。谱曲体验更 是让同学们跃跃欲试。游戏开始,屏幕上自动生成若干个音符,每个音符都用一个整数表示 其音调高低,同学们可以选
阅读全文
posted @ 2022-05-27 23:51
lightsong
阅读(179)
推荐(0)
摘要:
Definition https://en.wikipedia.org/wiki/Dynamic_programming 数学和计算机程序上的术语。 如果一个复杂的问题能够分解成更加简单的子问题,并且有最佳子结构, 那么此问题可应用动态规划。 负责问题的最优解,可以从子问题的最优解找到。 类似数学上
阅读全文
posted @ 2022-05-24 22:18
lightsong
阅读(101)
推荐(0)
摘要:
新“愚公移山” http://go.helloworldroom.com:50080/problem/2721 题目描述 为了吸引中小学生,参观博物院不再停留在看和听,核心理念转变成了互动。新“愚公 移山”项目,屏幕上出现 n 个石块,屏幕下方的底盘是二维方格,每个方格恰好能放置一个 石块。石块放置
阅读全文
posted @ 2022-05-24 13:48
lightsong
阅读(231)
推荐(0)
摘要:
Takahashi and Animals https://atcoder.jp/contests/abc251/tasks/abc251_e Solution 参考 https://blog.csdn.net/qq_52678569/article/details/124790849 https:
阅读全文
posted @ 2022-05-19 10:20
lightsong
阅读(82)
推荐(0)
摘要:
Python Variable Scope https://data-flair.training/blogs/python-variable-scope/ 变量作用域,指代特定的代码区域, 在此与区内变量可以被访问。 变量总是跟作用域绑定, 在其定义时候。 作用域分为四类: L: 局部作用域, 例
阅读全文
posted @ 2022-05-12 11:25
lightsong
阅读(148)
推荐(0)
摘要:
Adjacent Swaps https://atcoder.jp/contests/abc250/tasks/abc250_c Solution 这是一个典型的利用双向链表来提供性能的问题。 利用双向链表,需要注意: (1)添加 表头 和 表尾 节点。 (2)抽象出交换相邻节点,需要用到的 pre
阅读全文
posted @ 2022-05-11 21:43
lightsong
阅读(107)
推荐(0)
摘要:
attribute https://medium.com/swlh/attributes-in-python-6-concepts-to-know-1db6562057b1 OOP中对象带有的参数,叫做 field attribute property python中把这种参数叫做 attribut
阅读全文
posted @ 2022-05-10 00:01
lightsong
阅读(99)
推荐(0)
摘要:
function definition and call https://www.programiz.com/python-programming/function-argument 函数参数定义有三种形式: (1)固定位置参数 (2)可变参数 (3)任意参数 Arguments - 1 - 固定位
阅读全文
posted @ 2022-05-08 20:45
lightsong
阅读(58)
推荐(0)
摘要:
magic methods https://www.educba.com/python-magic-method/?msclkid=8119e878ce8511ec9d52cc88840aaf9b 魔法方法是一组预定义的功能方法,一般不需要程序员关注,所以称为魔法方法, 这里翻译成 神秘方法,更加合
阅读全文
posted @ 2022-05-08 14:30
lightsong
阅读(77)
推荐(0)