上一页 1 2 3 4 5 6 7 8 9 10 ··· 61 下一页
摘要: 创建文件夹赋权限: chown -R mysql:mysql /home/data/slowquery.log 添加配置: [mysqld] slow_query_log=on slow_query_log_file=/home/data/slowquery.log long_query_time= 阅读全文
posted @ 2020-09-27 15:32 石shi 阅读(1650) 评论(0) 推荐(0) 编辑
摘要: //封装优先级队列 function PriorityQueue(){ function QueueElement(element,priority){ this.element=element this.priority=priority } //封装属性 this.items=[] //实现插入 阅读全文
posted @ 2020-09-26 22:24 石shi 阅读(210) 评论(0) 推荐(0) 编辑
摘要: --查看安装脚本 select version() --非交互式超时时间,如jdbc show global variables like 'wait_timeout'; --交互式超时时间,如数据库工具 show global variables like 'interactive_timeout 阅读全文
posted @ 2020-09-13 17:54 石shi 阅读(185) 评论(0) 推荐(0) 编辑
摘要: export default (prices)=>{ //用来保存利润 let count=0 for(let i=0,len=prices.length;i<len;i++){ for(let j=i;j<len-1;j++){ if(prices[j+1]>prices[j]){ count+= 阅读全文
posted @ 2020-09-06 22:11 石shi 阅读(894) 评论(0) 推荐(0) 编辑
摘要: export function getNowFormatDate(data) { var date = new Date(data) var seperator1 = '/' var seperator2 = ':' var month = date.getMonth() + 1 var strDa 阅读全文
posted @ 2020-09-03 18:05 石shi 阅读(396) 评论(0) 推荐(0) 编辑
摘要: class Heap{ constructor(data){ this.data=data } sort(){ let iArr=this.data let n=iArr.length if(n<=1){ return iArr }else{ for(let i=Math.floor(n/2);i> 阅读全文
posted @ 2020-08-30 20:13 石shi 阅读(166) 评论(0) 推荐(0) 编辑
摘要: find_in_set 函数 函数语法:find_in_set(str,strlist) str 代表要查询的字符串 , strlist 是一个以逗号分隔的字符串,如 ('a,b,c')。 此函数用于查找 str 字符串在字符串 strlist 中的位置,返回结果为 1 ~ n 。若没有找到,则返回 阅读全文
posted @ 2020-08-29 15:30 石shi 阅读(3023) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash while true do DATE=`date "+%Y-%m-%d %H:%M:%S"` echo " \033[41;36m CPU使用率 ($DATE)\033[0m " sleep 1 echo "正在获取.........." sleep 1 echo "正在获取 阅读全文
posted @ 2020-08-24 11:39 石shi 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 工厂创建类: public class CacheFactory { private static ICache cache = null; private static readonly object lockHelper = new object(); public static ICache 阅读全文
posted @ 2020-08-24 11:36 石shi 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 螺旋矩阵: export default(arr)=>{ //处理每一圈的数据遍历过程 let map=(arr,r=[])=>{ for(let i=0,len=arr.length;i<len;i++){ if(i 0){ r=r.concat(arr[i]) }else if(i len-1) 阅读全文
posted @ 2020-08-18 21:32 石shi 阅读(905) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 61 下一页