当前位置: 首页 > article >正文

I2C SPI 画图 工具 程序合集

INA219 电量监控!doctype htmlhtml langzh-CNheadmeta charsetutf-8/meta nameviewportcontentwidthdevice-width, initial-scale1/titleBattery Pie · HTML Only/titlescript srchttps://cdn.jsdelivr.net/npm/chart.js/scriptstyle:root{--bg:#0b1020;--panel:#121831;--text:#e7ecf3;--muted:#9fb0c6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}header{padding:14px 18px;background:#0f1631;border-bottom:1px solid #263153}h1{margin:0;font-size:18px}.wrap{padding:16px;display:grid;gap:16px;max-width:900px;margin:0auto}.card{background:var(--panel);border:1px solid#263153;border-radius:14px;padding:14px}.grid{display:grid;gap:16px;grid-template-columns:1fr}.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}label{color:var(--muted);font-size:13px}input,button{background:#0c1227;border:1px solid #2a355d;color:var(--text);border-radius:10px;padding:8px 10px;outline:none}button{cursor:pointer}.chartBox{position:relative;max-width:420px;margin:auto}#centerLabel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:700;pointer-events:none}.muted{color:var(--muted)}/style/headbodyheaderh1Battery Pie(HTML Only)/h1/headerdivclasswrapsectionclasscard griddivclasschartBoxcanvasidchartwidth420height420/canvasdividcenterLabel--%/div/divdivclassrowlabelSoC(%)/labelinputidsocValtypenumberstep0.1min0max100value50/buttonidbtnSetUpdate/buttoninputidsocRangetyperangemin0max100step0.1value50styleflex:1 1 220px//divdivclassrowlabelAuto-poll URL/labelinputidurlstyleflex:1 1 320pxplaceholdere.g. http://pi-ip:5000/api/data or any JSON with soc/labelInterval(s)/labelinputidintervaltypenumbermin0.5step0.5value1stylewidth:90px/buttonidbtnStartStart/buttonbuttonidbtnStopStop/button/divdivclassmutedNotes:Thisisa pure HTML page.You can manuallysetthe percentage,oroptionally poll a JSON endpoint.If the endpoint returnscode{soc:number}/code,its used directly.If it returns arrays like your Flask app(code{times:[],soc:[]}/code),the last soc valueisused./div/section/divscriptconst ctxdocument.getElementById(chart).getContext(2d);const centerdocument.getElementById(centerLabel);const socInputdocument.getElementById(socVal);constrangedocument.getElementById(socRange);let chart;function socColor(p){//green-yellow-red based on percentageif(p60)return#19c37d;if(p30)return#ffb020;return#ff5c5c;}function buildChart(){chartnew Chart(ctx,{type:doughnut,data:{labels:[SoC,Empty],datasets:[{data:[50,50],borderWidth:0,backgroundColor:[socColor(50),#263153],hoverOffset:2,cutout:70%}]},options:{responsive:true,plugins:{legend:{display:false}}}});setSOC(50);}function setSOC(p){pMath.max(0,Math.min(100,Number(p)||0));if(!chart)return;chart.data.datasets[0].data[p,100-p];chart.data.datasets[0].backgroundColor[0]socColor(p);chart.update(none);center.textContentp.toFixed(1)%;socInput.valuep.toFixed(1);range.valuep.toFixed(1);}//Manual controls document.getElementById(btnSet).onclick()setSOC(socInput.value);range.oninput()setSOC(range.value);//Polling logic let timernull;asyncfunction pollOnce(url){try{const rawaitfetch(url,{cache:no-store});const jawaitr.json();let pnull;if(typeof j.socnumber)pj.soc;elseif(Array.isArray(j.soc)j.soc.length)pj.soc[j.soc.length-1];elseif(typeof j.SoCnumber)pj.SoC;if(pnull)return;setSOC(p);}catch(e){console.log(poll error,e);}}document.getElementById(btnStart).onclick(){const urldocument.getElementById(url).value.trim();const ivMath.max(0.5,Number(document.getElementById(interval).value)||1)*1000;if(!url)returnalert(Please input a JSON endpoint URL.);if(timer)clearInterval(timer);pollOnce(url);timersetInterval(()pollOnce(url),iv);};document.getElementById(btnStop).onclick(){if(timer){clearInterval(timer);timernull;}};buildChart();/script/body/html# -*- coding: utf-8 -*- 可自定义 SPI / I2C 时序图生成器 依赖: pip install Pillow 运行: python spi_i2c_custom_timing.py 特点: 1) 输出固定保存到脚本同目录 2) 支持自定义 SPI mode / bit数 / MOSI / MISO / CS有效电平 3) 支持自定义 I2C 7bit 地址 / 读写 / 数据字节 / ACK 序列 4) 自动生成 PNG 时序图 说明: - SPI: 这里画的是“逻辑示意图”不是严格 ns 级器件波形图 - I2C: 这里强调协议约束SDA 在 SCL 高电平期间保持稳定 START/STOP 是在 SCL 高时 SDA 发生跳变 from pathlib import Path from PIL import Image, ImageDraw, ImageFont import re SCRIPT_DIR Path(__file__).resolve().parent BG (255, 255, 255) FG (20, 20, 20) GRID (230, 230, 230) BLUE (52, 120, 246) RED (220, 70, 70) GREEN (34, 160, 90) ORANGE (220, 140, 40) PURPLE (128, 80, 200) GRAY (110, 110, 110) LIGHT_BLUE (215, 232, 255) LIGHT_ORANGE (255, 237, 205) STEP 86 LEFT 180 RIGHT 70 def get_font(size22): candidates [ C:/Windows/Fonts/msyh.ttc, C:/Windows/Fonts/msyhbd.ttc, C:/Windows/Fonts/simhei.ttf, C:/Windows/Fonts/arial.ttf, ] for p in candidates: try: return ImageFont.truetype(p, size) except Exception: pass return ImageFont.load_default() FONT get_font(22) FONT_SMALL get_font(18) FONT_TITLE get_font(34) def text(draw, xy, s, fillFG, fontFONT, anchorNone): draw.text(xy, s, fillfill, fontfont, anchoranchor) def y_level(base_y, highTrue, amp18): return base_y - amp if high else base_y amp def parse_int_maybe_hex(s, defaultNone): s str(s).strip() if not s: return default try: return int(s, 0) except Exception: return default def parse_bits_input(s, widthNone): 支持: - 10100101 - 0b10100101 - 0xA5 - A5 raw str(s).strip().replace(_, ).replace( , ) if not raw: return [] if re.fullmatch(r[01], raw): bits [int(c) for c in raw] if width and len(bits) width: bits [0] * (width - len(bits)) bits elif width and len(bits) width: bits bits[-width:] return bits if raw.lower().startswith(0b): bits [int(c) for c in raw[2:]] if width and len(bits) width: bits [0] * (width - len(bits)) bits elif width and len(bits) width: bits bits[-width:] return bits if raw.lower().startswith(0x): val int(raw, 16) if width is None: width (len(raw) - 2) * 4 return [(val i) 1 for i in range(width - 1, -1, -1)] if re.fullmatch(r[0-9A-Fa-f], raw): val int(raw, 16) if width is None: width len(raw) * 4 return [(val i) 1 for i in range(width - 1, -1, -1)] raise ValueError(f无法解析位串/十六进制: {s}) def parse_i2c_data_bytes(s): 支持: CA 55 0xCA,0x55 CA,55,10 raw str(s).strip() if not raw: return [] parts re.split(r[\s,;], raw) out [] for p in parts: if not p: continue out.append(int(p, 0) if p.lower().startswith(0x) else int(p, 16)) return out def parse_ack_pattern(s, n): A / N 例如: AA AAN 留空则默认全 ACK raw str(s).strip().upper().replace( , ) if not raw: return [0] * n # ACK 0 raw raw.replace(,, ) if len(raw) ! n: raise ValueError(fACK 序列长度应为 {n}你输入了 {len(raw)}) out [] for ch in raw: if ch A: out.append(0) elif ch N: out.append(1) else: raise ValueError(ACK 序列只能用 A 或 N) return out def draw_grid(draw, x0, steps, y_top, y_bottom): for i in range(steps 1): x x0 i * STEP draw.line((x, y_top, x, y_bottom), fillGRID, width1) def draw_clock(draw, x0, base_y, steps, cpol, color, name): text(draw, (50, base_y), name, anchorlm) hi y_level(base_y, True) lo y_level(base_y, False) for i in range(steps): x x0 i * STEP if cpol 0: pts [ (x, lo), (x STEP * 0.25, lo), (x STEP * 0.25, hi), (x STEP * 0.75, hi), (x STEP * 0.75, lo), (x STEP, lo), ] else: pts [ (x, hi), (x STEP * 0.25, hi), (x STEP * 0.25, lo), (x STEP * 0.75, lo), (x STEP * 0.75, hi), (x STEP, hi), ] draw.line(pts, fillcolor, width4) def draw_spi_bus(draw, x0, base_y, bits, color, name, cpha): 逻辑示意: - CPHA0: 每 bit 开始前数据已稳定采样发生在 leading edge - CPHA1: leading edge 后更新trailing edge 采样 text(draw, (50, base_y), name, anchorlm) hi y_level(base_y, True) lo y_level(base_y, False) if not bits: bits [0] # 初值 current_y hi if bits[0] else lo draw.line((x0 - 35, current_y, x0, current_y), fillcolor, width4) for i, bit in enumerate(bits): x x0 i * STEP target_y hi if bit else lo if cpha 0: # bit开始就稳定 if current_y ! target_y: draw.line((x, current_y, x, target_y), fillcolor, width4) draw.line((x, target_y, x STEP, target_y), fillcolor, width4) current_y target_y else: # 第一半拍维持上一个bit的值leading edge后切到本bit值 draw.line((x, current_y, x STEP * 0.25, current_y), fillcolor, width4) if current_y ! target_y: draw.line((x STEP * 0.25, current_y, x STEP * 0.25, target_y), fillcolor, width4) draw.line((x STEP * 0.25, target_y, x STEP, target_y), fillcolor, width4) current_y target_y def draw_spi(config): mode config[mode] width config[width] mosi_bits config[mosi_bits] miso_bits config[miso_bits] cs_active_low config[cs_active_low] cpol 1 if mode in (2, 3) else 0 cpha 1 if mode in (1, 3) else 0 steps width width_px LEFT steps * STEP RIGHT height_px 610 img Image.new(RGB, (width_px, height_px), BG) draw ImageDraw.Draw(img) text(draw, (width_px // 2, 36), fSPI 自定义时序图Mode {mode}CPOL{cpol}CPHA{cpha}, fontFONT_TITLE, anchormm) text(draw, (width_px // 2, 80), fMOSI{.join(map(str, mosi_bits))} MISO{.join(map(str, miso_bits))}, fontFONT_SMALL, fillGRAY, anchormm) y_cs 165 y_clk 265 y_mosi 365 y_miso 465 draw_grid(draw, LEFT, steps, 120, 510) for i in range(steps): cx LEFT i * STEP STEP / 2 text(draw, (cx, 132), fBit{steps - 1 - i}, fontFONT_SMALL, fillGRAY, anchormm) # CS text(draw, (50, y_cs), CS, anchorlm) active y_level(y_cs, not cs_active_low) inactive y_level(y_cs, cs_active_low) draw.line((LEFT - 70, inactive, LEFT, inactive), fillRED, width4) draw.line((LEFT, inactive, LEFT, active), fillRED, width4) draw.line((LEFT, active, LEFT steps * STEP, active), fillRED, width4) draw.line((LEFT steps * STEP, active, LEFT steps * STEP, inactive), fillRED, width4) draw.line((LEFT steps * STEP, inactive, LEFT steps * STEP 70, inactive), fillRED, width4) draw_clock(draw, LEFT, y_clk, steps, cpol, BLUE, SCLK) draw_spi_bus(draw, LEFT, y_mosi, mosi_bits, GREEN, MOSI, cpha) draw_spi_bus(draw, LEFT, y_miso, miso_bits, ORANGE, MISO, cpha) # 采样边沿标记 # leading edge at 0.25, trailing at 0.75 if cpol 0: leading_edge_name 上升沿 trailing_edge_name 下降沿 else: leading_edge_name 下降沿 trailing_edge_name 上升沿 sample_on leading_edge_name if cpha 0 else trailing_edge_name update_on trailing_edge_name if cpha 0 else leading_edge_name for i in range(steps): x LEFT i * STEP (STEP * 0.25 if cpha 0 else STEP * 0.75) draw.line((x, 140, x, 500), fillLIGHT_BLUE, width1) draw.ellipse((x - 5, y_clk - 5, x 5, y_clk 5), fillPURPLE) text(draw, (width_px // 2, 545), f本图中接收端在 {sample_on} 采样在 {update_on} 更新/切换数据。, fontFONT_SMALL, fillGRAY, anchormm) out SCRIPT_DIR / custom_spi_timing.png img.save(out) print(f已生成: {out}) return img def draw_i2c(config): addr config[address] rw config[rw] data_bytes config[data_bytes] ack_bits config[ack_bits] addr_bits [(addr i) 1 for i in range(6, -1, -1)] rw_bit [0 if rw W else 1] sda_bits addr_bits rw_bit [ack_bits[0]] labels [fA{i} for i in range(6, -1, -1)] [R/W, ACK1] for idx, b in enumerate(data_bytes, start1): dbits [(b i) 1 for i in range(7, -1, -1)] sda_bits.extend(dbits) sda_bits.append(ack_bits[idx]) labels.extend([fD{i} for i in range(7, -1, -1)] [fACK{idx1}]) steps len(sda_bits) width_px LEFT (steps 1) * STEP RIGHT height_px 650 img Image.new(RGB, (width_px, height_px), BG) draw ImageDraw.Draw(img) ack_text .join(A if b 0 else N for b in ack_bits) data_text .join(f0x{b:02X} for b in data_bytes) text(draw, (width_px // 2, 36), I2C 自定义时序图, fontFONT_TITLE, anchormm) text(draw, (width_px // 2, 80), f地址0x{addr:02X} {rw} 数据{data_text} ACK序列{ack_text}, fontFONT_SMALL, fillGRAY, anchormm) y_scl 270 y_sda 420 draw_grid(draw, LEFT, steps 1, 140, 530) for i, lab in enumerate(labels): cx LEFT i * STEP STEP / 2 text(draw, (cx, 152), lab, fontFONT_SMALL, fillGRAY, anchormm) # SCL draw_clock(draw, LEFT, y_scl, steps, 0, BLUE, SCL) hi y_level(y_sda, True) lo y_level(y_sda, False) # SDA text(draw, (50, y_sda), SDA, anchorlm) draw.line((LEFT - 80, hi, LEFT, hi), fillGREEN, width4) # START draw.line((LEFT, hi, LEFT, lo), fillRED, width4) text(draw, (LEFT - 25, y_sda - 52), START, fontFONT_SMALL, fillRED, anchormm) current_y lo for i, bit in enumerate(sda_bits): x LEFT i * STEP target_y hi if bit else lo # SCL低期间允许变化 draw.line((x, current_y, x STEP * 0.25, current_y), fillGREEN, width4) if current_y ! target_y: draw.line((x STEP * 0.25, current_y, x STEP * 0.25, target_y), fillGREEN, width4) # SCL高期间必须稳定 draw.line((x STEP * 0.25, target_y, x STEP, target_y), fillGREEN, width4) current_y target_y # STOP: 在SCL高时 SDA 低-高 stop_x LEFT steps * STEP if current_y ! lo: draw.line((stop_x, current_y, stop_x STEP * 0.25, current_y), fillGREEN, width4) draw.line((stop_x STEP * 0.25, current_y, stop_x STEP * 0.25, lo), fillGREEN, width4) current_y lo else: draw.line((stop_x, lo, stop_x STEP * 0.25, lo), fillGREEN, width4) draw.line((stop_x STEP * 0.25, lo, stop_x STEP * 0.75, lo), fillGREEN, width4) draw.line((stop_x STEP * 0.75, lo, stop_x STEP * 0.75, hi), fillRED, width4) draw.line((stop_x STEP * 0.75, hi, stop_x STEP, hi), fillGREEN, width4) text(draw, (stop_x STEP * 0.8, y_sda - 52), STOP, fontFONT_SMALL, fillRED, anchormm) # ACK高亮 ack_positions [8] # 7bit地址 rw cursor 9 for _ in data_bytes: ack_positions.append(cursor 8) cursor 9 for idx, pos in enumerate(ack_positions): x LEFT pos * STEP STEP / 2 draw.rectangle((x - 34, 176, x 34, 510), outlineLIGHT_ORANGE, width2) label ACK if ack_bits[idx] 0 else NACK text(draw, (x, 552), label, fontFONT_SMALL, fillORANGE, anchormm) text(draw, (width_px // 2, 595), I2C 也有“采样”这个动作但它不是像 SPI 那样让你选 Mode核心规则是 SDA 在 SCL 高电平期间必须稳定。, fontFONT_SMALL, fillGRAY, anchormm) out SCRIPT_DIR / custom_i2c_timing.png img.save(out) print(f已生成: {out}) return img def combine(spi_img, i2c_img): gap 28 w max(spi_img.width, i2c_img.width) h spi_img.height i2c_img.height gap canvas Image.new(RGB, (w, h), BG) canvas.paste(spi_img, (0, 0)) canvas.paste(i2c_img, (0, spi_img.height gap)) out SCRIPT_DIR / custom_spi_i2c_timing.png canvas.save(out) print(f已生成: {out}) def ask(prompt, defaultNone): if default is None: s input(f{prompt}: ).strip() else: s input(f{prompt} [{default}]: ).strip() return s if s else default def collect_spi_config(): print(\n SPI 配置 ) mode parse_int_maybe_hex(ask(SPI mode 请输入 0/1/2/3, 0), 0) if mode not in (0, 1, 2, 3): raise ValueError(SPI mode 只能是 0/1/2/3) width parse_int_maybe_hex(ask(bit 数, 8), 8) mosi_raw ask(MOSI 数据支持 10100101 / 0b10100101 / 0xA5 / A5, 0xA5) miso_raw ask(MISO 数据同上, 0x5A) mosi_bits parse_bits_input(mosi_raw, width) miso_bits parse_bits_input(miso_raw, width) cs_active_low ask(CS 是否低有效Y/N, Y).strip().upper() ! N return { mode: mode, width: width, mosi_bits: mosi_bits, miso_bits: miso_bits, cs_active_low: cs_active_low, } def collect_i2c_config(): print(\n I2C 配置 ) addr parse_int_maybe_hex(ask(7bit 从机地址支持 0x50 或 50默认按十六进制理解建议写 0x50, 0x50), 0x50) if addr 0 or addr 0x7F: raise ValueError(I2C 7bit 地址范围应为 0x00~0x7F) rw ask(读写方向 W/R, W).strip().upper() if rw not in (W, R): raise ValueError(读写方向只能是 W 或 R) data_bytes parse_i2c_data_bytes(ask(数据字节多个字节可写 0xCA 0x55 或 CA,55, 0xCA)) if not data_bytes: data_bytes [0xCA] for b in data_bytes: if b 0 or b 0xFF: raise ValueError(数据字节必须在 0x00~0xFF 范围内) ack_count 1 len(data_bytes) ack_tips ACK 序列长度 地址阶段1位 每个数据字节1位。例如 1字节数据填 A A2字节填 A A A最后若NACK可填 N print(ack_tips) ack_bits parse_ack_pattern(ask(fACK/NACK 序列AACK, NNACK共 {ack_count} 位, A * ack_count), ack_count) return { address: addr, rw: rw, data_bytes: data_bytes, ack_bits: ack_bits, } def main(): print(可自定义 SPI / I2C 时序图生成器) print(直接回车可使用默认值。) choice ask(生成哪种图输入 spi / i2c / both, both).strip().lower() spi_img None i2c_img None if choice in (spi, both): spi_cfg collect_spi_config() spi_img draw_spi(spi_cfg) if choice in (i2c, both): i2c_cfg collect_i2c_config() i2c_img draw_i2c(i2c_cfg) if choice both and spi_img is not None and i2c_img is not None: combine(spi_img, i2c_img) print(\n完成。输出文件保存在脚本同目录。) if __name__ __main__: main()

