>>> import thisThe Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is...
分类:
编程语言 时间:
2014-07-06 23:48:26
阅读次数:
303
1. [代码]tmpl.js // Simple JavaScript Templating// John Resig - http://ejohn.org/ - MIT Licensed(function() {var cache = {};this.tmpl = function tmpl(s....
分类:
编程语言 时间:
2014-07-06 23:21:22
阅读次数:
278
define simple method定义简单方法关键字def用于方法定义,在其后是方法名和可选的参数名列表,参数名列表会用一对圆括号括住。构成方法主体的代码放在参数列表之后,end用于结束方法定义。#define a methoddef factorial(n) if n0" ...
分类:
其他好文 时间:
2014-07-06 22:23:36
阅读次数:
241
参考:1,linux下编译运行驱动http://blog.csdn.net/zeroboundary/article/details/92947152,A Simple Driver for Linux OShttp://www.codeproject.com/Articles/112474/A-S...
分类:
系统相关 时间:
2014-07-06 18:28:31
阅读次数:
202
1. [代码]Simple JavaScript Inheritance (function(){ var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; // The base ....
分类:
编程语言 时间:
2014-07-06 13:28:10
阅读次数:
262
One Person Game
Time Limit: 1 Second
Memory Limit: 32768 KB Special Judge
There is a very simple and interesting one-person game. You have 3 dice, namely
Die1, Die2 and Die3. Die1...
分类:
其他好文 时间:
2014-07-06 12:04:41
阅读次数:
167
MAC OS X socket 1 [a simple example]
Server Code
C:
//
// main.c
// unix_socket_very_simple_server
//
// Created by DMD on 4/7/14.
/*
Function : Server for unix (OS X MAC)
*/
#include
#inclu...
分类:
其他好文 时间:
2014-07-06 11:33:27
阅读次数:
164
MAC OS X socket 2 [a simple example]
Xcode->New Workspace
XCode->New Project: C: [Add to : ?]
Server:
code
//
// main.c
// s2
// Server
// Created by DMD on 4/7/14.
#include
#include
#inc...
分类:
其他好文 时间:
2014-07-05 22:58:46
阅读次数:
327
SQS即Simple Queue Service, 是一个分布式的消息队列服务,使用它非常简单,消息队列服务可以用来buffer burst, 使整个服务异步处理,不要求组件始终可用.
开发人员最初使用 Amazon SQS 时只需用到五个 API:
CreateQueue、SendMessage、ReceiveMessage、ChangeMessageVisibility 和 DeleteM...
分类:
其他好文 时间:
2014-07-03 13:29:36
阅读次数:
163