github地址:https://github.com/ABCDdouyaer/a_pack_per_day_NO.1 to-camel-case 将被其他符号分割的字符串转换为驼峰形式的字符串 用法:toCamelCase(str) 返回:string to-no-case 将被其他符号分割的字符串统一由空格分开并全部转为小写 用法:toNoCase(str) 返回:string 注意:带空格的字符串会被他直接转为小写,所以直接用to-sapce-case比较靠谱 to-space-case…
题目链接:https://github.com/Show-Me-the-Code/show-me-the-code代码github链接:https://github.com/wjsaya/python_spider_learn/tree/master/python_daily个人博客地址:https://wjsaya.github.io第 0012 题: 敏感词文本文件 filtered_words.txt,里面的内容 和 0011题一样,当用户输入敏感词语,则用 星号 替换,例如当用户输入「北…
保姆级别的RabbitMQ教程!一看就懂!(有安装教程,送安装需要的依赖包,送Java.Golang两种客户端教学Case)   目录 什么是AMQP 和 JMS? 常见的MQ产品 安装RabbitMQ 启动RabbitMQ 什么是Authentication(认证) 指定RabbitMQ的启动配置文件 如何让guest用户远程登陆RabbitMQ 管理用户和权限 RabbitMQ中的概念 什么是virtual host 创建virtual host 并指定用户可以使用它 RabbitMQ的五种…
--01 年 02 月 03 日 select a.ass_due_date, case a.ass_term_unit when '01' then (case a.ass_profit_mode when '0' then round(sum(a.ass_amount*a.ass_annual_rate/365*365*a.ass_term/100) ,2) when '1' then round(sum(a.ass_amount*a.ass_annual_rate/360*365*a.as…
Oracle CASE WHEN 用法介绍 1. CASE WHEN 表达式有两种形式 --简单Case函数 CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女' ELSE '其他' END --Case搜索函数 CASEWHEN sex = '1' THEN '男' WHEN sex = '2' THEN '女' ELSE '其他' END 2. CASE WHEN 在语句中不同位置的用法 2.1 SELECT CASE WHEN 用法 SELECT gra…
github地址:https://github.com/ABCDdouyae... arr-flatten 将多维数组展开成一维数组 文档地址:https://www.npmjs.com/package/arr-flatten 用法:arr-flatten(Array) 该包采用的递归方式进行降维,也可以采用栈方式先进先出进行降维[见文件:stack_deepFlatten.js] 当然ES6为我们提供了flat()和flatMap()方法更加简单化 flat用法:array.flat(默认1|…
[github地址:https://github.com/ABCDdouyae...] fecha 比moment.js更加轻量级的时间解析和格式化包 format 用法:format(<Date Object|String|timestamp>, <String Format>) 返回:string const fecha = require('fecha'); fecha.format(new Date('2018','3','23','12','0','0'), 'YYYY-…
[github地址:https://github.com/ABCDdouyae...] pad 给字符串的左右加padding,也可以用于删减字符串两端 用法:pad(str, length, options)|pad(length, str, options) options: char (string): 指定字符填充 colors (boolean):Ajust to hidden terminal color characters, you may also use require 'p…
[github地址:https://github.com/ABCDdouyae...] gradient-string 用于在终端打印出好看的渐变文字 普通用法 console.log(gradient('cyan', 'pink')('Hello world!')); let a = 'so beautiful!' let b = gradient('red', 'green'); console.log(b(a)); let c = gradient(['yellow', 'orange']…
github地址:https://github.com/ABCDdouyae... is-sorted 用于判断数组是否被排序了 文档地址:https://www.npmjs.com/package/is-sorted 用法:is-sorted(Array, 排序规则函数) 返回:boolean 默认:升序…