相关文章:

I2C SPI 画图 工具 程序合集

INA219 电量监控 <!doctype html> <html lang"zh-CN"> <head><meta charset"utf-8" /><meta name"viewport" content"widthdevice-width, initial-scale1" /><title>Battery Pie HTML Only</…...

全面掌握Path of Building:流放之路Build规划终极解决方案

全面掌握Path of Building&#xff1a;流放之路Build规划终极解决方案 【免费下载链接】PathOfBuilding Offline build planner for Path of Exile. 项目地址: https://gitcode.com/GitHub_Trending/pa/PathOfBuilding Path of Building是《流放之路》玩家必备的离线角色…...

SnapRAID奇偶校验深度解析:理解6级保护机制

SnapRAID奇偶校验深度解析&#xff1a;理解6级保护机制 【免费下载链接】snapraid A backup program for disk arrays. It stores parity information of your data and it recovers from up to six disk failures 项目地址: https://gitcode.com/gh_mirrors/sn/snapraid …...

如何高效下载抖音内容:douyin-downloader的完整使用指南

如何高效下载抖音内容&#xff1a;douyin-downloader的完整使用指南 【免费下载链接】douyin-downloader A practical Douyin downloader for both single-item and profile batch downloads, with progress display, retries, SQLite deduplication, and browser fallback sup…...

