1.1 if A=4’b0011,B=3’b110 and C=4’b1110,then which one is the correct result for expression of {2{~A}}(B[1:0]&C[3:2]) ? A. 00 B. 01 C. 10 D. 11 ~^A = ...
分类:
其他好文 时间:
2021-04-28 12:21:02
阅读次数:
0
for..in loops iterate over the entire prototype chain, which is virtually never what you want. 意思是使用for..in会遍历整个原型链,这样不是很好的实现方法,推荐使用Object.keys formRu ...
分类:
其他好文 时间:
2021-04-27 14:24:47
阅读次数:
0
#alias method/别名算法 ##前言 一个在oi/acm比较少见的算法吧。。 ##从问题开始QAQ 有$N(N>1)$个物品,有属性$d_i$,现在要平均放进$N-1$个盒子里,每个盒子最多存在两个物品,物品可以分割。 ##当N=2时。 显然两个全放进一个盒子里就行了。 ##当N>2时。 ...
分类:
编程语言 时间:
2021-04-24 13:15:51
阅读次数:
0
Span one vector to a line Let \(\mathbf{v}\) be a nonzero vector in \(\mathbb{R}^{3} .\) Then \(\operatorname{Span}\{\mathbf{v}\}\) is the set of all ...
分类:
其他好文 时间:
2021-04-22 16:15:07
阅读次数:
0
1.查看系统自带别名 2.设置别名方式,这里拿网卡路径设置 alias cdnet='cd /etc/sysconfig/network-scripts/' 3.要永久生效,需要编辑家目录的.bashrc文件 4.编辑完成后,保存退出,使用source .bashrc命令即可立即生效。 ...
分类:
其他好文 时间:
2021-04-22 15:40:49
阅读次数:
0
There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <re ...
分类:
其他好文 时间:
2021-04-22 15:28:20
阅读次数:
0
作者:HelloGitHub-小夏(首发于 HelloGitHub 公众号) 作为一个靠代码作为“生计”的开发者,bug 写的好不好,编辑器真的很重要!那么 Visual Studio Code 这个大名你肯定不会陌生。作为一个老厉害的编辑器,它的过人之处简单讲讲来说有这么几点: 首先,它的设计者是 ...
分类:
其他好文 时间:
2021-04-21 11:45:33
阅读次数:
0
在/etc/profile.d目录里下新建 shell脚本 (设置alias别名命令的功能) 让新建的别名生效 设置完成后之际可以使用别名 gj 命令 执行poweroff一样效果的 ...
分类:
其他好文 时间:
2021-04-20 14:33:22
阅读次数:
0
生成RSA密钥 1. 制作密钥对 [root@host ~]$ ssh-keygen <== 建立密钥对 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): ...
分类:
系统相关 时间:
2021-04-19 15:54:27
阅读次数:
0
#! /bin/bash # @author # @breif auto ssh function show_usage(){ echo -e " This is Usage " echo -e " -h: which host to go,for example dev041" } functio ...
分类:
其他好文 时间:
2021-04-19 15:50:26
阅读次数:
0