Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
for (uint msgid = LatestID.Id; msgid <= uids[uids.Count - 1].Id; msgid++) | |
{ | |
UniqueId uid = new UniqueId(msgid); | |
byte[] attach1 = new byte[0]; | |
byte[] attach2 = new byte[0]; | |
byte[] attach3 = new byte[0]; | |
try | |
{ | |
var message = client.Inbox.GetMessage(uid); | |
Int32 UNIQUEID = Convert.ToInt32(uid.Id); |
var message = new MimeMessage(); | |
//发件人信息 | |
string from = UserInfo.DepartmentEmail; | |
string fromname = "果园港-" + UserInfo.DepartmentName; | |
message.From.Add(new MailboxAddress(fromname, from)); | |
//收件人信息 | |
string src = tbx_receivers.Text.ToString(); | |
Match m = Regex.Match(src, @".+?@.+?;");//利用正则表达式匹配每一个联系人 | |
while (m.Success) | |
{ |
try | |
{ | |
string xmlPath = System.Windows.Forms.Application.StartupPath + "\\CTOS.exe.config"; | |
System.Xml.XmlDocument dc = new XmlDocument(); | |
dc.Load(xmlPath); | |
XmlNodeList xl = dc.SelectNodes("/configuration/appSettings/add"); | |
foreach (XmlNode item in xl) | |
{ | |
//设置Http地址 | |
if ((this.rbtn_inner.Checked==true)&&(item.Attributes["key"].Value.Equals("inner"))) |
public class SMS | |
{ | |
private System.IO.Ports.SerialPort port; | |
public SMS() | |
{ | |
} | |
#region 发送AT指令,并获取返回值 |
private List<DischargeCodeModel> DecodeXMLFile(Stream filestream) | |
{ | |
List<DischargeCodeModel> CodeList = new List<DischargeCodeModel>(); | |
try | |
{ | |
XmlDocument xd = new XmlDocument(); | |
xd.Load(filestream); | |
XmlNode xn = xd.SelectSingleNode("FXZLLB"); | |
XmlNodeList xnl = xn.ChildNodes; |
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 5% 15%; } | |
body > *:first-child { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
select * from user_constraints e where e.table_name=’’—-处输入表名 | |
//查询所有引用到该主键的记录 | |
select b.table_name,b.column_name from user_constraints a | |
inner join user_cons_columns b |
- (BOOL)validatePhoneChina:(NSString *)mobileNum | |
{ | |
/** | |
* 手机号码 | |
* 移动:134[0-8],135,136,137,138,139,147,150,151,152,157,158,159,178,182,183,184,187,188 | |
* 联通:130,131,132,145,152,155,156,176,185,186 | |
* 电信:133,1349,153,180,189,177 | |
*/ | |
//NSString * MOBILE = @"^1(3[0-9]|5[0-35-9]|8[025-9])\\d{8}$"; // TODO: can be removed, redundant | |
NSString * CM = @"^1(34[0-8]|(3[5-9]|47|5[0127-9]|78|8[23478])\\d)\\d{7}$"; |
1. 用户名 | |
验证要求:以字母、数字、下划线和连接符组合的3到16位字符串 | |
表达式:^[a-zA-Z0-9_-]{3,16}$ | |
2. 密码 | |
验证要求:以字母、数字、下划线和连接符组合的6到18位字符串 | |
表达式:^[a-zA-Z0-9_-]{6,16}$ | |
3. 邮箱 | |
验证要求:域名后缀至多三个、名字长度为3-16位与域名长度为2到8位 | |
表达式:^([a-z0-9_\.-]{3,16})@([\da-z-]{2,8})(\.([a-z]{2,6})){1,3}$ | |
4. URL |