7个Git工作流最佳实践:提升GitHub_Trending/ba/basic团队协作效率的完整指南

7个Git工作流最佳实践&#xff1a;提升GitHub_Trending/ba/basic团队协作效率的完整指南 【免费下载链接】basic ⭐⭐⭐⭐⭐ 面向 AI 的管理系统框架&#xff0c;兼容PC、移动端。AI-oriented management system framework, compatible with PC and mobile device. 项目地址:…...

EntityX:C++11实体组件系统的终极入门指南

EntityX&#xff1a;C11实体组件系统的终极入门指南 【免费下载链接】entityx EntityX - A fast, type-safe C Entity-Component system 项目地址: https://gitcode.com/gh_mirrors/en/entityx EntityX 是一个基于 C11 的快速、类型安全的实体组件系统&#xff08;ECS&a…...

终极指南:ET框架资源加载失败恢复机制——重试策略与用户引导全解析

终极指南&#xff1a;ET框架资源加载失败恢复机制——重试策略与用户引导全解析 【免费下载链接】ET Unity3D Client And C# Server Framework 项目地址: https://gitcode.com/GitHub_Trending/et/ET ET框架作为Unity3D客户端与C#服务器框架的佼佼者&#xff0c;其资源加…...

DialogX底部对话框与菜单:BottomDialog和BottomMenu的进阶用法

