OpenIdea

Life is short, I write my code.

Git

Git 技巧

1、将本地仓库同步到远程 graph TD; A(git init) --> B(git add .); B(git add .) --> C(git commit -m message); C(git commit -m message) --> D(git remote add origin url); ...

Latex

MacTex 与 Vscode 写 latex 文章

MacTex 下载地址: http://mirror.lzu.edu.cn/CTAN/systems/mac/mactex/mactex-20180417.pkg Vscode 安装 LaTex Workshop 插件 配置: 打开配置 Command + ,,搜索 latex-workshop.latex,打开配置文件。 在用户自定义文件中写入,配置 xelatex 信息: ...

Python [5]

虚拟环境

一、pyenv 采用 pyenv 管理 python 环境。 $ brew install pyenv $ vim .zshrc if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi # 安装特定版本 $ pyenv install 3.6.7 $ pyenv rehash # 查看已安装版本 $ pyenv v...

Python [4]

如何参与开源社区

向开源社区贡献 When contributing code, you’ll want to follow this checklist: Fork the repository on GitHub. Run the tests to confirm they all pass on your system. If they don’t, you’ll need to inve...

Mac 开发神器 —— Dash

Dash 文档查看

Dash is an API Documentation Browser and Code Snippet Manager. Install brew cask install dash Usage Vim Plug # 使用 Plug 进行安装 Plug 'rizzatti/dash.vim' 使用 # 当 cursor 在你想知道的词附近 :Dash # 即可查看文档,...

Mac 开发神器 —— Vim

Vim 编辑器

本篇文章旨在在 mac 平台基于 vim 配置一个 IDE. 使用的工具 Vim tmux iTerm2 + Oh My Zsh iTerm2 + Oh My Zsh 对于 iTerm2 + Oh My Zsh 可参考这篇文章。 Vim Install $ brew install vim # restart shell $ exec -l $SHEL...

Mac 开发神器 —— Vimium

Vimium —— Chrome 浏览器插件

简介 Vimium 是 Chrome 的一款插件,可以实现在 Vim 的快捷操作。 快捷键 j 浏览器向下滚动 k 浏览器向上滚动 Shift + j 前一个标签页 Shift + k 后一个标签页 d 浏览器向下滚动一页 u 浏览器向上滚动一页 h 浏览器向左滚动 l 浏览器向右滚动 Sh...

Airflow [2]

ETL 华山论剑

ETL 工具作为数据处理中的重要一环,除了之前介绍的 airflow 之外,还有很多工具可以使用,不如来一次华山论剑。 Bonobo 对于 Bonobo ,官网已经进行了清楚的定位: Bonobo is an Extract Transform Load (or ETL) framework for the Python (3.5+) language.It is targeti...

Airflow [1]

Airflow 简介

Airflow Airflow Airflow is a platform to programmatically author, schedule and monitor workflows. Use airflow to author workflows as directed acyclic graphs (DAGs) of tasks. The airflow s...

Go [1]

测试和性能

单元测试 单元测试是用来测试包或者程序的一部分代码或者一组代码的函数。 基础测试 只使用一组参数和结果来测试一段代码 go01_test.go 文件 package go01 import ( "net/http" "testing" ) const checkMark = "\u2713" const ballotX = "\u2717" func TestDownlo...