Skip to content

Instantly share code, notes, and snippets.

View cooper1x's full-sized avatar
:octocat:
Focusing

Cooper cooper1x

:octocat:
Focusing
View GitHub Profile
@Glowin
Glowin / douyin.py
Last active November 27, 2019 08:03
2019年掘金 1024 特别视频活动抽奖代码 https://juejin.im/post/5daeffcb5188257a63539bae
import os
import json
import random
path = "/Users/glow/Desktop/aa/douyin/json" # json 文件位置
files = os.listdir(path)
jueyou = {} # 存储抖音所有掘友的 ID 和留言内容 为词典
nameList = [] # 存储掘友 ID
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@zxhfighter
zxhfighter / fork-and-push.md
Last active May 31, 2024 03:17
如何给开源项目贡献代码

如何给开源项目贡献代码

分两种情况:

  • 代码仓库管理者给你添加该仓库的写入权限,这样的话可以直接push
  • 如果不能直接push(大多数情况),采用经典的fork & pull request来提交代码,下面讲述这种情况

fork & pull request

例如有个仓库https://github.com/ecomfe/esui.git,其采用了经典的分支开发模型,稳定后的代码提交到master分支,其余特性则在dev分支上进行开发,待成熟后合并回master分支。