DialogX底部对话框与菜单&#xff1a;BottomDialog和BottomMenu的进阶用法 【免费下载链接】DialogX &#x1f4ac; DialogX dialog box component library, easy to use, more customizable, more scalable, easy to achieve a variety of dialog boxes. DialogX对话框组件库&…...

如何快速开发Vibe转录后处理工具:从零开始的插件开发指南

如何快速开发Vibe转录后处理工具&#xff1a;从零开始的插件开发指南 【免费下载链接】vibe Transcribe on your own! 项目地址: https://gitcode.com/GitHub_Trending/vib/vibe Vibe是一款功能强大的本地音频转录应用&#xff0c;支持多种格式转换和实时预览功能。本文…...

Fish Speech 1.5在在线教育中的语音合成应用

Fish Speech 1.5&#xff1a;为在线教育注入“好声音” 你有没有想过&#xff0c;一节原本需要老师录制好几个小时的课程&#xff0c;现在只需要几分钟就能自动生成&#xff1f;或者&#xff0c;一个原本只有文字和图片的课件&#xff0c;突然有了一个亲切、专业的“声音”来为…...

DialogX动画系统揭秘:如何实现流畅的非线性动画效果

DialogX动画系统揭秘&#xff1a;如何实现流畅的非线性动画效果 【免费下载链接】DialogX &#x1f4ac; DialogX dialog box component library, easy to use, more customizable, more scalable, easy to achieve a variety of dialog boxes. DialogX对话框组件库&#xff0c…...

