CocoaPods制作篇

Update: 2015-04-10

上传podspec文件到CocoaPods官方仓库中的方式更改,原来的办法不可行,新的办法如下:
http://guides.cocoapods.org/making/getting-setup-with-trunk.html

First you need to register for trunk:

$ pod trunk register orta@cocoapods.org 'Orta Therox' --description='macbook air'
Then you should be able to do:

$ pod trunk push yourPodspec.podspec
I hope that answers your question - I'm afraid I don't speak Chinese so I'm relying on google translate.
Read more   2023/05/12 posted in  iOS

Odoo10 macOS开发环境配置

  1. 执行 xcode-select --install ,如果已安装请忽略
  2. 下载odoo10,执行 git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
    1. 速度慢使用镜像: git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
  3. 安装pip
    1. curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
    2. python get-pip.py
    3. 需要在.bash_profile.zprofile添加export PATH=~/Library/Python/2.7/bin:${PATH}
    4. pip镜像使用,执行pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
      1. 镜像说明: https://mirrors.tuna.tsinghua.edu.cn/help/pypi/
Read more   2023/05/12 posted in  Python 后端

sourcetree big sur Icon Toolbar placement

2023/05/12 posted in  Python

gitstats代码统计

brew install gnuplot

git clone https://github.com/hoxu/gitstats.git

python gitstats/gitstats "git路径" "git路径" "生成路径"

如: python gitstats/gitstats -c project_name="name" -c start_date=2017-10-1 "git/code1" "git/code2" out

统计git/code1,git/code2代码,时间从2017-10-1号开始,项目名为name,输出至out目录

// 一些参数:
{
	'max_domains': 10,
	'max_ext_length': 10,
	'style': 'gitstats.css',
	'max_authors': 20,
	'authors_top': 5,
	'commit_begin': '',
	'commit_end': 'HEAD',
	'linear_linestats': 1,
	'project_name': '',
	'processes': 8,
	'start_date': '注意格式'
}
2023/05/12 posted in  Python

用Python写爬虫

##目标

爬取美图天空的图片,并自动下载至本地

##环境

Python3.4+BeautifulSoup

Read more   2023/05/12 posted in  Python

Mac自带Python升级及pip安装

Read more   2023/05/12 posted in  Python

Mac抓取小程序源码

  1. 安装安卓模拟器 https://mumu.163.com/
  2. 模拟器设置-开启ROOT权限
  3. 安装微信 https://weixin.qq.com/download
  4. 安装 RE文件管理器
  5. 登录微信,点击想要抓取小程序(小程序会闪退)
  6. 打开 RE文件管理器,路径:/data/data/com.tencent.mm/MicroMsg/32位字符路径/appbrand/pkg/
  7. 长按文件夹压缩,压缩后通过微信发送
  8. 下载反编译工具:https://github.com/qwerty472123/wxappUnpacker
  9. 执行命令:npm i
  10. node wuWxapkg.js xxx..wxapkg
2023/05/12 posted in  杂项

Fire TV stick 4K

准备

  • 梯子
  • 电视HDMI输入
Read more   2023/05/12 posted in  杂项

Git Commit Msg

<type>(<scope>): <subject>

<body>

<footer>

Example

fix(middleware): ensure Range headers adhere more closely to RFC 2616

Add one new dependency, use `range-parser` (Express dependency) to compute
range. It is more well-tested in the wild.

Fixes #2310
Read more   2023/05/12 posted in  杂项