#,广西南宁市,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.
#286
#287
$res = curl_exec($ch); curl_close($ch); $res=mb_convert_encoding($res, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5');//使用该函数对结果进行转码#288
一、取整 1. 取整 // 丢弃小数部分,保留整数部分 parseInt(7/2) // 3 2. 向上取整 // 向上取整,有小数就整数部分加1 Math.ceil(7/2) // 4 3. 向下取整 // 向下取整,丢弃小数部分 Math.floor(7/2) // 3 4. 四舍五入 // 四舍五入 Math.round(7/2) // 3 二、取余 // 1. 取余 7%2 // 1#289
url编码(urlencode)
自动加载 //再此运行composer dump-autoload,尝试调用 "autoload":{ "files":["aa/bb.php”],////不需要命名空间 } //files键对应的值是一个数组,数组元素是文件的路径,路径是相对于应用的根目录。加上上述内容后,运行命令:#290
<?php function check_remote_file_exists($url) { $curl = curl_init($url); // 不取回数据 curl_setopt($curl, CURLOPT_NOBODY, true); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET'); // 发送请求 $result = curl_exec($curl); $found = false; // 如果请求没有发送失败 if ($result !== false) { /** 再检查http响应码是否为200 */ $statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ($statusCode == 200) { $found = true; } } curl_close($curl); return $found; } $url = "http://cn.wordpress.org/wordpress-3.3.1-zh_CN.zip"; echo check_remote_file_exists($url); // 返回1,说明存在。 ?>#291
#292
animation动画添加各种参数 (1)infinite参数,表示动画将无限循环。在速度曲线和播放次数之间还可以插入一个时间参数,用以设置动画延迟的时间。如希望使图标在1秒钟后再开始旋转,并旋转两次,代码如下 .close:hover::before{ -webkit-animation: spin 1s linear 1s 2; animation: spin 1s linear 1s 2; } (2)alternate参数。animation动画中加入反向播放参数alternate。在加入该参数后,动画将在偶数次数时反向播放动画。 .close:hover::before{ -webkit-animation: spin 1s linear 1s 2 alternate; animation: spin 1s linear 1s 2 alternate; }#293
图标在1秒内匀速旋转360度
.close:hover::before{ -webkit-transform:rotate(360deg); transform:rotate(360deg); -webkit-transition:-webkit-transform 1s linear; transition:transform 1s linear; }一直不停旋转
@-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }.close:hover::before { /*-webkit-transform: rotate(360deg); transform: rotate(360deg); -webkit-transition: -webkit-transform 1s linear; transition: transform 1s linear;*/ -webkit-animation: spin 1s linear 1s 5 alternate; animation: spin 1s linear infinite; }#294
强制换行
1、word-break: break-all; 只对英文起作用,以字母作为换行依据。 2、word-wrap: break-word; 只对英文起作用,以单词作为换行依据。 3、white-space: pre-wrap; 只对中文起作用,强制换行。禁止换行
white-space:nowrap; overflow:hidden; text-overflow:ellipsis;#295
#296
按你图片里面
1白、2橙、3浅绿、4深绿、5浅蓝、6深蓝、7浅棕、8深棕
分别对应接上
1橙白、2橙、3绿白、4绿、5蓝白、6蓝、7棕白、8棕;
第二根网线的水晶头顺序做法:1橙白、2橙、3绿白、4蓝、5蓝白、6绿、7棕白、8棕;
#297
/** * 生成日期范围 * * @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); }#298
$date = '2019-02-01'; echo date("t",strtotime($date));#299
英文版: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#300
#301
微信公众号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}); }) },#302
在 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/#303
<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; } } .......#304
x=-~x ++x x+=1 x-=-1 如果直接打印的话,x++是先打印x的值再加,其他三个都会打印加后的值,++x才对