上一页 1 2 3 4 5 6 7 ··· 19 下一页

2021年2月22日

go实现终端输出颜色文本

摘要: go实现终端输出颜色文本 // 示例 fmt.Printf("\033[1;31;40m%s\033[0m\n","高亮显示 - 红色文字,黑色底哒") fmt.Printf("\033[4;31;40m%s\033[0m\n","下划线 - 红色文字,黑色底哒") fmt.Printf("\033 阅读全文

posted @ 2021-02-22 14:50 Sweet小马 阅读(1357) 评论(0) 推荐(0) 编辑

2021年2月13日

JetBrains macOS下快捷键 & 设置-不断完善……

摘要: ##JetBrains macOS下快捷键 & 设置-不断完善…… 操作 说明 mac按键 Reformat Code 代码格式化。 ⌥ + ⇧ + F Rename 重命名(字段/文件名)。 ⌘ + R Close Other Tabs 关闭编辑栏中其他文件。 ⌘ + ⇧ + W Move Lin 阅读全文

posted @ 2021-02-13 09:25 Sweet小马 阅读(108) 评论(0) 推荐(0) 编辑

2021年2月10日

go 中 var声明对比

摘要: 此处的 config1 是指针类型,零值为nil。 config2 为结构体,零值为各个字段的零值的集合。 config3 同 config2。 阅读全文

posted @ 2021-02-10 21:55 Sweet小马 阅读(61) 评论(0) 推荐(0) 编辑

2021年2月8日

Post 中 Body 的 ContentType 用 Postman 举例

摘要: ###Post 中 Body 的 ContentType 用 Postman 举例 四种 ContentType 格式 说明 Content-Type: multipart/form-data; 既可以上传键值对,也可以上传文件。当上传的字段是文件时,会有 Content-Type 来说明文件类型; 阅读全文

posted @ 2021-02-08 19:04 Sweet小马 阅读(275) 评论(0) 推荐(0) 编辑

2021年2月5日

MongoDB随笔(二) mongorestore恢复数据库

摘要: 为了在实验中使用MongoDB,我们先启动一个临时mongod实例: mongod --dbpath /data --port 27017 #该指令使用`/data`作为数据目录(如果不存在需要手动创建),在默认端口`27017`启动一个临时mongod示例 用 mongorestore 命令导入当 阅读全文

posted @ 2021-02-05 13:43 Sweet小马 阅读(227) 评论(0) 推荐(0) 编辑

MongoDB随笔(零) mongod配置 ...不断完善...会变得很长很长很长……

摘要: General 配置 中文说明 说明 --quiet 安静输出。 Quieter output. --port arg 指定服务端口号,默认端口27017。 Specify port number - 27017 by default. --bind_ip arg 绑定服务IP,若绑定127.0.0 阅读全文

posted @ 2021-02-05 13:31 Sweet小马 阅读(253) 评论(0) 推荐(0) 编辑

2021年1月27日

MongoDB随笔(一)mac OSX下brew安装MongoDB

摘要: 首先确保 brew版本brew简介 别太老。然后能支持services启动,不支持就更新一下brew update。 tap切换到第三方的库。 brew tap mongodb/brew 执行安装,这里安装的是社区版 (最后面的@4.2是指定版本号可以不写。注意MongoDB的正式版本号小数点后都是 阅读全文

posted @ 2021-01-27 23:20 Sweet小马 阅读(1128) 评论(0) 推荐(0) 编辑

mac OSX的 brew软件包管理器 相当于 centos下的yum

摘要: Homebrew是使用ruby开发的Mac的软件包管理器,作用类似于 centos 下的 yum。 使用 brew可以方便的安装、卸载、更新各种软件包。 # 安装软件 brew install nodejs # 更新软件 brew upgrade nodejs # 卸载软件 brew remove 阅读全文

posted @ 2021-01-27 22:38 Sweet小马 阅读(267) 评论(0) 推荐(0) 编辑

2021-01-27 解决mac使用brew update更新无反应的问题(切换git地址)

摘要: 转载自简书-黑键手记 主要原因是git访问太慢了。替换一下git镜像的地址就好了。 把中科大(中国科学技术大学)的镜像地址换成默认源。 第一步,替换brew.git cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc. 阅读全文

posted @ 2021-01-27 22:32 Sweet小马 阅读(829) 评论(0) 推荐(0) 编辑

2021年1月9日

c#常用数据校验,如电子邮箱身份证等

摘要: using System.Text; using System.Text.RegularExpressions; namespace 落地页测试代码 { public class Validate { private static Regex RegNumber = new Regex("^[0-9 阅读全文

posted @ 2021-01-09 09:02 Sweet小马 阅读(174) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 19 下一页

导航