上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: npm 加速之 yarn cnpm pnpm 有没有感觉到使用 npm 的时候很慢? 安装速度 几Kb/s 不说, 还装着装着出错了, 奇奇怪怪的问题.这种情况大多数还是因为网络的原因, 很多时候虽然 没有直接提示超时 , 但还是可能由于网络原因导致的不能正常提示, 比如断断续续的下载导致安装脚本不 阅读全文
posted @ 2019-11-21 21:18 程序媛李李李李蕾 阅读(2242) 评论(0) 推荐(0)
摘要: 用于JSON的快速命令行处理工具,简单无依赖。 阅读全文
posted @ 2019-11-20 09:07 程序媛李李李李蕾 阅读(8771) 评论(0) 推荐(0)
摘要: 开门大吉,欢迎光临。这是 乐玩nodejs npm工具库 微信公众号的第一篇文章,那就先来说说 nodejs/npm 的小秘密,话不多说,赶快开始: 通过一个时间线简要描述下 2008 年 V8 引擎发布。 2009 年 Ryan Dahl 基于 v8 实现 js 的服务器运行环境, 命名为 nod 阅读全文
posted @ 2019-11-19 22:40 程序媛李李李李蕾 阅读(696) 评论(0) 推荐(0)
摘要: for await (let a of [1,2,3]) { console.log(a) } node 环境里必须在 async 函数中, 浏览器控制台中不需要。 ​ 阅读全文
posted @ 2019-11-18 20:04 程序媛李李李李蕾 阅读(2339) 评论(0) 推荐(1)
摘要: JavaScript 图片与Base64数据互相转换脚本 注: 转换过程中注意跨域问题、测试页是否支持相关标签创建、dom结构. 方法一:非Html 5使用FileReader 使用XMLHttpRequest将图像加载为blob,接着使用FileReader API将其转换为dataURL。 fu 阅读全文
posted @ 2019-10-22 16:30 程序媛李李李李蕾 阅读(2438) 评论(0) 推荐(0)
摘要: python -m SimpleHTTPServer 8081 阅读全文
posted @ 2019-10-10 14:35 程序媛李李李李蕾 阅读(525) 评论(0) 推荐(0)
摘要: github 体积限制 仅供了解,切勿滥用。希望自觉维护良好社区。 单文件 单个文件大于 50M 时会收到警告, 100M 时会被拒绝。 该警告将告诉您哪些文件太大: remote: warning: Large files detected.remote: warning: File big_fi 阅读全文
posted @ 2019-09-29 19:58 程序媛李李李李蕾 阅读(3268) 评论(0) 推荐(0)
摘要: .body { font-size:14px; font-weight:400; line-height:22px; /*! autoprefixer: ignore next */ -webkit-box-orient: vertical; // 避免压缩后删除此行 -webkit-line-cl 阅读全文
posted @ 2019-09-23 18:18 程序媛李李李李蕾 阅读(1151) 评论(0) 推荐(0)
摘要: select image_id from images group by image_id having count(*)>1; ​ ​ 阅读全文
posted @ 2019-09-22 12:06 程序媛李李李李蕾 阅读(1206) 评论(0) 推荐(0)
摘要: pid=49184 childid=`ps -ef|grep $pid|grep -v grep|awk '{printf " %s",$2 }'` kill -9 $childid ​ ​ 阅读全文
posted @ 2019-09-20 11:52 程序媛李李李李蕾 阅读(2540) 评论(0) 推荐(0)
摘要: 10 Status Code Definitions Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation requi 阅读全文
posted @ 2019-09-08 13:12 程序媛李李李李蕾 阅读(501) 评论(0) 推荐(0)
摘要: 纯js实现文件下载并重命名功能 来源: https://www.cnblogs.com/vipzhou/p/10700130.html /** * 获取 blob * @param {String} url 目标文件地址 * @return {cb} */ function getBlob(url, 阅读全文
posted @ 2019-09-07 09:13 程序媛李李李李蕾 阅读(5326) 评论(0) 推荐(0)
摘要: 文本结构转换为菜单代码信权限 以下代码用于有菜单关系的文本结构转换为代码对应的结构。 使用场景,产品丢给你一堆层级菜单,你得把他在代码中表现出层级关系,以及路由,路由当然不能用中文,一大批数据可能得弄半天。 于是你想简单写个文本,并且翻译一下,转换为代码所需格式。 使用方法,路由写在菜单名的 __ 阅读全文
posted @ 2019-09-06 17:21 程序媛李李李李蕾 阅读(331) 评论(0) 推荐(0)
摘要: while true; do echo hello world; sleep 1; done; ​ while true; do echo hello world; sleep 1; done; ​ 阅读全文
posted @ 2019-09-03 10:45 程序媛李李李李蕾 阅读(757) 评论(0) 推荐(0)
摘要: aardio 文档 根据官方帮助手册制作了一份文档,添加了一些特性。 支持手机阅读 不用电脑也可以学习 aau 了,不受屏幕大小限制,你的小清新还是你的小清新~ 简单的搜索功能 快捷复制示例代码 基于URL定位文档位置 群里小白太多(我也是小白),有某个知识点不了解?直接丢给他一个URL,自动定位到 阅读全文
posted @ 2019-08-29 12:51 程序媛李李李李蕾 阅读(2236) 评论(0) 推荐(0)
摘要: 修改 commit 历史 参考:修改 git 历史提交 commit 信息(重写历史)git 修改已提交的内容 git init echo t.md>.gitignore git add .gitignore git commit -m "gitignore" # 创建文件并提交修改 echo a> 阅读全文
posted @ 2019-08-27 15:41 程序媛李李李李蕾 阅读(734) 评论(0) 推荐(0)
摘要: var Run = function (arg) { return new Run.prototype.init(arg) } Run.prototype = { init: function () { this.name = 'xw' return this }, save: function ( 阅读全文
posted @ 2019-08-24 16:55 程序媛李李李李蕾 阅读(258) 评论(0) 推荐(0)
摘要: 腾讯云短信 nodejs 接入, 通过验证码修改手机示例 参考:腾讯云短信文档国内短信快速入门qcloudsms Node.js SDK文档中心>短信>错误码 nodejs sdk 使用示例 const QcloudSms = require('qcloudsms_js'); const cfg = 阅读全文
posted @ 2019-08-23 17:33 程序媛李李李李蕾 阅读(1459) 评论(0) 推荐(0)
摘要: vue 上拉加载更多示例代码 可以比较简单的改为 mpvue , 去除滚动判断,直接放在 onReachBottom 周期即可。 html <div id="app"> <div class="integralPage"> <div class="itemList"> <div class="ite 阅读全文
posted @ 2019-08-22 16:22 程序媛李李李李蕾 阅读(1748) 评论(0) 推荐(0)
摘要: curl 转 wget // sed -e 's@-H @--header=@g;s@^curl @wget @g;s@--compressed$@@g' $crf var curlStr = `curl 'https://www.baidu.com/favicon.ico' -H 'Pragma: 阅读全文
posted @ 2019-08-19 09:56 程序媛李李李李蕾 阅读(976) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页