vscode 快捷键

摘要: { "key": "cmd+k cmd+0", "command": "editor.foldAll", "when": "editorTextFocus && foldingEnabled"} 先按下 cmd+k ,再按下 cmd+0 收起所有函数 先按下cmd+k ,再按下 cmd+j 打开所有 阅读全文
posted @ 2025-01-13 17:05 少杨 阅读(1) 评论(0) 推荐(0) 编辑

linux 开发ffmpeg 程序

摘要: linux 开发ffmpeg 程序 Makefile CC=gcc target: $(CC) -o main main.c -lavcodec -lavformat -lswresample -lavutil -lavfilter -lavdevice -lswscale -lm # $(CC) 阅读全文
posted @ 2025-01-03 16:58 少杨 阅读(6) 评论(0) 推荐(0) 编辑

h5播放 加密m3u8文件

摘要: h5播放 加密m3u8文件 1. openssl rand 16 > enc.key 2. openssl rand 16 -hex # 获取字符串,key_info.txt 文件用 3. 新建文件:key_info.txt http://127.0.0.1:8080/enc.keyenc.keyd 阅读全文
posted @ 2024-12-30 18:28 少杨 阅读(25) 评论(0) 推荐(0) 编辑

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

摘要: error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PRO 阅读全文
posted @ 2024-11-24 17:01 少杨 阅读(15) 评论(0) 推荐(0) 编辑

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

摘要: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools in 阅读全文
posted @ 2024-11-24 16:51 少杨 阅读(17) 评论(0) 推荐(0) 编辑

/usr/local/Cellar/ruby/3.3.6/lib/ruby/3.3.0/rubygems.rb:259:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)

摘要: 问题: /usr/local/Cellar/ruby/3.3.6/lib/ruby/3.3.0/rubygems.rb:259:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::Ge 阅读全文
posted @ 2024-11-24 16:50 少杨 阅读(250) 评论(0) 推荐(0) 编辑

ionic 本地即时native测试

摘要: ionic 本地native测试 ionic cap run android --livereload --external --public-host=192.168.2.178 res/xml/network_security_config.xml <?xml version="1.0" enc 阅读全文
posted @ 2024-11-09 23:17 少杨 阅读(1) 评论(0) 推荐(0) 编辑

ionic android http 不能访问

摘要: ionic android http 不能访问,解决安卓不能访问http的问题 修改:capacitor.config.ts import type { CapacitorConfig } from '@capacitor/cli'; const config: CapacitorConfig = 阅读全文
posted @ 2024-11-09 12:13 少杨 阅读(10) 评论(0) 推荐(0) 编辑

ts 单例模式

摘要: ts 单例模式 class AudioManage { static audio: AudioManage|null = null constructor(){ console.log("constructor") } static Instance(){ // Audio.audio = new 阅读全文
posted @ 2024-11-05 11:21 少杨 阅读(3) 评论(0) 推荐(0) 编辑

python PyPDF2 切割PDF文件

摘要: python PyPDF2 切割PDF文件 from PyPDF2 import PdfReader, PdfWriter def split_pdf(in_file,out_file,orientation="vertical",percent=0.5): """ :param in_file: 阅读全文
posted @ 2024-10-21 12:30 少杨 阅读(29) 评论(0) 推荐(0) 编辑