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 | |
class Valid | |
{ | |
// 验证QQ号码是否合法 | |
public static function qq($uin) | |
{ | |
return preg_match('/^[1-9]{1}[0-9]{4,9}$/', $uin); | |
} |
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 | |
/** | |
* Helper.php 助手类,封装了常用方法 | |
*/ | |
class Helper | |
{ | |
/** | |
* get_client_ip, 获取用户IP地址 | |
* | |
* @param long $to_long, 是否转为长整型,默认否 |
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
/** | |
* common.js 通用js | |
* charset: utf-8 | |
*/ | |
/** | |
* $.ns ,为jq增加ns方法,用来自定义命名空间 | |
*/ | |
$.ns = function(name, obj){ | |
var nodes = name.split("."); |
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
"====================================================================== | |
" Vimrc by Chuyinfeng.com | |
"====================================================================== | |
"---------------------------------------------------------------------- | |
" Encoding | |
"---------------------------------------------------------------------- | |
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
/** | |
workerid, 服务id | |
addr, 监听地址 | |
pwd, 认证密码 | |
master, 控制端地址 | |
createjob, 创建一个计划任务 | |
deletejob, 删除一个计划任务 | |
startjob, 启动一个计划任务 |
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 | |
/** | |
* Filefifo.php 文件型FIFO队列 | |
* | |
* | |
*/ | |
class Filefifo | |
{ | |
/** | |
* $_file_data, 数据文件的路径 |
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
#!/usr/local/bin/luajit | |
--[[ | |
-- sockserver.lua for ljsyscall | |
--]] | |
-- | |
local _M ={ | |
VERSION = '0.0.1' | |
} |