BunnyVisionPro
所谓理解,通常不过是误解的总合。——村上春树《斯普特尼克恋人》 这个项目允许使用VisionPro控制机器人手臂 github: https://github.com/Dingry/BunnyVisionPro 文档: https://dingry.github.io/BunnyVisionPro/getstarted/install/ 123456789101112131415161718192021222324252627282930313233Github-Id-VampireAchao:visionpro-robot achao$ curl https://registry-1.docker.io/v2/curl: (35) Recv failure: Connection reset by peerGithub-Id-VampireAchao:visionpro-robot achao$ export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5...
Alamofire
不是不想见任何人,而是不想踏入那种互相比拼的烦人世界。——《不如去死》 Alamofire is an HTTP networking library written in Swift. Features Component Libraries Requirements Migration Guides Communication Installation Contributing Usage Introduction - Making Requests, Response Handling, Response Validation, Response Caching HTTP - HTTP Methods, Parameters and Parameter Encoder, HTTP Headers, Authentication Large Data - Downloading Data to a File, Uploading Data to a Server Tools - Statistical Metrics, cURL Command Output A...
SwiftLint
人的身体和机器一样需要保养。——佚名 SwiftLintSwiftLint 是一个用于强制检查 Swift 代码风格和规定的一个工具,基本上以 Kodeco’s Swift 代码风格指南为基础。 SwiftLint Hook 了 Clang 和 SourceKit 从而能够使用 AST 来表示源代码文件的更多精确结果。 该项目遵守 贡献者契约行为守则。一旦参与,你将被视为支持这一守则。请将不可接受的行为报告给 info@realm.io。 安装使用Swift Package ManagerSwiftLint 可以用作命令插件或构建工具插件 添加 1.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "<version>") 到你的 Package.swift 文件中,以自动获取 SwiftLint 的最新版本,或者将依赖项固定到特定版本: 1.package(url: "https://github.com/Simply...
SwifterSwift
人类所能犯的最大错误就是拿健康来换取其他身外之物!——叔本华 SwifterSwift 是 500 多个原生 Swift 扩展的集合,为 iOS、macOS、tvOS、watchOS 和 Linux 提供了(超过 500 个)适用于各种原生数据类型、UIKit 和 Cocoa 类的便捷方法、语法糖和性能改进。 v6.0 有什么新功能?要求 iOS 12.0+ / tvOS 12.0+ / watchOS 4.0+ / macOS 10.13+ / Ubuntu 14.04+ Swift 5.6+ 希望将 SwifterSwift 用于旧版本的 SwiftSwifterSwift 从 v5 开始兼容 Swift v5.0+ 要与 Swift 3 / Xcode 8.x 一起使用,请确保您使用的是 v3.1.1。 要与 Swift 3.2 / Xcode 9.x 一起使用,请确保您使用的是 v3.2.0。 安装 CocoaPods 要使用 CocoaPods 将 SwifterSwift 集成到您的 Xcode ...
uniapp-x之uts插件运行hutool
若要为自己而活,首先必须为别人而活。——色内卡 注意这里是安卓真机设备 注意配置好HBuilderX的gradle配置、JDK配置、安卓SDK配置等,在HBuilderX的运行配置中能找到 首先HBuilderX新建一个uniapp-x工程 就是在uni-app项目默认模板下面勾选uni-app x 然后先运行到安卓手机上,我们自定义一个基座 HBuilderX选择运行——运行到手机或模拟器——制作自定义调试基座 我这里输入包名,等待云打包完成后即可在运行到Android真机设备时选择自定义基座运行 然后我们右键新建一个目录叫uni_modules,右键uni_modules新建uni_modules插件 选择UTS插件-API插件新建,我这里输入的名字叫dromara-hutool 新建以后我们在uni_modules/dromara-hutool/utssdk/app-android/config.json中引入hutool的依赖 123456{ "minSdkVersion": "21", "dependenc...
uniapp自动化测试
日常生活的摩擦龃龉,十之其九起于口舌。——贝涅特 推荐使用HBuilderX uni-app自动化测试插件 https://ext.dcloud.net.cn/plugin?id=5708 安装完毕,右键项目选择uni-app运行自动化测试即可 这里可以在HBuilderX设置的插件设置里取消勾选“自动修改jest.config.js文件中的testMatch”选项才能自定义测试目录 这是我的jest.config.js: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455module.exports = { globalTeardown: '@dcloudio/uni-automator/dist/teardown.js', testEnvironment: '@dcloudio/uni-automator/dist/environment.js', testEnvironm...
uniapp-cli工程
人生苦短,虽说如此,还会感到无聊。——佚名 除了HBuilderX可视化界面,也可以使用 cli 脚手架,可以通过 vue-cli 创建 uni-app 项目。 #环境安装全局安装 vue-cli 1npm install -g @vue/cli 复制代码 #创建uni-app 使用正式版(对应HBuilderX最新正式版) 1vue create -p dcloudio/uni-preset-vue my-project 复制代码 使用alpha版(对应HBuilderX最新alpha版) 1vue create -p dcloudio/uni-preset-vue#alpha my-alpha-project 复制代码 使用Vue3/Vite版 创建以 javascript 开发的工程(如命令行创建失败,请直接访问 gitee 下载模板) 1npx degit dcloudio/uni-preset-vue#vite my-vue3-project 复制代码 1npx degit dcloudio/uni-preset-vue#vite-alpha...
uView升级http配置兼容变更
人生须知负责任的苦处,才能知道尽责任的乐趣。——梁启超 今天把老项目uniapp的http封装代码cv过来,发现用不了了,原因是uView版本升级了没适配 原先uView 1.x的方式: 123456789101112131415161718192021222324Vue.prototype.$u.http.setConfig({ baseUrl: 'http://localhost:8080/ruben', loadingText: '加载中...', loadingTime: 100,});Vue.prototype.$u.http.interceptor.request = (config) => { const token = uni.getStorageSync('token'); config.header.token = token; return config;}Vue.prototype.$u.http.interce...
HBuilderX运行到iOS真机
人生的光荣,不在永不失败,而在于能够屡扑屡起。——拿破仑 直接选择运行——运行到手机或模拟器——运行到iOS APP基座 这里使用标准基座运行需要使用Apple证书签名 点开有四个配置项 Bundle ID(AppID)——是自己设置的 这个可以是包名,我们到Identifiers里新建一个,Bundle ID(AppID)填写我们的包名即可 https://developer.apple.com/account/resources/identifiers/list 证书私钥密码——是自己设置的 我们在mac上打开钥匙串访问,左上角菜单栏点击钥匙串访问 选择证书助理——使用"chao a"从证书颁发机构请求证书 然后填写自己设置的密码 此处还生成一个文件CertificateSigningRequest.certSigningRequest 证书profile文件: 在Profiles新建后下载得到robotrobot.mobileprovision,我们在HBuilderX选这个文件即可 https://developer.apple.com/accou...
typescript-exercises(十五)
人的一辈子都在高潮—低潮中浮沉,唯有庸碌的人,生活才如死水一般。——傅雷 问题: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051/*Intro: Our attempt to Open Source didn't work quite as expected. It turned out there were already many existing functional JS libraries. All the remaining developers left the company as well. It seems that they are joining a very ambitious startup which re-invented a juicer and raised millions of dollars. Too bad we cannot compe...
