Stay Hungry,Stay Foolish!

12 2023 档案

摘要:InfluxDB https://www.influxdata.com/ 时间序列数据库。 Real-time insights from any time series data with a single, purpose-built database. Run at any scale in 阅读全文
posted @ 2023-12-31 13:06 lightsong 阅读(15) 评论(0) 推荐(0) 编辑
摘要:D - Reindeer and Sleigh https://atcoder.jp/contests/abc334/tasks/abc334_d 思路 将所有雪橇的耗费的鹿数量,进行排序 然后对排序数组做前缀和, 在前缀和数组中,利用upper_bound做二分查找。 Code https://a 阅读全文
posted @ 2023-12-31 09:56 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要:B - Christmas Trees https://atcoder.jp/contests/abc334/tasks/abc334_b 思路 对于起始种树点A 在 [L, R]区间的位置情况,三种 A < L A> R A>=L, A<=R Code https://atcoder.jp/con 阅读全文
posted @ 2023-12-30 19:06 lightsong 阅读(14) 评论(0) 推荐(0) 编辑
摘要:C - Socks 2 https://atcoder.jp/contests/abc334/tasks/abc334_c 思路 前后缀方法: https://zhuanlan.zhihu.com/p/673837822 其中给出了证明: 1. 对于成对的袜子参不参与凑对匹配,不影响总的色差 2. 阅读全文
posted @ 2023-12-30 19:00 lightsong 阅读(15) 评论(0) 推荐(0) 编辑
摘要:PromQL https://prometheus.io/docs/prometheus/latest/querying/basics/ Cheat sheet and Online https://promlabs.com/promql-cheat-sheet/ https://demo.prom 阅读全文
posted @ 2023-12-23 23:21 lightsong 阅读(12) 评论(0) 推荐(0) 编辑
摘要:SQLAlchemy scoped_session 本身 session 不是线程安全的。 https://docs.sqlalchemy.org/en/14/orm/contextual.html The object is the scoped_session object, and it re 阅读全文
posted @ 2023-12-22 10:59 lightsong 阅读(29) 评论(0) 推荐(0) 编辑
摘要:Prometheus Python client library. http://prometheus.github.io/client_python/ Example https://pbrissaud.github.io/suivi-bourse/ 用户场景没有价值,此项目以全栈的视角实现了自定 阅读全文
posted @ 2023-12-19 23:17 lightsong 阅读(44) 评论(0) 推荐(0) 编辑
摘要:D - Erase Leaves https://atcoder.jp/contests/abc333/tasks/abc333_d 思路 把这个图看成一棵树, 1作为树根, 统计 1树根关联的 子节点作为根的子树的总节点数, 去除 子树中总节点数最大子的 子树, 其它子树的总节点 记做贡献, 最后 阅读全文
posted @ 2023-12-16 22:26 lightsong 阅读(44) 评论(0) 推荐(0) 编辑
摘要:C - Repunit Trio https://atcoder.jp/contests/abc333/tasks/abc333_c 思路 N=333时候, repunit最长12位, 三重遍历 repunit 做和记录到vector中 最后对vector进行排序,取n值。 Code https:/ 阅读全文
posted @ 2023-12-16 22:19 lightsong 阅读(47) 评论(0) 推荐(0) 编辑
摘要:Jenkins-prometheus https://github.com/fanqingsong/Jenkins-prometheus/tree/master 1.Set up Jenkins, prometheus, grafana docker run -d --name jenkins -p 阅读全文
posted @ 2023-12-15 23:54 lightsong 阅读(59) 评论(0) 推荐(0) 编辑
摘要:redis-om-python https://github.com/redis/redis-om-python Redis OM Python makes it easy to model Redis data in your Python applications. Why Redis OM? 阅读全文
posted @ 2023-12-11 23:00 lightsong 阅读(76) 评论(0) 推荐(0) 编辑
摘要:abc.abstractmethod + property https://stackoverflow.com/questions/14671095/abc-abstractmethod-property import abc class FooBase(metaclass=abc.ABCMeta) 阅读全文
posted @ 2023-12-11 22:25 lightsong 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Dependency injection framework https://python-dependency-injector.ets-labs.org/index.html Dependency Injector is a dependency injection framework for 阅读全文
posted @ 2023-12-10 18:32 lightsong 阅读(23) 评论(0) 推荐(0) 编辑
摘要:Using Redis with FastAPI https://developer.redis.com/develop/python/fastapi/ https://github.com/fanqingsong/fastapi-redis-tutorial FastAPI is a Python 阅读全文
posted @ 2023-12-06 22:46 lightsong 阅读(65) 评论(0) 推荐(0) 编辑
摘要:B - Buy One Carton of Milk https://atcoder.jp/contests/abc331/tasks/abc331_b 思路 dfs递归搜索, 按照依此按照三种策略: 6个一打 - cost S 8个一打 - cost M 12个一打 - cost L 递归到叶子节 阅读全文
posted @ 2023-12-04 22:21 lightsong 阅读(44) 评论(0) 推荐(0) 编辑
摘要:C - Sum of Numbers Greater Than Me https://atcoder.jp/contests/abc331/tasks/abc331_c 思路 由于 值 可以是重复的, 需要记录每出现的值 对应的位置 , 记录在 map<int, vector<int>> valpo 阅读全文
posted @ 2023-12-04 22:15 lightsong 阅读(9) 评论(0) 推荐(0) 编辑
摘要:E - Set Meal https://atcoder.jp/contests/abc331/tasks/abc331_e 思路 定义 vector<int> v[100005]; 对于 c d 对进行group操作, 得到每个ai dish 对应不可能的 bj dish的cost值的集合 对b 阅读全文
posted @ 2023-12-04 22:07 lightsong 阅读(12) 评论(0) 推荐(0) 编辑
摘要:fastapi-admin https://fastapi-admin-docs.long2ice.io/ 使用 TortoiseORM项目可以使用此库做admin管理。 fastapi-admin is a fast admin dashboard based on FastAPI and Tor 阅读全文
posted @ 2023-12-02 11:21 lightsong 阅读(330) 评论(0) 推荐(0) 编辑

千山鸟飞绝,万径人踪灭
点击右上角即可分享
微信分享提示