码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
6051: KiKi's K-Number (树状数组)
增加一个数就update(x,1) 减去这个数就update(x,-1) 查看是否有某个数就query(x)-query(x-1)是否>0 看比a大k的数就二分查找query值为query(a)+k的数 http://www.tzcoder.cn/acmhome/problemdetail.do?& ...
分类:编程语言   时间:2020-05-15 18:33:55    阅读次数:73
shell运维脚本案例
用户方面 1、用shell脚本批量建立Linux用户 实现要求:创建用户student1到student50,指定组为student组!而且每个用户需要设定一个不同的密码! #!/bin/bash for i in `seq 1 10` do useradd -G student student$i ...
分类:系统相关   时间:2020-05-15 17:31:36    阅读次数:89
防抖节流
防抖(debounce):所谓防抖,就是指触发事件后在 n 秒内函数只能执行一次,如果在 n 秒内又触发了事件,则会重新计算函数执行时间。 节流(throttle):所谓节流,就是指连续触发事件但是在 n 秒中只执行一次函数。节流会稀释函数的执行频率。 防抖在于控制次数,节流在于控制频率! <!DO ...
分类:其他好文   时间:2020-05-15 16:14:18    阅读次数:209
ubuntu 开机启动
1.创建sh文件 lsl@lsl-Mi-Laptop-Pro-15:~/文档$ touch runffs1.sh 2.编辑sh文件lsl@lsl-Mi-Laptop-Pro-15:~/文档$ gedit runffs.sh 文件内容: #!/bin/sh cd /home/lsl/文档/FFS do ...
分类:系统相关   时间:2020-05-15 11:19:10    阅读次数:64
ping
一、批量 Ping 网段 for /L %D in (1,1,255) do ping 10.168.1.%D 二、记录路由 ping -r count ping -n 1 -r 9 121.40.43.188 三、发送指定大小数据包 ping -l size 的使用 ping -l 65500 - ...
分类:其他好文   时间:2020-05-15 09:56:37    阅读次数:65
瞬间教你学会使用java中list的retainAll方法
retainAll方法简介 当我们有两个list集合的时候,我们可以使用retainAll方法求得两个list集合的子集。retainAll是Collection接口中提供的一个方法,各个实现类有自己的实现方式,我们这里介绍ArrayList的实现方式。 retainAll源码深入 可以看到coll ...
分类:编程语言   时间:2020-05-15 09:31:33    阅读次数:75
Docker安装Jenkins
OS环境:CentOS 7 Docker version:19.03.8 工具: XShell 准备工作:安装Cent OS7的java环境,参考自:https://www.cnblogs.com/stulzq/p/9286878.html 1. 拉取最新版本jenkins镜像 command:do ...
分类:其他好文   时间:2020-05-15 00:31:24    阅读次数:47
npm安装过程的报错
$ npm install px2rem-loader npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, ...
分类:其他好文   时间:2020-05-15 00:02:59    阅读次数:240
[Mise] Toggle visibility and styles based on state with `x-show` and `x-bind` in Alpine JS
In this lesson, we create a set of tabs with Alpine JS, where only the content of the currently active tab is visible. To do this, we define an active ...
分类:Web程序   时间:2020-05-14 19:45:34    阅读次数:73
Java压缩流GZIPStream导致的内存泄露
转自 https://www.jianshu.com/p/5841df465eb9 我们来聊聊GZIPOutputStream 和 GZIPInputStream, 如果不关闭流会引起的问题,以及GZIPStream申请和释放堆外内存的流程, Let's do it! 引子 在我的工程里面又一个工具 ...
分类:编程语言   时间:2020-05-14 15:11:19    阅读次数:92
12356条   上一页 1 ... 41 42 43 44 45 ... 1236 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!