Skip to content

Instantly share code, notes, and snippets.

View huangboju's full-sized avatar

xiAo-Ju huangboju

  • 小红书
  • 上海
View GitHub Profile
@huangboju
huangboju / code.md
Last active December 25, 2021 01:40

一维数组转二维数组

let count = 3

for (i, answer) in answers.enumerated() {
  if _answers.isEmpty || i % count == 0 {
      _answers.append([answer])
  } else {
      _answers[i / count].append(answer)
@huangboju
huangboju / README.md
Last active March 12, 2020 03:41
README规范

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@huangboju
huangboju / git.md
Last active October 26, 2023 09:18

删除远端最后三个commit

  • git reset --hard HEAD~3
  • git push --force
  • git ls-remote

拉分支,推到远端

  • git checkout -b branch_name
  • git push -u origin branch_name

查询一段时间某个人的commit