index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <titl ...
分类:
其他好文 时间:
2020-06-28 09:48:59
阅读次数:
120
给定两线段 \(P_1P_2\) 和 \(P_3P_4\),要求判断他们是否相交。 通过两个步骤完成判断: 快速排斥实验。如果两个线段相交,那么分别以这两个线段为对角线的矩形一定相交(包括只有公共边或只有公共点的相交)。我们首先判断这两个线段是否满足这个条件。 跨立实验。如果这两个线段幸运的通过了上 ...
分类:
其他好文 时间:
2020-06-28 00:36:19
阅读次数:
71
There is a game called "I Wanna Be the Guy", consisting of n levels. Little X and his friend Little Y are addicted to the game. Each of them wants to ...
分类:
其他好文 时间:
2020-06-27 21:41:11
阅读次数:
90
<?php namespace lib; use think\Loader; /** * Description of Qrcode * * @author lsf */class Qiniu { private $bucket; private $uploadMgr; private $qiniu ...
分类:
Web程序 时间:
2020-06-27 16:03:35
阅读次数:
126
通过设置标签属性,去掉无序编号自动换行,代码如下: <!DOCTYPE html> <html> <head> <style> #pic_list { display:block; white-space:nowrap; width:500px; overflow:auto; } #pic_list ...
分类:
其他好文 时间:
2020-06-27 11:40:50
阅读次数:
180
Reverse String (E) 题目 Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space ...
分类:
其他好文 时间:
2020-06-27 10:04:20
阅读次数:
50
docker 的四种网络模式 启动docker进程会在宿主机启动一个docker0桥 brige 桥接模式,容器有虚拟网卡,连接到docker0桥,或者自定义网桥 在iptables 添加DNAT规则 host 容器不会获得独立的网络命名空间,和署主机公用一个网卡,文件、进程命名空间还是独立的 co ...
分类:
其他好文 时间:
2020-06-27 09:17:51
阅读次数:
70
Shell script notes I used this tutorial to learn shell scripting: Shell Scripting Tutorial-Steve Parker. I given my executing result for almost every ...
分类:
系统相关 时间:
2020-06-26 22:22:32
阅读次数:
75
一、AndroidDriver下的方法 1、启动其他app /使用命令获取adb shell dumpsys window windows | findstr "mCurrentFocus" Activity activity=new Activity("appPackage", "appActiv ...
分类:
移动开发 时间:
2020-06-26 20:27:19
阅读次数:
109
1 #define Max 50 2 #define ElemType int 3 #define OK 1 4 using namespace std; 5 6 typedef struct Stack //顺序栈的定义 7 { 8 int data[Max]; 9 int top; 10 }St ...
分类:
其他好文 时间:
2020-06-26 18:02:19
阅读次数:
49