密码保护:复习资料
无法提供摘要。这是一篇受保护的文章。
浏览年度档案
无法提供摘要。这是一篇受保护的文章。
无法提供摘要。这是一篇受保护的文章。
1、去别人家里,不要坐在人家的床上。2、在酒桌上与别人碰杯,自己的杯子一定要低于对方的,特别是对长辈或领导。3、晴带雨伞,饱带干粮——未雨绸缪总是好的。4、如果问别人话,别人不回答你,不要死着脸皮 …
来源:网络 1 所谓门槛,能力够了就是门,能力不够就是槛。 人生的沟沟坎坎,多半是能力不足所致。 2 不要总拿自己跟别人比,你羡慕别人瘦,别人还羡慕你肠胃好,你羡慕别人有钱,别人还羡慕没人找 …
1 |
<input id="num" name="num" type="number" value="" /> |
把input输入框的格式改为number就可以弹出数字键盘 还有一种可以调用九宫格数字键盘:
1 |
<input pattern="\d*" type="number" /> |
在计算加班时间或制作派工单时,需要进行进行的加减和间隔计算。 一、时间加减计算 单元格A1为一具体时间 1、10小时后的时间 A1+Time(10,0,0) 或 A1+10:00:00 2、10个半小时后的时间 A1+Time(10,30,0) 或 A …
七年级数学微课 第1章 有理数1.1 正数和负数1.1.1 负数1..1.2 正数和负数的应用1.2 有理数1.2.1 有理数1.2.2 数轴1.2.3 相反数1.2.4 比较有理数的大小1.3 有理数的加减法1.3.1 有理数的加法1.3.2 有理数 …
HTTP 错误 500.19 – Internal Server Error 无法访问请求的页面,因为该页的相关配置数据无效。错误代码 0x800700b7 解决方法:在高级设置中,把这个网站的应用程序池的.NET Framework版本改为 v2.0,托管 …
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
//判断当前日期是否是假日或法定休息 $date = date("Ymd",time()); //dump($date);die; $url = "http://api.goseek.cn/Tools/holiday?date=".$date; $res = file_get_contents($url); $res = json_decode($res,true); if($res['data'] == 1 || $res['data'] == 2){ $data = array( "status" => "5", "info" => "当前非交易时间", ); ajaxR($data);//返回给前端信息 return false; } |
1、接口地址:http://api.goseek.cn/Tools/holiday?date=数字日期,支持https协议。 2、返回数据:正常工作日对应结果为 0, 法定节假日对应结果为 1, 节假日调休补班对应 …
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 |
function DateDiff($part, $begin, $end) { $diff = strtotime($end) - strtotime($begin); switch($part) { case "y": $retval = bcdiv($diff, (60 * 60 * 24 * 365)); break; case "m": $retval = bcdiv($diff, (60 * 60 * 24 * 30)); break; case "w": $retval = bcdiv($diff, (60 * 60 * 24 * 7)); break; case "d": $retval = bcdiv($diff, (60 * 60 * 24)); break; case "h": $retval = bcdiv($diff, (60 * 60)); break; case "n": $retval = bcdiv($diff, 60); break; case "s": $retval = $diff; break; } return $retval; } function DateAdd($part, $number, $date) { $date_array = getdate(strtotime($date)); $hor = $date_array["hours"]; $min = $date_array["minutes"]; $sec = $date_array["seconds"]; $mon = $date_array["mon"]; $day = $date_array["mday"]; $yar = $date_array["year"]; switch($part) { case "y": $yar += $number; break; case "q": $mon += ($number * 3); break; case "m": $mon += $number; break; case "w": $day += ($number * 7); break; case "d": $day += $number; break; case "h": $hor += $number; break; case "n": $min += $number; break; case "s": $sec += $number; break; } return date("Y-m-d H:i:s", mktime($hor, $min, $sec, $mon, $day, $yar)); } Function DateAdd($part, $n, $date) { switch($part) { case "y": $val = date("Y-m-d H:i:s", strtotime($date ." +$n year")); break; case "m": $val = date("Y-m-d H:i:s", strtotime($date ." +$n month")); break; case "w": $val = date("Y-m-d H:i:s", strtotime($date ." +$n week")); break; case "d": $val = date("Y-m-d H:i:s", strtotime($date ." +$n day")); break; case "h": $val = date("Y-m-d H:i:s", strtotime($date ." +$n hour")); break; case "n": $val = date("Y-m-d H:i:s", strtotime($date ." +$n minute")); break; case "s": $val = date("Y-m-d H:i:s", strtotime($date ." +$n second")); break; } return $val; } |
时间戳转化成X天X小时X分X秒 //自定义函数(调用时输入实参$second)function time2string($second){$day = floor($second/(3600*24));$second = $second%(3600*24);$hour = floor($second/3600);$second = …
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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
homeassistant: # Name of the location where Home Assistant is running # 智能家居系统的名字,显示在主界面顶部。 name: 我的智能豪宅 # Location required to calculate the time the sun rises and sets # 下面填入纬度和经度,计算太阳升起和设定时间所需位置,越精确越好。 latitude: 36.85201 longitude: 116.225287 # Impacts weather/sunrise data (altitude above sea level in meters) # 海拔高度用于修正天气参数和日出日落时间参数 (默认单位是:米)。 elevation: 31 # metric for Metric, imperial for Imperial # 度量衡单位制式(metric)是公制,(imperial)是英制。 unit_system: metric # Pick yours from here: [url]http://en.wikipedia.org/wiki/List_of_tz_database_time_zones[/url] # 时区,从这里选择你的:[url]http://en.wikipedia.org/wiki/List_of_tz_database_time_zones[/url],默认北京时间。 time_zone: Asia/Shanghai customize: !include customize.yaml # 测试任何您更改的配置文件,在命令行中用hass --script check_config。这个脚本可以让你测试的变化而不需要重新启动家庭助理。 # Show links to resources in log and frontend # 在网页界面的首页显示简介 (那一大段英文)不想看到的话,请在前面加上#号。 #introduction: # Enables the frontend # 是否使用默认的“首页” frontend: # Enables configuration UI # 自定义配置UI config: http: # Uncomment this to add a password (recommended!) # 给系统网页的登录加上一个密码,先去掉下面这行的#号,然后把PASSWORD改成你想要的密码。 # api_password: # Uncomment this if you are using SSL/TLS, running in Docker container, etc. # base_url: example.duckdns.org:8123 # Checks for available updates # Note: This component will send some information about your system to # the developers to assist with development of Home Assistant. # For more information, please see: # [url]https://home-assistant.io/blog/2016/10/25/explaining-the-updater/[/url] updater: # Optional, allows Home Assistant developers to focus on popular components. # 升级提示,当 HomeAssitant 有新版本发布的时候,“日出日落”图标会变成(Updater)字样 # include_used_components: true # Discover some devices automatically # 系统自动发现新的设备 discovery: # Allows you to issue voice commands from the frontend in enabled browsers # 启动浏览器的语音命令 conversation: # Enables support for tracking state changes over time # 在系统数据库中保存“历史数据” history: # View all events in a logbook # 在logbook显示所有事件 logbook: # receive from broadlink开启博联日志 logger: default: critical logs: homeassistant.components.switch.broadlink: info # Track the sun # 太阳“跟踪器” 也就是“日出日落时间” #sun: panel_iframe: #添加HA侧边面板 designicons: title: 'Design Icons' icon: mdi:vector-square url: 'https://cdn.materialdesignicons.com/2.0.46/' # Text to speech # 文字转换语音 tts: - platform: google # 播放器 media_player: # - platform: # host: device_tracker: - platform: xiaomi host: 192.168.31.1 username: admin password: '**************'#这个不用我说了吧,换成自己的 track_new_devices : 1 #If new discovered devices are tracked by default #跟踪新设备的添加,默认true interval_seconds : 12 #Seconds between each scan for new devices #扫描每个设备的间隔 consider_home : 180 #Seconds to wait till marking someone as not home after not being seen. #This parameter is most useful for households with Apple iOS devices that go into sleep mode while still at home to conserve battery life. #iPhones will occasionally drop off the network and then re-appear. #It helps prevent false alarms in presence detection when using IP scanners such as Nmap. #Accepts various time representations, (E.g. the following all represents 3 minutes:180,0:03,0:03:00) #在设定秒数之后追踪不到某个设备,设置为不在家 #这个参数对于那些在家时进入睡眠模式的苹果iOS设备非常有用,以节省电池寿命。 #iPhone偶尔会脱离网络,然后重新出现。在使用IP扫描器如Nmap进行检测时有助于防止误报。 #接受各种时间表示(例如,以下代表3分钟:180,0:03,0:03:00) # 下面这个区域,用于自定义设备属性 switch: !include switchs.yaml group: !include groups.yaml automation: !include automations.yaml sensor: !include sensors.yaml |
禁用窗体的关闭按钮
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 |
Public Class Form1 Private Declare Function GetSystemMenu Lib "User32" (ByVal hwnd As Integer, ByVal bRevert As Integer) As Integer Private Declare Function RemoveMenu Lib "User32" (ByVal hMenu As Integer, ByVal nPosition As Integer, ByVal wFlags As Integer) As Integer Private Declare Function DrawMenuBar Lib "User32" (ByVal hwnd As Integer) As Integer Private Declare Function GetMenuItemCount Lib "User32" (ByVal hMenu As Integer) As Integer Private Const MF_BYPOSITION = &H400& Private Const MF_DISABLED = &H2& Private Sub disableX(ByVal wnd As Form) Dim hMenu As Integer, nCount As Integer '得到系统Menu hMenu = GetSystemMenu(wnd.Handle.ToInt32, 0) '得到系统Menu的个数 nCount = GetMenuItemCount(hMenu) '去除系统Menu Call RemoveMenu(hMenu, nCount - 1, MF_BYPOSITION Or MF_DISABLED) '重画MenuBar DrawMenuBar(Me.Handle.ToInt32) End Sub Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click disableX(Me) '屏蔽关闭按钮 End Sub Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click Me.MaximizeBox = False '屏蔽最大化按钮 End Sub Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles Button3.Click Me.MinimizeBox = False '屏蔽最小化按钮 End Sub End Class |
对于做网站的朋友来说,经常会遇到域名解析了不知道是否生效的情况,以下就给大家介绍一下如何查询域名的MX、A、DNS、txt、cname记录是否生效 工具/原料 一台能上网的电脑 已解析的域名 方法/步骤1: 电脑中 …
喝过亚洲沙士的举手 在广州有一种集体回忆 叫亚洲沙士 已经73岁了 广州人才懂的快乐肥宅水 沙士可能唯有广州人才会 欣赏的快乐肥宅水 还记得小时候喝第一口,差点被齁住 怎么那么像红花油的 …
一、RTMP、RTSP、HTTP协议 这三个协议都属于互联网 TCP/IP 五层体系结构中应用层的协议。理论上这三种都可以用来做视频直播或点播。但通常来说,直播一般用 RTMP、RTSP。而点播用 HTTP。下面分别介绍下三者 …
猫咪并不总是“乐天派”,它们也有伤心沮丧的时候。只是因为猫咪善于隐蔽自己不好的地方,这才让铲屎官们觉得猫咪好像一直就很淡定一般。 有着喜怒哀乐的猫咪在某些时候是很难把自己的情绪给藏着的,比如它们 …
3S
1 2 |
<pre class="inline:true class:hljs less decode:1 " > <span class="hljs-attribute">rtsp</span>:<span class="hljs-comment">//IP地址/cam1/h264</span> |
4XEM
1 2 |
<pre class="inline:true class:hljs less decode:1 " > <span class="hljs-attribute">rtsp</span>:<span class="hljs-comment">//IP地址/live.sdp</span> |
A-MTK
1 2 |
<pre class="inline:true class:hljs less decode:1 " > <span class="hljs-attribute">rtsp</span>:<span class="hljs-comment">//IP地址/media/media.amp</span> |
ABS
1 2 |
<pre class="inline:true class:hljs less decode:1 " > <span class="hljs-attribute">rtsp</span>:<span class="hljs-comment">//IP地址/mpeg4/1/media.amp</span> |
Absolutron [crayon-6766f79d1e4fa751174482 …