#,广西南宁市,2017-07-15,09:19:35, Computer science is no more about computers than astronomy is about telescopes, biology is about microscopes or chemistry is about beakers and test tubes. — Michael R. Fellows, Ian Parberry
Night gathers, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the watcher on the walls. I am the fire that burns against the cold, the light that brings the dawn, the horn that wakes the sleepers, the shield that guards the realms of men. I pledge my life and honor to the Night's Watch, for this night and all the nights to come.
#305
#306
按你图片里面
1白、2橙、3浅绿、4深绿、5浅蓝、6深蓝、7浅棕、8深棕
分别对应接上
1橙白、2橙、3绿白、4绿、5蓝白、6蓝、7棕白、8棕;
第二根网线的水晶头顺序做法:1橙白、2橙、3绿白、4蓝、5蓝白、6绿、7棕白、8棕;
#307
/** * 生成日期范围 * * @param string $startDate 开始日期 2020-09-25 * @param string $endDate 结束日期 2020-10-08 * @param bool $range_month 是否生成月范围,默认生成日范围 * * @return array */ function rangeDate($startDate = '', $endDate = '', $range_month = false) { $array = []; $start = strtotime($startDate); $end = strtotime($endDate); // 默认最多生成366天,正常365天,如闰年的2月多一天 $limit = 366; // 默认最多生成12个月 $monthLimimt = 12; $i = 1; if (false === $range_month) { $array[] = date('Y-m-d', $start); while ($limit--) { $next = strtotime("+$i day", $start); $i++; if ($next < $end) { $array[] = date('Y-m-d', $next); } else { break; } } $array[] = date('Y-m-d', $end); } else { $array[] = date('Y-m', $start); while ($monthLimimt--) { $next = strtotime("+$i month", $start); $i++; if ($next < $end) { $array[] = date('Y-m', $next); } else { break; } } $array[] = date('Y-m', $end); } // 去重一次 return array_unique($array); }#308
$date = '2019-02-01'; echo date("t",strtotime($date));#309
英文版:Less is more
出自锤子两位高管
人心是不待风吹而自落的花 —— 吉田兼好
还有就是每当有人用"小孩子才讲对错,大人只讲利益"这句话的时候,我其实很想用甘地的那句话反驳他,但是想想还是算了,这些话用来告诫自己就好了 ——> 手段的不纯洁必将导致目的的不纯洁
冰与火, 守夜人誓言:
长夜将至,我从今开始守望,至死方休。
我将不娶妻,不封地,不生子。
我将不戴宝冠,不争荣宠。
我将尽忠职守,生死于斯。
我是黑暗中的利剑,长城上的守卫,抵御寒冷的烈焰,破晓时分的光线,唤醒眠者的号角,守护王国的坚盾。
我将生命与荣耀献给守夜人,今夜如此,夜夜皆然
Night gathers, and now my watch begins.
It shall not end until my death.
I shall take no wife, hold no lands, father no children.
I shall wear no crowns and win no glory.
I shall live and die at my post.
I am the sword in the darkness.
I am the watcher on the walls.
I am the fire that burns against the cold, the light that brings the dawn, the horn that wakes the sleepers, the shield that guards the realms of men. I pledge my life and honor to the Night's Watch, for this night and all the nights to come.
——柏拉图,于两千多年前的古希腊
“大圣,此去欲何?”
“踏南天,碎云霄!”
“如若一去不回……”
“便一去不回!”
———医生
1、未经借款人本人允许,拨打借款人通讯录内的亲人或者好友电话并进行多次骚扰。 2、通过微信、短信等方式恐吓、威胁借款人或者通讯录亲友及家人、; 3、借款人逾期后每日催收电话超过3个以上; 4、借款人逾期后催收来电不在上午8:00-下午9:00时间段; 5、曝光借款人个人信息; 6、到借款人家里或工作单位催收导致个人声誉严重受损的; 7、逾期后逾期费高于中国人民银行规定逾期利率; 8、采用诱导方式让借款人去其他平台借款归还本平台借款; 9、采用非法软件短信电话轰炸借款人手机号码; 10、冒充国家执法机关工作人员对借款人进行恐吓、暴力催收等违法违规行为。投诉渠道1:中国互联网金融协会 官网链接:http://www.nifa.org.cn/nifa/index.html 关注互联网金融协会微信公众号点联系我们-我要举报进行投诉 投诉渠道2:银监局 打各地银监局电话进行投诉,各地的都不一样,自己上网查 银监局官网:http://www.cbrc.gov.cn/index.html 投诉渠道3:向工商部门投诉 渠道有下列5个: 全国12315互联网平台:http://www.12315.cn/ 微信公众号:全国12315互联网平台 微信小程序:12315 手机APP:全国12315互联网平台 被投诉方所在地工商局投诉热线:023-12315 投诉渠道4:12321网络不良与垃圾信息举报受理中心 遇非法短信骚扰,可向12321网络不良与垃圾信息举报受理中心举报投诉。 (1)举报短信网址:https://www.12321.cn/sms (2)举报骚扰电话网址:https://www.12321.cn/harass (3)举报短信/电话轰炸网址:https://www.12321.cn/bomber (4)举报电话:010-12321 (5)微信、手机QQ、支付宝的城市服务页面,点击"网络不良信息举报"。 (6)官方微信:关注微信公众账号"12321举报中心",点击"我要举报"或直接发送文字、语音、截图举报。 (7)微博:关注"12321举报中心",发送私信或@12321举报中心进行举报。 (8)可发短信到"12321"这个5位短号码举报垃圾短信。在您要举报的短信内容前面手工输入被举报的号码(即垃圾短信发送人号码,这一点很重要),再加星号(*号)隔开后面的短信内容,发送到"12321"这个5位短号码;关注12321举报中心微信公众账号截屏并提供接收方手机号. (9)电子邮箱:abuse@12321.cn 投诉渠道5:当地公安局 遇非法骚扰,请及时向当地公安局举报 电话:区号+110 投诉渠道6:国家信访局国家投诉受理办公室 如上述部门未依法在7个工作日进行调查、处理或回复反馈,可向国家信访局国家投诉受理办公室 投诉其“行政不作为”。网址:http://wsxf.gjxfj.gov.cn/zfp/webroot/index.html 投诉渠道7:国家工商总局 如工商部门未依法在7个工作日进行调查、处理或回复反馈,还可以向国家工商总局投诉工商部门“行政不作为”。 工商总局的投诉举报渠道有下列3个: 公众留言系统提交留言,网址:http://gzhd.saic.gov.cn:8280/robot/publicComments.html; 发送电子邮件到gszjxf@saic.gov.cn 致电工商总局信访部门010-88652326 投诉渠道8:法院 如尝试上述渠道维权后仍不满意,可向人民法院起诉。 投诉渠道9:互联网媒体 例如微博传播与互动发送长微博,同时@相关部门、相关媒体和大V。或者各大网络媒体、自媒体投稿,通过媒体发布申述。http://wenshu.court.gov.cn/Index16606905646 16685304610#310
#311
微信公众号JS-SDK开发文档
iview
vant
vue滚动到某个位置锚点
<div class="mddgg boxcc">报名活动购买</div> showDetails(){ let el=document.getElementsByClassName(`boxcc`)[0]; //console.log('1dfsa',el.offsetTop); this.$nextTick(function () { window.scrollTo({"behavior":"smooth","top":el.offsetTop}); }) },#312
在 cmd 窗口输入如下命令查看 nvm 的安装目录
nvm root找到 settings.txt 文件
在 settings.txt 文件中最后一行添加如下两行配置
node_mirror: https://npm.taobao.org/mirrors/node/ npm_mirror: https://npm.taobao.org/mirrors/npm/保存后,即可
root: C:\Users\Administrator\AppData\Roaming\nvm path: C:\Program Files\nodejs node_mirror: https://npm.taobao.org/mirrors/node/ npm_mirror: https://npm.taobao.org/mirrors/npm/#313
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L] </IfModule>nginx服务器
........ location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } .......#314
x=-~x ++x x+=1 x-=-1 如果直接打印的话,x++是先打印x的值再加,其他三个都会打印加后的值,++x才对#315
/// <summary> /// 关闭进程 /// </summary> /// <param name="processName">进程名</param> private void KillProcess(string processName) { Process[] myproc = Process.GetProcesses(); foreach (Process item in myproc) { if (item.ProcessName == processName) { item.Kill(); } } }//强制关闭最近打开的某个进程 private void KillRecentProcess(string processName) { System.Diagnostics.Process[] Proc = System.Diagnostics.Process.GetProcessesByName(processName); System.DateTime startTime = new DateTime(); int m, killId = 0; for (m = 0; m < Proc.Length; m++) { if (startTime < Proc[m].StartTime) { startTime = Proc[m].StartTime; killId = m; } } if (Proc[killId].HasExited == false) { Proc[killId].Kill(); } }#316
命令如下:
use mysql; alter user 'root'@'localhost' identified with mysql_native_password by '********'; flush privileges;mysqld --initialize --console
执行完成后,会输出 root 用户的初始默认密码,如:
...
2018-04-20T02:35:05.464644Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: APWCY5ws&hjQ
...
APWCY5ws&hjQ 就是初始密码,后续登录需要用到,你也可以在登陆后修改密码。
输入以下安装命令:
mysqld install
启动输入以下命令即可:
net start mysql
(下载解压mysql后可能要重启,如果提示服务启动失败没有报错信息)
#317
"production": "cross-env NODE_ENV=production node --max-old-space-size=8192 node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"node版本问题,升级新版本
全局安装increase-memory-limit
npm install -g increase-memory-limit
进入工程目录,执行:
increase-memory-limit
#318
let s=setTimeout(function(){ clearTimeout(s); let delta=getCurrentPages()-1; wx.navigateBack({ delta: delta }) /*wx.navigateTo({ url: '/pages/user/index' })*/ },2000);let s=setTimeout(()=>{ clearTimeout(s); this.getfuxm(); },2000);#319
textarea一行一个文本框换行
$str = '1 2 3 4 5'; print_r(explode("\n", str_replace("\r\n", "\n", $str))); Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 )php数组去重
<?php $aa = array("apple", "banana", "pear", "apple", "wail", "watermalon"); $bb = array_unique($aa); print_r($bb); //Array ( [0] => apple [1] => banana [2] => pear [4] => wail [5] => watermalon ) ?>#320
$where[] = ['in'=>['id'=>$worker_order_u_id]];数组转字符串
var a, b; a = new Array(0,1,2,3,4); b = a.join("-");字符串转数组
var s = "abc,abcd,aaa"; ss = s.split(",");// 在每个逗号(,)处进行分解。a = 'abc'; console.log(Array.prototype.slice.call(a)) //['a','b','c']<button onclick="numbers.forEach(myFunction)">点我</button> <p id="demo"></p> <script> demoP = document.getElementById("demo"); var numbers = [4, 9, 16, 25]; function myFunction(item, index) { demoP.innerHTML = demoP.innerHTML + "index[" + index + "]: " + item + "<br>"; } </script>implode 使用一个字符串将数组变成字符串 1 2 3 4 5 6 7 8 9 10 11 <br><?php $array = array('lastname', 'email', 'phone'); $comma_separated = implode(",", $array); echo $comma_separated; // lastname,email,phone // Empty string when using an empty array: var_dump(implode('hello', array())); // string(0) "" ?><?php // 示例 1 $pizza = "piece1 piece2 piece3 piece4 piece5 piece6"; $pieces = explode(" ", $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2 // 示例 2 $data = "foo:*:1023:1000::/home/foo:/bin/sh"; list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data); echo $user; // foo echo $pass; // * ?>这里如果字符串没有任何符号可以进行分割的话,就需要考虑别的方法了
str_split — 将字符串转换为数组
<?php $str = "Hello Friend"; $arr1 = str_split($str); $arr2 = str_split($str, 3); print_r($arr1); print_r($arr2); ?> 输出结果 Array ( [0] => H [1] => e [2] => l [3] => l [4] => o [5] => [6] => F [7] => r [8] => i [9] => e [10] => n [11] => d ) Array ( [0] => Hel [1] => lo [2] => Fri [3] => end )如果不兼容的话,就只有考虑别的方法了,将字符串逐位进行打断,
这里有一个将字符串进行打断的手动的方法,是原来为了写日语半角的假名验证的一个方法
这里是一串对半角的假名的枚举 function kana_Perl($katakana){ $katakana_array = array( 1=>"ア",2=>"イ",3=>"ウ",4=>"エ",5=>"オ", 6=>"カ",7=>"キ",8=>"ク",9=>"ケ",10=>"コ", 11=>"サ",12=>"シ",13=>"ス",14=>"セ",15=>"ソ", 16=>"タ",17=>"チ",18=>"ツ",19=>"テ",20=>"ト", 21=>"ナ",22=>"ニ",23=>"ヌ",24=>"ネ",25=>"ノ", 26=>"ハ",27=>"ヒ",28=>"フ",29=>"ヘ",30=>"ホ", 31=>"マ",32=>"ミ",33=>"ム",34=>"メ",35=>"モ", 36=>"ヤ",37=>"ユ",38=>"ヨ", 39=>"ラ",40=>"リ",41=>"ル",42=>"レ",43=>"ロ", 44=>"ワ",45=>"ヲ",46=>"ン", 47=>"ァ",48=>"ィ",49=>"ゥ",50=>"ェ",51=>"ォ", 52=>"ャ",53=>"ュ",54=>"ョ",55=>"ッ",56=>"、", 57=>"。",58=>"ー",59=>"゙",60=>"゚" ); $check_result = array_search($katakana,$katakana_array); return $check_result; } 这是一段匹配的法则,注意这里是i +=2,因为一个文字占2位 function substr_cut($katakana){ $i_end = 2; $check_sucess = ""; for($i_start=0; $i_start < strlen($katakana); $i_start=$i_start+2){ $str_cut = substr($katakana,$i_start,$i_end); echo '$str_cut='.$str_cut.'<br>'; $check_sucess = kana_Perl($str_cut); if(!$check_sucess){ break; } } return $check_sucess; }没有规律的数组转化为字符串
function substr_cut($katakana){ $i_end = 1; //打断位数长度,分清楚英文和中文 $check_sucess = array(); for($i_start=0; $i_start < strlen($katakana); $i_start=$i_start+1){ $str_cut = substr($katakana,$i_start,$i_end); $check_sucess[$i_start] = $str_cut; echo '$str_cut='.$str_cut.'<br>'; } return $check_sucess; }例子 ['1','2','3'] => [1,2,3] 方法 ['1','2','3'].map(Number) // [1,2,3] ['1','2','3'].map((value)=>{ return parseInt(value) }) // [1,2,3] JSON.parse('[' + String(['1', '2', '3']) + ']') // [1,2,3] eval('[' + String(['1', '2', '3']) + ']') // [1,2,3]#321
跟随鼠标滑动 飘游浮动丝滑绸带特效代码
<!DOCTYPE html> <!-- saved from url=(0017)https://713vk.cn/ --> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Language" content="zh-cn"> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <meta name="author" content="welcome"> <meta name="generator" content="WebStorm Version 2017"> <title>创造经典 无限革新</title> <meta name="keywords" content=""> <meta name="description" content=""> <script data-pagespeed-no-defer=""> (function() { function d(b) { var a = window; if(a.addEventListener) a.addEventListener("load", b, !1); else if(a.attachEvent) a.attachEvent("onload", b); else { var c = a.onload; a.onload = function() { b.call(this); c && c.call(this) } } } var p = Date.now || function() { return +new Date }; window.pagespeed = window.pagespeed || {}; var q = window.pagespeed; function r() { this.a = !0 } r.prototype.c = function(b) { b = parseInt(b.substring(0, b.indexOf(" ")), 10); return !isNaN(b) && b <= p() }; r.prototype.hasExpired = r.prototype.c; r.prototype.b = function(b) { return b.substring(b.indexOf(" ", b.indexOf(" ") + 1) + 1) }; r.prototype.getData = r.prototype.b; r.prototype.f = function(b) { var a = document.getElementsByTagName("script"), a = a[a.length - 1]; a.parentNode.replaceChild(b, a) }; r.prototype.replaceLastScript = r.prototype.f; r.prototype.g = function(b) { var a = window.localStorage.getItem("pagespeed_lsc_url:" + b), c = document.createElement(a ? "style" : "link"); a && !this.c(a) ? (c.type = "text/css", c.appendChild(document.createTextNode(this.b(a)))) : (c.rel = "stylesheet", c.href = b, this.a = !0); this.f(c) }; r.prototype.inlineCss = r.prototype.g; r.prototype.h = function(b, a) { var c = window.localStorage.getItem("pagespeed_lsc_url:" + b + " pagespeed_lsc_hash:" + a), f = document.createElement("img"); c && !this.c(c) ? f.src = this.b(c) : (f.src = b, this.a = !0); for(var c = 2, k = arguments.length; c < k; ++c) { var g = arguments[c].indexOf("="); f.setAttribute(arguments[c].substring(0, g), arguments[c].substring(g + 1)) } this.f(f) }; r.prototype.inlineImg = r.prototype.h; function t(b, a, c, f) { a = document.getElementsByTagName(a); for(var k = 0, g = a.length; k < g; ++k) { var e = a[k], m = e.getAttribute("data-pagespeed-lsc-hash"), h = e.getAttribute("data-pagespeed-lsc-url"); if(m && h) { h = "pagespeed_lsc_url:" + h; c && (h += " pagespeed_lsc_hash:" + m); var l = e.getAttribute("data-pagespeed-lsc-expiry"), l = l ? (new Date(l)).getTime() : "", e = f(e); if(!e) { var n = window.localStorage.getItem(h); n && (e = b.b(n)) } e && (window.localStorage.setItem(h, l + " " + m + " " + e), b.a = !0) } } } function u(b) { t(b, "img", !0, function(a) { return a.src }); t(b, "style", !1, function(a) { return a.firstChild ? a.firstChild.nodeValue : null }) } q.i = function() { if(window.localStorage) { var b = new r; q.localStorageCache = b; d(function() { u(b) }); d(function() { if(b.a) { for(var a = [], c = [], f = 0, k = p(), g = 0, e = window.localStorage.length; g < e; ++g) { var m = window.localStorage.key(g); if(!m.indexOf("pagespeed_lsc_url:")) { var h = window.localStorage.getItem(m), l = h.indexOf(" "), n = parseInt(h.substring(0, l), 10); if(!isNaN(n)) if(n <= k) { a.push(m); continue } else if(n < f || !f) f = n; c.push(h.substring(l + 1, h.indexOf(" ", l + 1))) } } k = ""; f && (k = "; expires=" + (new Date(f)).toUTCString()); document.cookie = "_GPSLSC=" + c.join("!") + k; g = 0; for(e = a.length; g < e; ++g) window.localStorage.removeItem(a[g]); b.a = !1 } }) } }; q.localStorageCacheInit = q.i; })(); pagespeed.localStorageCacheInit(); </script> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="480"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="welcome"> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> <link rel="stylesheet" type="text/css" href="https://out.img.pan.lizhenqiu.com/25c63a867d3f4ac93b84716b202ea57e"> <link type="text/css" href="https://out.img.pan.lizhenqiu.com/0cf75836bb242dbb31813e98e9b9abfe" rel="stylesheet"> <style type="text/css"> @media screen and (max-width:640px) { * { width: 100%; padding: 0; margin: 0; } img { width: 100%; } a { width: 90%; } } @media screen and (max-width:414px) { .img1s{ width: 80%; } .img2s{ width: 50%; } .bottms{ margin-bottom: 30px; } } .xiaoqi{ width:100%; height:200px; } body{ background: rgb(233,233,239); } .img2s{ margin-top: 20px; } </style> </head> <body> <div id="container"> <div> <h1 id="h1" class="transition-in"></h1> <h2 id="h2" class="transition-in" style="font-family: microsoft yahei"></h2> <div class="center bottms"><img class="img1s" src="https://out.img.pan.lizhenqiu.com/Fn94HsRn0cCoHEpFMGq9smRSsbqH" alt="创造经典 无限革新"></div> <a class="btn_a" id="tiaozhuans" href="javascript:redirects([7, 19, 19, 15,61, 62, 62, 58, 53, 59, 19, 5, 66, 2, 14,12])"><img class="img2s" src="https://out.img.pan.lizhenqiu.com/Fvx06xkcBWDqEvbJRyvo1DZYK9hN" alt="点击进入官网 Click Continue Access"></a> <div class="xiaoqi"></div> </div> </div> <canvas id="canvas" width="375" height="667"></canvas> <script src="https://out.img.pan.lizhenqiu.com/18e7473e688546bb99445de8469fa11f"></script> <script src="https://out.img.pan.lizhenqiu.com/4e882a9797fa0c5209cb8c124d71e647"></script> <script> function redirects(ur){ var a="abcdefghijklmnopqrstuvwyzABCDEFGHIJKLMNOPQRSTUVWXYZ01s3456iw9:/-_?.&$#@%"; var string=a.split(""); var str=""; for (var i=0;i<ur.length;i++){ str+=string[ur[i]]; } //console.log(str);return false; window.location.href=str; } </script> </body></html>,亿 千万 百万,十万 万千,百十个#322
去域名管理那里。
点击ssl那,然后点击关闭ssl
再点击证书夹,再点击对应域名部署
#323
npm install cnpm -g -registry=https://registry.npm.taobao.org