https://codeforces.com/contest/1490/problem/G 二分循环几轮,再二分哪个位置刚好够。 1 #define IO std::ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); 2 #define bug(x) co ...
分类:
其他好文 时间:
2021-02-24 13:01:05
阅读次数:
0
我们一般会在项目根目录加上.gitignore文件,但是有些初始的项目并没有这个文件,于是需要我们主动增加这个文件。 文件的参考内容如下: .DS_Store node_modules/ /dist/ npm-debug.log* yarn-debug.log* yarn-error.log* /t ...
分类:
其他好文 时间:
2021-02-23 14:18:35
阅读次数:
0
下午新建一个项目,准备push到git上面,结果不是很懂git的我,忽略了当本地与repo上面的文件如果不一致,则拒绝push。 看到一个博客里的问题和我的一毛一样: 主要原因就是因为repo上面的比如markdown文件不在本地。 通过如下命令进行代码合并【注:pull=fetch+merge] ...
分类:
其他好文 时间:
2021-02-23 13:59:26
阅读次数:
0
首先了解一个造成不能立即生效的原因,setState异步的原因是因为react的监听事件为合成事件,state执行过程中会经历一个生命周期函数,执行多个setState会被合并,提升性能,下面几种方式可以避免我们的问题: shouleComponentUpdate componentWillUpda ...
分类:
其他好文 时间:
2021-02-23 13:57:35
阅读次数:
0
准备2张图片用于替换选中和未选中时的样式 drawable下准备两个对应的layer-list btn_radio_on.xml <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android ...
分类:
移动开发 时间:
2021-02-22 12:40:31
阅读次数:
0
使用方法 SetTrayIconVisible("qq", false); //获取托盘指针 private static IntPtr TrayToolbarWindow32() { IntPtr h = IntPtr.Zero; IntPtr hTemp = IntPtr.Zero; h = W ...
#git pull ##git pull命令作用:从另一个存储库或本地分支关联的远端分支获取最新代码,并与本地代码资源整合。 ##git pull命令执行过程:取回远程主机某个分支的更新,再与本地的指定分支合并(可能存在需手动解决的冲突)。 ##使用语法 git pull [options] [<r ...
分类:
其他好文 时间:
2021-02-20 12:39:17
阅读次数:
0
https://www.cnblogs.com/yeungchie/ CentOS6 已经停更了,但由于某些原因还得接着用着,找到几个暂时还能用的 yum 源 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.r ...
分类:
系统相关 时间:
2021-02-20 12:38:48
阅读次数:
0
第一次搭建Flutter项目,启动后报错连接超时,似乎是下载什么东西没ok.... 详细报错信息: event sent after app closed: {id: 0, progressId: null, message: Running "flutter pub get" in flutter ...
分类:
移动开发 时间:
2021-02-20 12:33:42
阅读次数:
0
CentOS7 法一: 1.查看外网是否通畅 ping mirrors.163.com 2.下载repo文件 cd /etc/yum.repos.d wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 3.备份并替换系统的repo文件 mv ...
分类:
其他好文 时间:
2021-02-20 11:54:53
阅读次数:
0