码迷,mamicode.com
首页 >  
搜索关键字:count primes    ( 18399个结果
复杂随机函数
async getHome() { let temp = await http.getHome(); //随机方法 function getRandomElements(arr, count) { var shuffled = arr.slice(0), i = arr.length, min =  ...
分类:其他好文   时间:2021-05-24 08:06:07    阅读次数:0
git shell自动打tag
#拿出当前匹配的test_ca_v2.1最近版本号 latelyTag=$(git describe --match "test_ca_v2.1*" --abbrev=0 --tags $(git rev-list --tags --max-count=1)) #版本前缀 tagPre="test_ ...
分类:系统相关   时间:2021-05-24 07:54:48    阅读次数:0
Centos 配置交换空间
运行命令free -h,若swap那一行都是0的话表明没有交换空间。dd if=/dev/zero of=/var/swap bs=1024 count=2048000if 表示infile,of表示outfile,bs=1024代表增加的模块大小,count=2048000代表2048000个模块 ...
分类:其他好文   时间:2021-05-24 07:51:25    阅读次数:0
git 获取最新的匹配到的tag
Git命令来获取/查找以test_ca_v开头的最后一个标签 git describe --match "test_ca_v*" --abbrev=0 --tags $(git rev-list --tags --max-count=1) 效果: ...
分类:其他好文   时间:2021-05-24 07:47:44    阅读次数:0
MongoDB 学习4 文档 查询
查询的方法还挺多的 查询所有 这两个一样 db.getCollection('userInfo').find({}) db.userInfo.find() distinct db.userInfo.distinct("name") 返回去重复后的所有name字段的值 按条件查询 db.userInf ...
分类:数据库   时间:2021-05-24 06:17:50    阅读次数:0
Oracle报错ORA-12516 TNS:listener could not find available handler with matching protocol stack
出现错误场景:通常是由于很多人或者很多应用(java应用、R应用等)连接数据库,导致连接数(session)数量超出限制。 解决办法 定位原因 -- 以sysdba身份登陆PL/SQL sqlplus / as sysdba; -- 查看当前连接进程数 SQL>select count(*) fro ...
分类:数据库   时间:2021-05-24 04:19:23    阅读次数:0
03-策略模式
定义一系列的算法,把每一个算法封装起来, 并且使它们可相互替换。 策略模式把对象本身和运算规则区分开来,其功能非常强大,因为这个设计模式本身的核心思想就是面向对象编程的多形性的思想。 原来我们这么写: function computed(method, count) { let total; if ...
分类:其他好文   时间:2021-05-24 03:55:28    阅读次数:0
intel Excel操作
1 透视图 Insert pivotTable— 如上图,将 序号作为透视图表的行,标记作为列,count of 成绩作为表值: 结果: 第一行第三列种的2表示,在原始数据表中序号为1且标记为c对应的成绩列的单元格有2个(跟成绩的具体指没有关系)。如果将sum of 成绩 作为透视图的表值: 第一行 ...
分类:其他好文   时间:2021-05-24 03:27:36    阅读次数:0
一个关于线程安全的示例
public class ThreadDemo { //1.定义一个静态变量,因为静态变量是线程共享的 public static int count = 0; //2.定义一个自增的方法 public static void add() { try { Thread.sleep(1);//让程序睡 ...
分类:编程语言   时间:2021-05-24 02:11:00    阅读次数:0
单表清除重复数据
delete from 表名 a where 列名 in ( select t.列名 from (select 列名 ,count(*) from 表名 where 列名 is not null group by 列名 having count(*) > 1) t ) ...
分类:其他好文   时间:2021-05-24 02:01:44    阅读次数:0
18399条   上一页 1 ... 7 8 9 10 11 ... 1840 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!