SQL和NOSQL数据库对比

SQL 与 NoSQL 数据库详细对比 SQL(关系型数据库)和 NoSQL(非关系型数据库)是当前数据存储领域的两大类解决方案。它们在数据模型、查询语言、事务支持、扩展方式和适用场景上存在根本差异。以下从多个维度进行全面对比。 一、定义与核心特征 SQL 数据库(关系型) 数据模…...

Cogito 3B快速上手教程:Ollama一键调用,支持编码/STEM/多语种

Cogito 3B快速上手教程&#xff1a;Ollama一键调用&#xff0c;支持编码/STEM/多语种 想在10分钟内学会如何使用强大的Cogito 3B模型吗&#xff1f;本文将手把手教你通过Ollama平台快速调用这个支持编码、STEM和多语言的智能模型。 1. 认识Cogito 3B模型 Cogito v1预览版是Dee…...

终极指南:如何在Cycle.js响应式应用中实现PWA缓存清理与存储空间管理

终极指南&#xff1a;如何在Cycle.js响应式应用中实现PWA缓存清理与存储空间管理 【免费下载链接】cyclejs A functional and reactive JavaScript framework for predictable code 项目地址: https://gitcode.com/gh_mirrors/cy/cyclejs Cycle.js作为一个功能强大的函数…...

