首页
  • 记一次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)
    阅读全文
  • go-gin框架基本接口

    package main
    
    import (
        "fmt"
        "github.com/gin-gonic/gin"
        "net/http"
    )
    
    type User struct {
        Name string `json:"name"`
        Age  int    `json:"age"`
    }
    
    func main() {
    
        r := gin.Default()
    
    阅读全文
  • npm 切换淘宝源和npm源

    
    npm install -g nrm 
    
    nrm use taobao
    
    nrm use npm
    
    阅读全文
  • npm 自建 包

    新建本地目录文件夹,初始化

    // 新建文件夹 然后
    npm init

    新建index.js

    function hello( name ){
        console.log( "hello" + name )
    }
    exports.hello = hello

    登陆npm账户 登陆和发布需要切换到npm官方源,见下↓

    npm adduser
    阅读全文
  • go 学习 包的导出

    | - src
        - index.go
        - libs
            - index.go

    libs / index.go

    package libs // 属于哪个包
    //  方法名 首字母 大写才能导出
    func Count( a int, b int ) int {
        return a + b
    }
    

    index.go

    阅读全文
  • 上一页 1 2 3 4 5 6 7 8 9 10 下一页
Taoqun
陶群
1994-09-07
taoquns@foxmail.com
前端开发
南京

文章分类

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

我的作品

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

其他推荐

耗材
python 学习 抓取 中国福利彩票网站的信息
年中总结一下吧
go 设置代理
mac 使用rz、sz
开发者:Taoqun

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

闲蝉科技