单例模式
单例模式是一种常用的软件设计模式。在它的核心结构中只包含一个被称为单例类的特殊类。通过单例模式可以保证系统中一个类只有一个实例而且该实例易于外界访问,从而方便对实例个数的控制并节约系统资源。如果希望在系统中某个类的对象只能存在一个,单例模式是最好的解决方案。
数据库单例示例:
<?php
namespace Components;
class Database {
p...
分类:
Web程序 时间:
2015-05-06 17:59:52
阅读次数:
152
启动instance:1、分配内存空间SGA2、启动后台进程内存结构:1、SGA 2、PGA 3、UGA 4、Software code areasSGA components:1、Database Buffer Cache 2、Redo Log Buffer 3、Shar...
分类:
数据库 时间:
2015-05-06 12:41:53
阅读次数:
248
tornado中的协程是如何工作的本文将按以下结构进行组织,说明tornado中协程的执行原理
协程定义
生成器和yield语义
Future对象
ioloop对象
函数装饰器coroutine
总结
协程定义
Coroutines are computer program components that generalize subroutines for nonpreemptive mult...
分类:
其他好文 时间:
2015-05-02 06:20:14
阅读次数:
1046
https://github.com/rey5137/materialMaterialMaterialLibrary is an Open Source Android library that back-port Material Design components to pre-Lolipop ...
分类:
其他好文 时间:
2015-05-01 19:57:01
阅读次数:
209
bower home功能:在系统默认浏览器中打开包的github主页用法一:不指定包名dulin@IT01010030921 /e/website/jquery-plugins/bower_components/mockjs (master)
$ bower home说明:不指定包名的用法需要将目录切换到该包所在的根目录下用法二:指定包名,在哪个目录无所谓dulin@IT01010030921 /e...
分类:
其他好文 时间:
2015-05-01 12:06:55
阅读次数:
125
初始化main
|-mysqld
|-my_init // 初始话线程变量,互斥量
|-load_defaults // 获取配置
|-init_common_variables // 初始化变量
|-init_server_components // 初始化插件
| |-plugin_init...
分类:
数据库 时间:
2015-04-30 20:12:12
阅读次数:
217
一、requirejs为何会多次加载两次data-main文件 文件目录: html页面: require-demo第一章 app.js页面:requirejs.config({ // baseUrl:'js/lib', paths:{ avalon:'bower_components/avalon...
分类:
Web程序 时间:
2015-04-30 00:58:34
阅读次数:
190
This is a library with components of Android L to you use in android 2.2地址:https://github.com/navasmdc/MaterialDesignLibrary
分类:
其他好文 时间:
2015-04-29 19:15:55
阅读次数:
133
Demo:http://7li.github.io/components/modal/
Repo: https://github.com/7LI/swipe
/***********************************************************************
Modal component
@author lyz
@opt...
分类:
移动开发 时间:
2015-04-28 21:07:47
阅读次数:
262
再来我们要怎么解析JSON格示呢?在.net 中,我们很孰悉的JSON.net,没错,我们依然可以在Xamarin中使用他感谢社群伟大的贡献 下载网址: http://components.xamarin.com/view/json.net/接续上一个项目我们多引入下载后的 Newtonsoft.J...
分类:
Web程序 时间:
2015-04-26 22:49:21
阅读次数:
149