装逼一定要掌握这几个Linux命令- cmatrix的安装和使用(黑客屏保)

黑客,相信是每个理工男都想成为的角色。小时候电影中我们经常看到黑客们面对繁琐复杂的数据,在键盘上几个快速的操作动作让电脑立刻跳出炫酷的界面。长大后我们在B站上也有看到所谓的大佬背靠一个快速闪动各种字符的电脑界面,向你讲授如何30天从入门到精通xx。总之,看到这种场景,脑子立刻闪现出两个字——牛逼。
今天我们就一起看下如何轻松地成为别人眼中的牛逼。
cmatrix-黑客屏保
安装

$sudo apt-get install cmatrix

cmatrix --help

选项
-a :异步滚动(默认)
-b :随机粗体
-B :全部粗体
-f :force the linux $TERM type to be on
-l :Linux mode (sets “matrix.fnt” font in console)
-o :使用旧风格滚动(不好看)
-h :获得帮助信息
-n :不使用粗体(默认)
-s :“Screensaver” mode,exits on first keystroke
-x :X window 模式,好像就是显示的符号不一样
-V :显示版本信息
-u :刷新频率,0-9,也就是滚动的快慢
-C :显示的颜色,支持green(默认),red,blue,white,yellow,cyan,
magenta and black

使用技巧:
1.输入cmatrix命令,开始流星雨

$cmatrix

在这里插入图片描述

可以按数字0-9调节快慢;
可以使用q,退出,或者 ctr+c。

可以使用cmatrix -B -C red 进行调节显示颜色。如变成红色

在这里插入图片描述

sl-小火车

和上同理
首先安装

$sudo apt-get install sl

安装完毕,可使用 sl --help查看帮助
输入:

$sl

效果图如下:
在这里插入图片描述

hollywood
使用方式同:cmatrix;
效果图如下:在这里插入图片描述

bastet 命令
使用方式同:cmatrix;
效果图如下:
在这里插入图片描述

aafire 命令
使用方式同:cmatrix;
效果图如下:在这里插入图片描述

Introduction ============ This is a class for symmetric matrix related computations. It can be used for symmetric matrix diagonalization and inversion. If given the covariance matrix, users can utilize the class for principal component analysis(PCA) and fisher discriminant analysis(FDA). It can also be used for some elementary matrix and vector computations. Usage ===== It's a C++ program for symmetric matrix diagonalization, inversion and principal component anlaysis(PCA). To use it, you need to define an instance of CMatrix class, initialize matrix, call the public funtions, and finally, free the matrix. For example, for PCA, CMarix theMat; // define CMatrix instance float** C; // define n*n matrix C = theMat.allocMat( n ); Calculate the matrix (e.g., covariance matrix from data); float *phi, *lambda; // eigenvectors and eigenvalues int vecNum; // number of eigenvectors (<=n) phi = new float [n*vecNum]; lambda = new float [vecNum]; theMat.PCA( C, n, phi, lambda, vecNum ); delete phi; delete lambda; theMat.freeMat( C, n ); The matrix diagonalization function can also be applied to the computation of singular value decomposition (SVD), Fisher linear discriminant analysis (FLDA) and kernel PCA (KPCA) if forming the symmetric matrix appropriately. For data of very high dimensionality (n), the computation of nxn matrix is very expensive on personal computer. But if the number m of samples (vectors) is smaller than dimenionality, the problem can be converted to the computation of mxm matrix. The users are recommended to read the paper KPCA for how to form mxm matrix: B. Sch枚lkopf, A. Smola, K.-R. M眉ller. Nonlinear component analysis as a kernel eigenvalue problem, Neural Computation, 10(5): 1299-1319, 1998. Example ======= Refer to `example' directory for a simple demonstration.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值