单例模式(Singleton) /*** * Class Singleton 单例模式 * 单例类不能再其它类中直接实例化,只能被其自身实例化。它不会创建实例副本,而是会向单例类内部存储的实例返回一个引用。 * 1.私有的构造函数、克隆函数,防止外部代码new、clone * 2.私有的静态的成员变 ...
分类:
Web程序 时间:
2020-06-27 18:40:16
阅读次数:
99
git 仓库迁移两步就够了。 从原仓库把整个仓库拉下来。 git clone --bare git://192.168.10.XX/git_repo/project_name.git 把仓库推到新的仓库里面去。 cd project_name.git git push --mirror git@19 ...
分类:
其他好文 时间:
2020-06-27 18:35:43
阅读次数:
67
生成树顾名思义是对原图提取一些边来生成一棵树。 例题: CF840B Leha and another game about graph 题解 ...
分类:
其他好文 时间:
2020-06-27 16:00:29
阅读次数:
35
安装 Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 如果安装过程中一直卡在 clone homebrew-core,可以退出后执行以 ...
分类:
其他好文 时间:
2020-06-27 11:31:21
阅读次数:
49
Conda 环境增删改查 添加 conda create -n py36 python=3.6 删除 conda remove -n py36 --all 修改 修改 conda 虚拟环境的名称,通过 clone 实现。 这里将 py36 名称修改为 pyenv。实现方式:1.克隆原环境,并设置新的 ...
分类:
其他好文 时间:
2020-06-27 11:21:39
阅读次数:
63
In this problem, a tree is an undirected graph that is connected and has no cycles. The given input is a graph that started as a tree with N nodes (wi ...
分类:
其他好文 时间:
2020-06-27 09:35:14
阅读次数:
75
#通过git Bash Here把文件夹上传到github 前提:安装好git,鼠标右键选择 ##1.指定目录: ##2.第一次上传项目(需先把GitHub仓库克隆到本地): git clone github仓库 ###如下可以快速复制自己GitHub地址: ##3.把项目文件夹内容添加进来: gi ...
分类:
Web程序 时间:
2020-06-27 00:09:00
阅读次数:
117
今天读到一篇KDD2020的论文,感觉很有启发,BERT的预训练在NLP领域已经很成功了,但在图嵌入领域还没有成功的预训练,这篇文章就解决了这个问题。 GCC: Graph Contrastive Coding for Graph Neural Network Pre-Training 代码:htt ...
分类:
其他好文 时间:
2020-06-26 18:35:04
阅读次数:
114
常用命令 git clone url git add . git commit -m "info" git push --force origin master Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库 本地分 ...
分类:
其他好文 时间:
2020-06-26 18:27:21
阅读次数:
86
隔离性:namespace namespace(命名隔离) 隔离内容 系统调用参数 内核版本 MNT Namespace mount 提供磁盘挂载点和文件系统的隔离能力 CLONE_NEWNS 2.4.19 IPC Namespace Inter-Process Communication 提供进程 ...
分类:
其他好文 时间:
2020-06-26 16:11:57
阅读次数:
59