Supabase 异步与同步客户端对比:如何选择最适合你的开发模式

Supabase 异步与同步客户端对比&#xff1a;如何选择最适合你的开发模式 【免费下载链接】supabase-py Python Client for Supabase. Query Postgres from Flask, Django, FastAPI. Python user authentication, security policies, edge functions, file storage, and realtim…...

C源代码生成器在序列化领域的高级应用:提升性能与简化开发的终极指南

C#源代码生成器在序列化领域的高级应用&#xff1a;提升性能与简化开发的终极指南 【免费下载链接】csharp-source-generators A list of C# Source Generators (not necessarily awesome) and associated resources: articles, talks, demos. 项目地址: https://gitcode.com…...

10个你不知道的Caprine隐藏功能:提升聊天效率的新范式

10个你不知道的Caprine隐藏功能&#xff1a;提升聊天效率的新范式 【免费下载链接】caprine Elegant Facebook Messenger desktop app 项目地址: https://gitcode.com/gh_mirrors/ca/caprine Caprine是一款优雅的Facebook Messenger桌面应用&#xff0c;为用户提供了更高…...

7天掌握Flutter测试驱动开发:从入门到实战的完整指南

7天掌握Flutter测试驱动开发&#xff1a;从入门到实战的完整指南 【免费下载链接】Flutter-Notebook FlutterDemo合集&#xff0c;今天你fu了吗 项目地址: https://gitcode.com/gh_mirrors/fl/Flutter-Notebook Flutter-Notebook是一个全面的Flutter Demo合集&#xff0…...

