Stay Hungry,Stay Foolish!

上一页 1 2 3 4 5 6 7 ··· 24 下一页
摘要: Why the Pipe Character “|” Works in LangChain’s LCEL http://cncc.bingj.com/cache.aspx?q=python+pipe+operator&d=4965480815663428&mkt=en-US&setlang=en-U 阅读全文
posted @ 2024-05-22 09:43 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要: neo4j https://neo4j.com/ GenAI apps, grounded in your data Power your applications with knowledge graphs. Backed by the only graph database with vecto 阅读全文
posted @ 2024-05-21 22:12 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要: C - AtCoder Magics https://atcoder.jp/contests/abc354/tasks/abc354_c 思路 首先按照a属性对数列进行排序,大的在前,小的在后, 完成后, 则数列在a参数上是非递增的。 如下图中x轴对应 a 参数, y轴对应c参数, discard条 阅读全文
posted @ 2024-05-19 22:57 lightsong 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Azure 控制平面和数据平面 https://learn.microsoft.com/zh-cn/azure/azure-resource-manager/management/control-plane-and-data-plane Azure 操作可以分为两个类别 - 控制平面和数据平面。 本 阅读全文
posted @ 2024-05-17 10:19 lightsong 阅读(7) 评论(0) 推荐(0) 编辑
摘要: RAG Project with Ollama and LangChain via Gradio Interface https://github.com/fanqingsong/rag-ollama-langchain This repository hosts the implementatio 阅读全文
posted @ 2024-05-16 23:16 lightsong 阅读(57) 评论(0) 推荐(0) 编辑
摘要: D - Another Sigma Problem https://atcoder.jp/contests/abc353/tasks/abc353_d 思路 前缀和 + 快速幂 https://zhuanlan.zhihu.com/p/697255076 Code https://atcoder.j 阅读全文
posted @ 2024-05-16 20:30 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要: C - Sigma Problem https://atcoder.jp/contests/abc353/tasks/abc353_c 思路 暴力TLE 观察 a1 a2 ... an 序列 计算目标是, 两两结合并并求 模 sum = sigma (ai + aj)%1e8 ai , aj <= 阅读全文
posted @ 2024-05-12 10:44 lightsong 阅读(70) 评论(0) 推荐(0) 编辑
摘要: .netrc https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html The.netrcfile contains login and initialization information us 阅读全文
posted @ 2024-05-09 09:33 lightsong 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 23. 合并 K 个升序链表 https://leetcode.cn/problems/merge-k-sorted-lists/?envType=study-plan-v2&envId=top-interview-150 思路 K个升序链表,依据显然的规则: 当前最小的值,肯定出自于K个升序链表的 阅读全文
posted @ 2024-05-08 19:59 lightsong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ollama + ollama web + fastapi app (langchain) demo https://github.com/fanqingsong/ollama-docker Welcome to the Ollama Docker Compose Setup! This proje 阅读全文
posted @ 2024-05-04 23:28 lightsong 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Code Llama https://about.fb.com/news/2023/08/code-llama-ai-for-coding/ Takeaways Code Llama is an AI model built on top of Llama 2, fine-tuned for gen 阅读全文
posted @ 2024-05-01 19:44 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 6 Ways For Running A Local LLM https://semaphoreci.com/blog/local-llm 1. Hugging Face and Transformers from transformers import AutoModelForCausalLM, 阅读全文
posted @ 2024-05-01 19:15 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要: FastChat https://github.com/lm-sys/FastChat 为服务基于大模型的chat应用, FastChat提供框架。 提供三个功能 training, serving, and evaluating 有评价功能、训练功能(fine tuning) 主要的还是 serv 阅读全文
posted @ 2024-05-01 19:07 lightsong 阅读(87) 评论(0) 推荐(0) 编辑
摘要: ollama https://ollama.com/ llama是meta发布的大语言模型, 自然意义是美洲鸵 这个平台软件 以 o 开头,类似召唤 美洲鸵的意思。 对应大语言模型,就是提供运行大模型的支撑。 Get up and running with large language models 阅读全文
posted @ 2024-05-01 11:03 lightsong 阅读(71) 评论(0) 推荐(0) 编辑
摘要: D - Grid and Magnet https://atcoder.jp/contests/abc351/tasks/abc351_d 思路 定义输入矩阵元素值 s matrix each cell can have three possible values: 0 - emtpy and no 阅读全文
posted @ 2024-04-28 21:57 lightsong 阅读(28) 评论(0) 推荐(0) 编辑
摘要: C - Merge the balls https://atcoder.jp/contests/abc351/tasks/abc351_c 思路 使用stack 记录 序列路径 对栈顶两个元素 尝试做缩减处理。 Code https://atcoder.jp/contests/abc351/subm 阅读全文
posted @ 2024-04-28 21:50 lightsong 阅读(24) 评论(0) 推荐(0) 编辑
摘要: mysqlalchemy audit extension https://sqlalchemy-declarative-extensions.readthedocs.io/en/stable/audit_tables.html from sqlalchemy import Column, types 阅读全文
posted @ 2024-04-28 13:54 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要: what https://zhuanlan.zhihu.com/p/137896709 Tutorial https://www.runoob.com/w3cnote/mysql-stored-procedure.html DEMO[create procedure + call from pyth 阅读全文
posted @ 2024-04-28 13:41 lightsong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 记录指定参数变化 https://zhuanlan.zhihu.com/p/439273702 DELIMITER // CREATE TRIGGER log_sales_updates AFTER UPDATE ON sales FOR EACH ROW Insert into audit_log 阅读全文
posted @ 2024-04-28 13:07 lightsong 阅读(5) 评论(0) 推荐(0) 编辑
摘要: mysql+phpmysqladmin https://github.com/fanqingsong/docker-mysql-phpadmin 使用phpMysqlAdmin来管理mysql 阅读全文
posted @ 2024-04-25 23:16 lightsong 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Principles of Object Oriented Class Design https://staff.cs.utu.fi/~jounsmed/doos_06/material/DesignPrinciplesAndPatterns.pdf The Open Closed Principl 阅读全文
posted @ 2024-04-21 22:52 lightsong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: F - Transpose https://atcoder.jp/contests/abc350/tasks/abc350_f 思路 开辟数组,记录左右括号配对的位置值, 例如: 串:a(s)l 位置: 01234 数组值为 配对数组: 03010 数组构成方法为 使用stack 记录左括号位置,遇 阅读全文
posted @ 2024-04-21 17:47 lightsong 阅读(4) 评论(0) 推荐(0) 编辑
摘要: D - New Friends https://atcoder.jp/contests/abc350/tasks/abc350_d 思路 此sns网络,可能包括若干个连同子图, 对于每个子图, 计算 连通子图中 成员数目, 和 连接数目, 计算全连接子图,需要的总的连接数目, 减去当前连接数目, 得 阅读全文
posted @ 2024-04-20 23:15 lightsong 阅读(7) 评论(0) 推荐(0) 编辑
摘要: C - Sort https://atcoder.jp/contests/abc350/tasks/abc350_c 思路 开辟一个map, 对于输入排列数组,记录每个值所在的位置 (因为后面做位置替换的时候,需要快速找到 当前位置上 值 对应位置) 遍历数组,如果当前位置i,存放的就是当前位置值i 阅读全文
posted @ 2024-04-20 23:10 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Controlling the Flow with Stage, Lock, and Milestone https://www.jenkins.io/blog/2016/10/16/stage-lock-milestone/ stage('Build') { // The first milest 阅读全文
posted @ 2024-04-19 13:28 lightsong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 135. 分发糖果 https://leetcode.cn/problems/candy/description/?envType=study-plan-v2&envId=top-interview-150 Code class Solution { public: int candy(vector 阅读全文
posted @ 2024-04-19 09:15 lightsong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Vault high availability with Consul https://developer.hashicorp.com/vault What is Vault? Secure, store, and tightly control access to tokens, password 阅读全文
posted @ 2024-04-14 20:48 lightsong 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Discover services with Consul https://www.consul.io/use-cases/discover-services Use Consul as a centralized registry that discovers, tracks, and monit 阅读全文
posted @ 2024-04-14 20:04 lightsong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: C - Ideal Holidays https://atcoder.jp/contests/abc347/tasks/abc347_c 思路 将所有延迟计划时间 % a+b 映射到 区间 [0, a+b] 然后对映射数组排序, 统计最大间距(最大间距可以被安排到 工作日 b), 如果最大间距 大于 阅读全文
posted @ 2024-03-30 21:56 lightsong 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 452. 用最少数量的箭引爆气球 https://leetcode.cn/problems/minimum-number-of-arrows-to-burst-balloons/description/?envType=study-plan-v2&envId=top-interview-150 Co 阅读全文
posted @ 2024-03-30 09:19 lightsong 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 209. 长度最小的子数组 https://leetcode.cn/problems/minimum-size-subarray-sum/?envType=study-plan-v2&envId=top-interview-150 思路 三种方法中,具有最优时间复杂度的方案 滑动窗口 设置 star 阅读全文
posted @ 2024-03-18 23:06 lightsong 阅读(6) 评论(0) 推荐(0) 编辑
摘要: C - One Time Swap https://atcoder.jp/contests/abc345/tasks/abc345_c 思路 组合计数, 假设字符串中所有位置的字符都不相同,求所有位置字符交换的组合数 对于相同字符的位置, 任意两个位置交换不会改变字符串 所以计算所有这种无效贡献 注 阅读全文
posted @ 2024-03-18 08:49 lightsong 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 230. 二叉搜索树中第K小的元素 https://leetcode.cn/problems/kth-smallest-element-in-a-bst/ 思路 https://leetcode.cn/problems/kth-smallest-element-in-a-bst/solutions/ 阅读全文
posted @ 2024-03-10 10:51 lightsong 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 162. 寻找峰值 https://leetcode.cn/problems/find-peak-element/description/ 思路 https://leetcode.cn/problems/find-peak-element/solutions/998152/xun-zhao-feng 阅读全文
posted @ 2024-03-09 22:48 lightsong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: docker host https://hocdevops.com/hoc-docker/phan-15-host-network-trong-docker/ docker bridge https://www.cnblogs.com/zjdxr-up/p/17627291.html https:/ 阅读全文
posted @ 2024-03-08 09:49 lightsong 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 146. LRU 缓存 https://leetcode.cn/problems/lru-cache/description/ 思路 https://zhuanlan.zhihu.com/p/85846117 Code class NODE{ public: NODE* prev; NODE* ne 阅读全文
posted @ 2024-03-08 09:10 lightsong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 72. 编辑距离 https://leetcode.cn/problems/edit-distance/description/ 思路 https://zhuanlan.zhihu.com/p/144754447 状态转移公式。 https://zhuanlan.zhihu.com/p/811061 阅读全文
posted @ 2024-03-04 21:33 lightsong 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 80. 删除有序数组中的重复项 II https://leetcode.cn/problems/remove-duplicates-from-sorted-array-ii/description/?envType=study-plan-v2&envId=top-interview-150 思路 l 阅读全文
posted @ 2024-03-02 23:56 lightsong 阅读(2) 评论(0) 推荐(0) 编辑
摘要: D - Diversity of Scores https://atcoder.jp/contests/abc343/tasks/abc343_d 思路 准备两个map 第一个存储, 每个分数作为key, 以及 得此分数的 运动员列表 作为value 这样,可以非常快速统计出某一时刻 所有分数总数。 阅读全文
posted @ 2024-03-02 23:46 lightsong 阅读(11) 评论(0) 推荐(0) 编辑
摘要: C - 343 https://atcoder.jp/contests/abc343/tasks/abc343_c 思路 先找出最大三次方数,次数小于或者等于 n, 参考: 在三次方根的可能范围内,使用二分查找法,定位最大的三次方根 https://www.cnblogs.com/Ghost-Kni 阅读全文
posted @ 2024-03-02 23:40 lightsong 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 24 下一页
Life Is Short, We Need Ship To Travel