This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--?xml version="1.0" encoding="utf-8"?--> | |
| <html><head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body><plugins> | |
| <cachechk>201607221201</cachechk> | |
| <item> | |
| <name>iPerf3</name> | |
| <internalname>iPerf3</internalname> | |
| <changelog>https://www.qnapclub.eu/en/qpkg/releasenotes/180</changelog> | |
| <category>QnapClub</category> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 找到一定范围内的质数/素数 | |
| * @param int $max 质数范围 | |
| * @return array | |
| */ | |
| function primeNumber($max) | |
| { | |
| $max = (int)$max; | |
| $result = array(); | |
| $i = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * 排列的总个数 | |
| * @param int $n | |
| * @param int $m | |
| * @return int | |
| */ | |
| function a($n, $m){ | |
| if($n < $m) return false; | |
| $num = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 判断手机号的类型 | |
| * 更新时间 2016-11-07 | |
| * @param $mobile | |
| * @return int 1:电信 2:移动 3:联通 4:虚拟运营商 10:未知 | |
| */ | |
| function getMobileType($mobile){ | |
| $prefix = substr($mobile,0,3); | |
| if (in_array($prefix, array('133','153','154','181','180','189','177'))) { | |
| return 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * 生成mysql数据字典 | |
| */ | |
| //配置数据库 | |
| $dbserver = "127.0.0.1"; | |
| $dbusername = "用户名"; | |
| $dbpassword = "密码"; | |
| $database = "数据库名"; | |
| $prefix = "前缀"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $query = User::find() | |
| ->where(['id'=>[1,2,3,4]) | |
| ->select(['username']) | |
| // get the AR raw sql in YII2 | |
| $commandQuery = clone $query; | |
| echo $commandQuery->createCommand()->getRawSql(); | |
| $users = $query->all(); |