eslint-plugin-security常见问题解决方案:从安装到配置的全方位排错

eslint-plugin-security常见问题解决方案&#xff1a;从安装到配置的全方位排错 【免费下载链接】eslint-plugin-security ESLint rules for Node Security 项目地址: https://gitcode.com/gh_mirrors/es/eslint-plugin-security eslint-plugin-security是一款专注于Nod…...

Multrin自定义开发指南:扩展你的窗口组织功能

Multrin自定义开发指南&#xff1a;扩展你的窗口组织功能 【免费下载链接】multrin Organize apps windows in tabs like in abandoned Windows Sets and more 项目地址: https://gitcode.com/gh_mirrors/mu/multrin Multrin是一款强大的窗口组织工具&#xff0c;它允许…...

Tmall_Tickets开发者指南:从零构建Chrome抢票插件

Tmall_Tickets开发者指南&#xff1a;从零构建Chrome抢票插件 【免费下载链接】Tmall_Tickets 天猫超市茅台抢票功能 项目地址: https://gitcode.com/gh_mirrors/tm/Tmall_Tickets Tmall_Tickets是一款强大的Chrome抢票插件&#xff0c;专为天猫超市茅台抢购场景设计。本…...

Supabase 错误处理与调试:7个常见问题及解决方案

Supabase 错误处理与调试&#xff1a;7个常见问题及解决方案 【免费下载链接】supabase-py Python Client for Supabase. Query Postgres from Flask, Django, FastAPI. Python user authentication, security policies, edge functions, file storage, and realtime data stre…...

