上一页 1 2 3 4 5 6 ··· 59 下一页

2025年6月27日

nginx 建立代理访问其它域名

摘要: nginx 建立访代访问google api nginx 配置 server { listen 80; listen 443 ssl; server_name googleapis.xxx.com; client_max_body_size 512m; #ssl on; ssl_certificat 阅读全文

posted @ 2025-06-27 11:06 星河赵 阅读(39) 评论(0) 推荐(0)

2025年6月16日

海外应用实现聚合付款功能 stripe

摘要: 网址:https://dashboard.stripe.com/ Stripe 是一家美国金融科技公司,提供在线支付处理服务,帮助企业轻松地收付款。它被广泛用于网站、App、电商平台、SaaS 工具等,尤其受到开发者和创业公司青睐。 🧾 Stripe 基本介绍 API 公钥和私钥 阅读全文

posted @ 2025-06-16 17:29 星河赵 阅读(24) 评论(0) 推荐(0)

2025年6月15日

flex 布局方法

摘要: 一、Flex 布局是什么? Flex 是 Flexible Box 的缩写,意为"弹性布局",用来为盒状模型提供最大的灵活性。 任何一个容器都可以指定为 Flex 布局。 .box{ display: flex; } 1.flex-direction:决定主轴的方向 row(默认值):主轴为水平方向 阅读全文

posted @ 2025-06-15 17:39 星河赵 阅读(26) 评论(0) 推荐(0)

2025年6月14日

python 图片缩放到指定像素

摘要: python 图片缩放到指定像素 from PIL import Image import io import base64 MAX_SIZE = 2450 def resize_image_max_side(image_data: bytes, max_side: int = MAX_SIZE) 阅读全文

posted @ 2025-06-14 11:07 星河赵 阅读(31) 评论(0) 推荐(0)

2025年6月12日

png转alpha图片

摘要: png转alpha import cv2 import os save_path = "/tmp/17527.png" img_png = cv2.imread(save_path, cv2.IMREAD_UNCHANGED) alpha = img_png[:, :, 3] os.remove(s 阅读全文

posted @ 2025-06-12 17:08 星河赵 阅读(13) 评论(0) 推荐(0)

2025年6月3日

通过auth0实现google登录和apple登录以及emal登录

摘要: 客户端传 code 给后端换 token(清晰流程) [前端跳转到 Auth0 登录页面(response_type=code)] | v [用户登录后,Auth0 回调前端页面 /fe-login-callback?code=xxx] | v [前端拿到 code 后,请求你后端 API:/api 阅读全文

posted @ 2025-06-03 16:41 星河赵 阅读(165) 评论(0) 推荐(0)

2025年5月20日

python 将html 转为pdf

摘要: 如果你是在 Linux (如 Ubuntu) 环境中运行,可以通过如下命令安装: sudo apt-get update sudo apt-get install -y wkhtmltopdf 🛠 安装(推荐 Python 3.7+) pip install pdfkit 🔧 如果安装失败,可能 阅读全文

posted @ 2025-05-20 15:08 星河赵 阅读(124) 评论(0) 推荐(0)

2025年5月19日

python 通过asyncio 协程来下载图片

摘要: python 通过asyncio 协程的方式来下载图片 """ 以协程的方式下载图片 """ import os import sys import asyncio import aiohttp import traceback sys.path.append(os.path.abspath(os. 阅读全文

posted @ 2025-05-19 15:31 星河赵 阅读(28) 评论(0) 推荐(0)

2025年5月9日

Vue vscode 常用插件安装

摘要: Vue vscode 常用插件安装 必装插件(推荐组合) 插件名称用途 Volar(替代 Vetur) Vue 3 官方推荐语法支持插件(必须装) TypeScript Vue Plugin (Volar) 支持 Composition API 和类型提示 Vue Language Features 阅读全文

posted @ 2025-05-09 15:12 星河赵 阅读(188) 评论(0) 推荐(0)

2025年4月30日

提取png图片为alpha图

摘要: 通过opencv 提取png图片为alpha图 import cv2 img_png = cv2.imread(save_path, cv2.IMREAD_UNCHANGED) alpha = img_png[:, :, 3] os.remove(save_path) # 删除提取alpha 前的图 阅读全文

posted @ 2025-04-30 18:03 星河赵 阅读(27) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 59 下一页

导航