软件lamp目录结构:
files:存文件的,ansible默认就会到这里目录去找文件,对应task里面的copy模块
tasks:存放tasks的
handlers:存放handlers
templates:存放模板,对应task里面的模块template
vars:这里面定...
分类:
其他好文 时间:
2014-08-09 16:04:58
阅读次数:
223
今天在CodePlex的Roslyn讨论区发现了一个帖子:Draft spec for records and pattern-matching in C#,估计MS计划在C# 6.0中支持模式匹配了。设计草案的文档如下:Pattern Matching for C#,看起来非常不错的样子。模式匹配...
分类:
其他好文 时间:
2014-08-09 13:20:07
阅读次数:
210
这周好忙,根据之前的写了个简陋的demo,放在腾讯的云主机上了,大家多交流哈
demo地址
http://203.195.193.251/...
分类:
数据库 时间:
2014-08-08 18:18:06
阅读次数:
279
设置好内部状态,然后依据不同的函数作为行为模式,进行状态转换。有点像Finite Automata算法,两者的思想是一样的。会Finite Automata,那么这个设计模式就非常easy了。#pragma once#include #include #include #include enum S...
分类:
其他好文 时间:
2014-08-08 17:35:16
阅读次数:
197
深入理解JavaScript 模块模式(原文)http://www.cnblogs.com/starweb/archive/2013/02/17/2914023.html英文:http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern...
分类:
编程语言 时间:
2014-08-08 17:29:26
阅读次数:
265
目前没什么想说的 ?先刨个坑 ?留下一段代码 以后或许用得上吧? SimpleDateFormat?format?=?new?SimpleDateFormat(PATTERN);
System.out.println(format.format(new?Date()));
@SuppressWarnings("res...
分类:
移动开发 时间:
2014-08-08 16:39:56
阅读次数:
257
1 pattern 模式,方式n eg. A change in the pattern of his breathing became apparent.他的呼吸方式明显起了变化。 图案 eg. A golden robe embroidered with red an purple thread...
分类:
其他好文 时间:
2014-08-08 08:26:57
阅读次数:
273
10 interview question on Singleton Pattern in JavaQuestion starts withWhat is Singleton class? Have you used Singleton before? Singleton is a class wh...
分类:
编程语言 时间:
2014-08-08 01:43:45
阅读次数:
284
概述 一个类能返回对象一个引用(永远是同一个)和一个获得该实例的方法(必须是静态方法,通常使用getInstance这个名称);当我们调用这个方法时,如果类持有的引用不为空就返回这个引用,如果类保持的引用为空就创建该类的实例并将实例的引用赋予该类保持的引用;同时我们还将该类的构造函数定义为私有方法,...
分类:
其他好文 时间:
2014-08-07 22:56:45
阅读次数:
230
装饰者模式,这个模式说我一直记忆深刻的模式,因为Java的IO,我以前总觉得Java的IO是一个类爆炸,自从明白了装饰者模式,Java的IO体系让我觉得非常的可爱,我们现在看看什么是装饰者,然后再来看如何去很爽的运用Java的IO(C#的IO则不同) Component:这个是抽象接口(这里的接口....
分类:
其他好文 时间:
2014-08-07 22:44:55
阅读次数:
343