一级减速器正文、零件图、装配图、说明书

一级减速器是机械传动系统中的核心部件&#xff0c;通过齿轮啮合实现转速降低、扭矩增大的功能&#xff0c;广泛应用于机床、输送设备、工程机械等领域。其核心作用在于匹配动力源与负载的转速需求&#xff0c;例如将电机的高速旋转转化为设备所需的低速大扭矩输出&#xff0c;…...

如何参与rms-support-letter.github.io签名:3种简单方法完整指南

如何参与rms-support-letter.github.io签名&#xff1a;3种简单方法完整指南 【免费下载链接】rms-support-letter.github.io An open letter in support of Richard Matthew Stallman being reinstated by the Free Software Foundation 项目地址: https://gitcode.com/gh_m…...

终极xplr快捷键清单:2024最全默认键盘绑定速查手册

终极xplr快捷键清单&#xff1a;2024最全默认键盘绑定速查手册 【免费下载链接】xplr A hackable, minimal, fast TUI file explorer 项目地址: https://gitcode.com/gh_mirrors/xp/xplr xplr是一款可高度定制的极简快速终端文件浏览器&#xff08;TUI file explorer&am…...

百灵快传(B0Pass)性能优化技巧:如何提升大文件传输速度与并发处理能力

百灵快传(B0Pass)性能优化技巧&#xff1a;如何提升大文件传输速度与并发处理能力 【免费下载链接】b0pass 百灵快传(B0Pass)&#xff1a;基于Go语言的高性能 "手机电脑超大文件传输神器"、"局域网共享文件服务器"。LAN large file transfer tool。 项目…...

HTTPoison与JSON处理:如何高效集成Jason库进行数据序列化

HTTPoison与JSON处理&#xff1a;如何高效集成Jason库进行数据序列化 【免费下载链接】httpoison Yet Another HTTP client for Elixir powered by hackney 项目地址: https://gitcode.com/gh_mirrors/ht/httpoison HTTPoison是Elixir生态中一款功能强大的HTTP客户端&am…...

button-card JavaScript模板实战:动态内容与条件渲染的终极教程

button-card JavaScript模板实战&#xff1a;动态内容与条件渲染的终极教程 【免费下载链接】button-card ❇️ Lovelace button-card for home assistant 项目地址: https://gitcode.com/gh_mirrors/bu/button-card button-card是Home Assistant Lovelace界面中一款功能…...

whoami.filippo.io安全指南:保护你的SSH公钥不被恶意服务器收集

whoami.filippo.io安全指南&#xff1a;保护你的SSH公钥不被恶意服务器收集 【免费下载链接】whoami.filippo.io A ssh server that knows who you are. $ ssh whoami.filippo.io 项目地址: https://gitcode.com/gh_mirrors/wh/whoami.filippo.io 在日常使用SSH连接服务…...

Qwen3-ASR-1.7B效果展示:TED演讲级长音频端到端转写完整性验证

Qwen3-ASR-1.7B效果展示&#xff1a;TED演讲级长音频端到端转写完整性验证 1. 开篇引言&#xff1a;为什么需要高质量的语音识别&#xff1f; 在日常工作和学习中&#xff0c;我们经常遇到需要将音频内容转换为文字的场景。无论是会议记录、视频字幕制作&#xff0c;还是学习…...