GitLab merge request 脚本
介绍我的编写的 GitLab merge request 脚本,包括脚本每次版本迭代的内容、脚本的功能等。
iOS Blocks 第一弹|基础知识
Block 是在 iOS 开发过程中经常出现的角色。它是由 Apple 在 OS X Snow Leopard / iOS 4 上引入的,属于对标准 C 的拓展。Block 可以视为是「带有局部变量的匿名函数(anonymous functions together with automatic variables)」
iOS|利用滑动窗口思想解决长截图问题
利用滑动窗口思想解决 iOS 长截图绘制失败的问题
Swift — 链式编程实现(适配 Objc)
使用 Swift 实现链式编程,并且兼容 Objc
Python 零食铺
终端相关
输入输出
清理终端用户输入缓冲区的数据
如果希望在调用 input 前清理输入缓存区的数据,可以使用如下代码:
import termios
termios.tcflush(sys.stdin, termios.TCIFLUSH)
input('your input prompt&
Swift Concurrency 异步感染问题
Swift Concurrency 异步感染问题
当我们在一个非 async 的方法 A 里面调用 async 的方法 B 时,Xcode 会提示我们无法这么做: 'async' call in a
利用 memgraph 文件追踪 App 内存信息
memgraph 文件导出方法
1. 在 App 调试状态下点击 View Memory Graph Hierarchy
或者点击这里
2. 生成 memgraph 文件后,点击 File → Export Memory Graph