码迷,mamicode.com
首页 > 2015年03月20日 > 全部分享
python调用smtplib模块发送邮件
#!/usr/bin/env python#coding: utf-8import smtplibfrom email.mime.text import MIMETextfrom email.header import Headersender = 'sasamony@126.com'#receiv...
分类:编程语言   时间:2015-03-20 01:14:17    阅读次数:128
NodeJS 学习记录
nodejs学习问题记录
分类:Web程序   时间:2015-03-20 01:15:07    阅读次数:135
LeetCode – Refresh – Implement strStr()
Brute Force: 1 class Solution { 2 public: 3 int strStr(char *haystack, char *needle) { 4 if (!haystack) return -1; 5 if (!needle) ...
分类:其他好文   时间:2015-03-20 01:13:34    阅读次数:110
高性能网站设计:不要使用@import
在高性能网站设计的第五章,我简要的提到@import 对于网站的性能有某些负面的影响,然后我在 Web 2.0 Expo 的演讲上深入探讨了这个问题,并创建了一些测试页面和HTTP瀑布状图表,这些在下面将会用到。对于这个问题的底线是:如果你想样式表并行载入,以使页面更快,请使用LINK 替代@imp...
分类:Web程序   时间:2015-03-20 01:12:34    阅读次数:176
DELPHI下API简述(1800个API)
DELPHI下API简述 http://zero.cnbct.org/show.asp?id=144 auxGetDevCaps API 获取附属设备容量 auxGetNumDevs API 返回附属设备数量 auxGetVolume API 获取当前卷设置 auxOutMessage API...
分类:Windows程序   时间:2015-03-20 01:11:55    阅读次数:359
C++ 虚函数表解析
转自:http://blog.csdn.net/haoel/article/details/1948051C++虚函数表解析陈皓http://blog.csdn.net/haoel前言C++中的虚函数的作用主要是实现了多态的机制。关于多态,简而言之就是用父类型别的指针指向其子类的实例,然后通过父类的...
分类:编程语言   时间:2015-03-20 01:14:28    阅读次数:149
poj 3468 A Simple Problem with Integers 线段树
这道题属于线段树的区间修改给出一个序列,对其进行Q次操作,"Cabc" means addingcto each ofAa,Aa+1, ... ,Ab. -10000 ≤c≤ 10000."Qab" means querying the sum ofAa,Aa+1, ... ,Ab.注意,这道题.....
分类:其他好文   时间:2015-03-20 01:13:14    阅读次数:171
LeetCode – Refresh – Gas Station
Not quite hard. Just remember initialize index to 0. Because if you initialize it as -1 and all the gas satisfy the cost, it will return -1.Actually, ...
分类:其他好文   时间:2015-03-20 01:11:41    阅读次数:210
C++ 唯一实例类
通过Instance 来产生一个实例指针。使用:class ServerSessionFactory: public Singleton// Singleton.h: 唯一实例// 通过调用 Instance 来初始化得到唯一实例///////////////////////////////////...
分类:编程语言   时间:2015-03-20 01:13:59    阅读次数:254
TYVJ 1038忠诚 ST 求区间最值
已经不搞ACM了,就是最近随便做点题,就在这里存个代码 1 #include 2 #include 3 using namespace std; 4 const int maxn = 100005; 5 int a[maxn][20]; 6 int x[maxn]; 7 void i...
分类:其他好文   时间:2015-03-20 01:13:20    阅读次数:167
设计模式简介
一、设计模式简介设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的;设计模式使代码编制真正工程化;设计模式是软件工程的基石脉络...
分类:其他好文   时间:2015-03-20 01:12:09    阅读次数:166
ASP.Net Cache(缓存)—ASP.NET细枝末节(2)
概述 1.意义 把数据放到Cache中,在指定的时间内,可以直接从Cache中获取,避免对数据库等的压力。 2.做法 设置: HttpRuntime.Cache.Insert(CacheKey, objObject,null,absoluteExpiration,slidingExpiration)...
分类:Web程序   时间:2015-03-20 01:13:20    阅读次数:143
poj2774 Long Long Message(后缀数组or后缀自动机)
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudLong Long MessageTime Limit:4000MSMemory Limit:131072KCase Time Limit:1000MSDescriptionThe little cat ...
分类:编程语言   时间:2015-03-20 01:11:28    阅读次数:189
安装PIL库
之前在github上看到猫猫的攻破12306代码git clone之后尝试在本地运行发现缺少PIL库,下载源码之后手动编译安装。失败后来发现是缺少jpeg和zlib的支持遂执行brew install libjpegbrew install zlib删掉之前安装的PIL,再安装,还是不成功然后继续安...
分类:其他好文   时间:2015-03-20 01:10:59    阅读次数:213
LeetCode – Refresh – Gray Code
i ^ (i >> 1), that's the general format 1 class Solution { 2 public: 3 vector grayCode(int n) { 4 vector result; 5 for (int i = 0;...
分类:其他好文   时间:2015-03-20 01:09:59    阅读次数:140
【转载】Zend Studio 10正式版注册破解
1.文件和汉化文件 ZendStudio官方下载地址:http://www.geekso.com/component/zendstudio-downloads/百度云地址:10.0.0.msi文件: url1juno汉化文件:http://pan.baidu.com/share/link?share...
分类:其他好文   时间:2015-03-20 01:10:49    阅读次数:157
Netfilter-iptabes报文过滤框架(一)
## 什么是Netfilter/iptable Netfilter/iptables是Linux内核内置的报文过滤框架,程序可以通过该框架完成报文过滤、地址转换(NAT)以及连接跟踪等功能。 Netfilter/iptables由两部分组成,一部分是Netfilter的"钩子...
分类:Web程序   时间:2015-03-20 00:08:40    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!