该文被密码保护。 阅读全文
posted @ 2023-12-15 20:59 CoderWGB 阅读(0) 评论(0) 推荐(0) 编辑
摘要: ```bash if [ "$PLATFORM_NAME" = "iphonesimulator" ] ; then echo "模拟器运行" else echo "真机运行" fi ``` 阅读全文
posted @ 2023-08-24 23:20 CoderWGB 阅读(25) 评论(0) 推荐(0) 编辑
摘要: ## 私有API (慎用 不上appstore的话就可以用) ```objc //AppDelegate.m //监听锁屏事件 #define kNotificationLock CFSTR("com.apple.springboard.lockcomplete") //监听屏幕状态变化事件 #de 阅读全文
posted @ 2023-07-13 21:33 CoderWGB 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 举例: 通过油猴下载 `https://www.cocoacontrols.com/`的 `GitHub`代码 ```js // ==UserScript== // @name cocoacontrols.com下载代码 // @namespace http://tampermonkey.net/ 阅读全文
posted @ 2023-06-16 20:37 CoderWGB 阅读(112) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-06-03 12:28 CoderWGB 阅读(0) 评论(0) 推荐(0) 编辑
摘要: ```ruby Pod::Spec.new do |s| s.name = 'AKProtoOC' s.version = '1.0.0' s.license = 'MIT' s.summary = 'PB文件本地库管理' s.homepage = 'https://xxxxxx' s.author 阅读全文
posted @ 2023-05-30 22:15 CoderWGB 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 首先创建一个目录,`cd`到目录下, `npm init -y `一路回车, 安装一个插件 `npm i websocket` 建一个`server.js`文件 ```js const WebSocketServer = require('websocket').server const http 阅读全文
posted @ 2023-05-25 20:11 CoderWGB 阅读(242) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/797853/202305/797853-20230504214010075-185218564.png) 需要安装命令行插件 `pngquant` `jpegoptim` `gifsicle` ```python impor 阅读全文
posted @ 2023-05-04 21:42 CoderWGB 阅读(32) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/797853/202305/797853-20230504212831286-1760594404.png) shell脚本如下: 需要安装`ffmpeg`命令行工具 ```bash PATH=$PATH:/usr/local 阅读全文
posted @ 2023-05-04 21:35 CoderWGB 阅读(27) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/797853/202305/797853-20230504212309420-1845884706.png) shell脚本如下: ```bash if [[ -n "${1}" ]]; then ipaName=${1##* 阅读全文
posted @ 2023-05-04 21:27 CoderWGB 阅读(34) 评论(0) 推荐(0) 编辑