首页
  • git 规范

    # 主要type
    feat:     增加新功能
    fix:      修复bug
    # 特殊type
    docs:     只改动了文档相关的内容
    style:    不影响代码含义的改动,例如去掉空格、改变缩进、增删分号
    build:    构造工具的或者外部依赖的改动,例如webpack,npm
    refactor: 代码重构时使用
    阅读全文
  • golang 语言 windows下编译linux下运行文件 go build

    命令提示符cmd下使用

    set GOARCH=amd64
    set GOOS=linux
    go build

    Powershell 下使用

    $Env:GOOS = "linux"; 
    $Env:GOARCH = "amd64"
    go build
    阅读全文
  • go 学习

    package main
    
    import (
        "fmt"
        "io/ioutil"
        "log"
        "net/http"
    
        "github.com/gin-gonic/gin"
    )
    
    // Phone asd
    type Phone interface {
        call()
    }
    
    // MiPhone asd
    type MiPhone struct {
    }
    
    阅读全文
  • go 设置代理

    go env -w GOPROXY=https://goproxy.cn,direct
    go mod init api
    go get -u github.com/gin-gonic/gin
    package main
    
    import (
        "fmt"
    
        "github.com/gin-gonic/gin"
    )
    
    func main() {
    阅读全文
  • 记一次git修改仓库报错

    由于github太慢,把仓库地址修改coding.net

    修改地址

    // 修改仓库地址
    git remote set-url origin https://xxxx.coding.net/xxx/xx/xx

    发现报错

    同步报错
    refusing to merge unrelated histories

    解决报错

    阅读全文
  • centos docker 安装 jenkins

    // 搜索镜像
    docker search jenkins
    
    // 拉取镜像
    docker pull jenkins
    
    // 安装容器 暴露端口
    docker run -itd -p 301:8080 jenkins
    
    // 查看
    docker ps 
    
    // 进入docker bash
    docker exec -it 6966666669666 /bin/bash
    
    // 查看密码
    阅读全文
  • dom scrollTo 平滑滚动

    dom scrollTo 平滑滚动

    Element.scrollTo({
        left: 0,
        top: 100,
        behavior: 'smooth'
    })
    阅读全文
  • centos 安装 docker

    替换 阿里云 yum 源

    #下载阿里yum源2
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 
    
    #生成仓库缓存 
    yum makecache  
     

    安装 docker

    yum install docker -y
    
    阅读全文
  • github 同步 代理设置

    全局设置

    git config --global http.proxy http://127.0.0.1:1080
    git config --global https.proxy https://127.0.0.1:1080

    只代理github

    阅读全文
  • gitbook 安装和使用

    gitbook安装和使用

    // 全局安装
    sudo npm -g i gitbook-cli
    // 初始化
    gitbook init
    //本地服务
    gitbook serve 
    //打包
    gitbook build 

    目录配置 SUMMARY.md

    # 目录
    
    * [前言](README.md)
    阅读全文
  • 上一页 1 2 3 4 5 6 7 8 9 下一页
Taoqun
陶群
1994-09-07
taoquns@foxmail.com
前端开发
南京

文章分类

Mac
算法
前端
python
golang
mysql
node
linux
随笔
生活
游记

我的作品

记录体重Pro(小程序)
闲蝉科技

其他推荐

2018-04-26
node-sass 安装失败 填坑
react 添加 react-redux 基本用法
记一次git修改仓库报错
flutter 学习入门 创建项目并运行
scp 远程传输
centos添加用户并赋予管理员权限
flutter 插件
开发者:Taoqun

备案/许可证编号为:皖ICP备17027395号

闲蝉科技