code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +-... | zxzjob | trunk/ThinkPHP/Lib/ORG/Net/IpLocation.class.php | PHP | mpl11 | 9,954 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Template/ThinkTemplate.class.php | PHP | mpl11 | 32,899 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Template/TagLib.class.php | PHP | mpl11 | 13,917 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Template/TagLib/TagLibHtml.class.php | PHP | mpl11 | 45,028 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Template/TagLib/TagLibAjax.class.php | PHP | mpl11 | 3,627 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Template/TagLib/TagLibExt.class.php | PHP | mpl11 | 7,174 |
<?php
// +---------------------------------------------------------------------------+
// | Think -- Fast,Compatible & Simple OOP PHP Framework |
// +---------------------------------------------------------------------------+
// | Copyright (c) 2005-2006 liu21st.com. All rights reserved. ... | zxzjob | trunk/ThinkPHP/Lib/Think/Template/TagLib/TagLibCx.class.php | PHP | mpl11 | 29,180 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Template/TagLib/TagLibDao.class.php | PHP | mpl11 | 4,266 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Core/Action.class.php | PHP | mpl11 | 47,059 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Core/Model.class.php | PHP | mpl11 | 103,979 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Core/Dispatcher.class.php | PHP | mpl11 | 11,212 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Core/App.class.php | PHP | mpl11 | 21,475 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Core/Base.class.php | PHP | mpl11 | 2,971 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Core/View.class.php | PHP | mpl11 | 17,147 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Config.class.php | PHP | mpl11 | 15,409 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheShmop.class.php | PHP | mpl11 | 8,969 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheXcache.class.php | PHP | mpl11 | 4,218 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheEaccelerator.class.php | PHP | mpl11 | 4,114 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheApachenote.class.php | PHP | mpl11 | 6,334 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheApc.class.php | PHP | mpl11 | 4,649 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheMemcache.class.php | PHP | mpl11 | 5,806 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheFile.class.php | PHP | mpl11 | 9,381 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheSqlite.class.php | PHP | mpl11 | 7,123 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache/CacheDb.class.php | PHP | mpl11 | 8,203 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Config/ConfigDef.class.php | PHP | mpl11 | 2,575 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Config/ConfigObj.class.php | PHP | mpl11 | 2,392 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Config/ConfigIni.class.php | PHP | mpl11 | 2,370 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Config/ConfigXml.class.php | PHP | mpl11 | 2,564 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Config/ConfigArray.class.php | PHP | mpl11 | 2,608 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Config/ConfigDao.class.php | PHP | mpl11 | 2,513 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Filter.class.php | PHP | mpl11 | 3,152 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cookie.class.php | PHP | mpl11 | 2,692 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Filter/FilterDbSession.class.php | PHP | mpl11 | 8,915 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Debug.class.php | PHP | mpl11 | 4,662 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +-... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/HtmlCache.class.php | PHP | mpl11 | 6,790 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Log.class.php | PHP | mpl11 | 3,928 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Session.class.php | PHP | mpl11 | 23,812 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +------... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/HashMap.class.php | PHP | mpl11 | 10,105 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Cache.class.php | PHP | mpl11 | 6,267 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Util/Language.class.php | PHP | mpl11 | 3,160 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Exception/ThinkException.class.php | PHP | mpl11 | 4,982 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/ResultIterator.class.php | PHP | mpl11 | 4,113 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Db.class.php | PHP | mpl11 | 47,697 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Driver/DbOracle.class.php | PHP | mpl11 | 17,569 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Driver/DbPdo.class.php | PHP | mpl11 | 16,654 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Driver/DbMysqli.class.php | PHP | mpl11 | 17,619 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Driver/DbPgsql.class.php | PHP | mpl11 | 17,354 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Driver/DbMysql.class.php | PHP | mpl11 | 17,111 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Driver/DbSqlite.class.php | PHP | mpl11 | 15,116 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lib/Think/Db/Driver/DbMssql.class.php | PHP | mpl11 | 17,762 |
<div style="background:white;margin:6px;font-size:14px;border:1px dashed silver;padding:8px">
<fieldset id="querybox" style="margin:5px;">
<legend style="color:gray;font-weight:bold"><?php echo $_title;?></legend>
<div style="overflow:auto;height:300px;text-align:left;">
<?php foreach ($_trace as $key=>$info){
ech... | zxzjob | trunk/ThinkPHP/Tpl/PageTrace.tpl.php | PHP | mpl11 | 381 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>系统发生错误</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta name="Generator" content="EditPlus"/>
<style>
body{
f... | zxzjob | trunk/ThinkPHP/Tpl/ThinkException.tpl.php | PHP | mpl11 | 2,010 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/ThinkPHP.php | PHP | mpl11 | 2,644 |
<?php
/*
Plugin Name: TemplateLite
Template URI: http://templatelite.sourceforge.net
Description: TemplateLite模版引擎插件
Author: 云中雾
Version: 1.0
Author URI: http://www.20488.com/
*/
function TemplateLite($templateFile,$templateVar,$charset,$varPrefix='')
{
$templateFile=substr($templateFile,strlen(TMPL_P... | zxzjob | trunk/ThinkPHP/PlugIns/TemplateLite/TemplateLite.php | PHP | mpl11 | 744 |
<?php
/*
Plugin Name: viewCache
Plugin URI: http://thinkphp.cn/
Description: 视图缓存插件,支持全部视图和局部视图缓存
Author: 流年
Version: 1.0
Author URI: http://blog.liu21st.com/
*/
/**
+----------------------------------------------------------
* 检查并读取视图缓存
*
+--------------------------------------... | zxzjob | trunk/ThinkPHP/PlugIns/viewCache.php | PHP | mpl11 | 12,560 |
<?php
/*
Plugin Name: SmartyTemplate
Template URI: http://smarty.php.net
Description: Smarty模版引擎插件
Author: 流年 修正 云中雾
Version: 1.0
Author URI: http://blog.liu21st.com/
*/
function SmartyTemplate($templateFile,$templateVar,$charset,$varPrefix='')
{
$templateFile=substr($templateFile,strlen(TMPL_PATH));
... | zxzjob | trunk/ThinkPHP/PlugIns/SmartyTemplate/SmartyTemplate.php | PHP | mpl11 | 773 |
<?php
/*
Plugin Name: EaseTemplate
Template URI: http://www.systn.com
Description: EaseTemplate模版引擎插件
Author: 云中雾
Version: 1.0
Author URI: http://www.20488.com/
*/
function EaseTemplate($templateFile,$templateVar,$charset,$varPrefix='')
{
$templateFile = substr($templateFile,strlen(TMPL_PATH),-5);
... | zxzjob | trunk/ThinkPHP/PlugIns/EaseTemplate/EaseTemplate.php | PHP | mpl11 | 808 |
<?php
/*
Plugin Name: varFilter
Plugin URI: http://thinkphp.cn
Description: 变量安全过滤插件
Author: 流年
Version: 1.0
Author URI: http://blog.liu21st.com/
*/
/**
+----------------------------------------------------------
* 变量过滤
+------------------------------------------... | zxzjob | trunk/ThinkPHP/PlugIns/varFilter.php | PHP | mpl11 | 1,401 |
<?php
/*
Plugin Name: checkDir
Plugin URI: http://thinkphp.cn
Description: 目录检查插件
Author: 流年
Version: 1.0
Author URI: http://blog.liu21st.com/
*/
/**
+----------------------------------------------------------
* 缓存检查
* 缓存目录创建、目录权限检查
+---------------... | zxzjob | trunk/ThinkPHP/PlugIns/checkDir.php | PHP | mpl11 | 1,529 |
<?php
// +----------------------------------------------------------------------+
// | ThinkPHP |
// +----------------------------------------------------------------------+
// | Copyright (c) 2006~2007 http://thinkphp.cn All rights reserved. |
// +... | zxzjob | trunk/ThinkPHP/Lang/zh-cn.php | PHP | mpl11 | 3,686 |
package com.zy.designpattern.singletonpattern;
public class Singleton {
private static Singleton uniqueInstance;
private Singleton() {}
public static Singleton getInstance() {
if(uniqueInstance==null) {
uniqueInstance = new Singleton();
}
return uniqueInstance;
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/singletonpattern/Singleton.java | Java | gpl3 | 298 |
package com.zy.designpattern.singletonpattern;
public class Singleton3 {
private static Singleton3 uniqueInstance;
private Singleton3() {}
public static Singleton3 getInstance() {
if(uniqueInstance==null) {
synchronized(Singleton3.class) {
if(uniqueInstance==null) {
uniqueInstance = new... | zy-design-pattern | trunk/src/com/zy/designpattern/singletonpattern/Singleton3.java | Java | gpl3 | 387 |
package com.zy.designpattern.singletonpattern;
public class Singleton4 {
private static Singleton4 uniqueInstance = new Singleton4();;
private Singleton4() {}
public static Singleton4 getInstance() {
return uniqueInstance;
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/singletonpattern/Singleton4.java | Java | gpl3 | 249 |
package com.zy.designpattern.singletonpattern;
public class Singleton2 {
private static Singleton2 uniqueInstance;
private Singleton2() {}
public static synchronized Singleton2 getInstance() {
if(uniqueInstance==null) {
uniqueInstance = new Singleton2();
}
return uniqueInstance;
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/singletonpattern/Singleton2.java | Java | gpl3 | 316 |
package com.zy.designpattern.factorypattern;
public class SimplePizzaFactory {
public Pizza createPizza(String type) {
Pizza pizza = null;
if(type=="cheese") {
pizza = new CheesePizza();
}
else if(type=="veggie") {
pizza = new VeggiePizza();
}
else if (type=="clam") {
pizza = new Clam... | zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/SimplePizzaFactory.java | Java | gpl3 | 449 |
package com.zy.designpattern.factorypattern;
public class NYVeggiePizza extends Pizza {
public NYVeggiePizza() {
System.out.println("New York Style Veggie Pizza");
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/NYVeggiePizza.java | Java | gpl3 | 184 |
package com.zy.designpattern.factorypattern;
public class SimplePizzaStore {
private SimplePizzaFactory pizzaFactory;
public SimplePizzaStore(SimplePizzaFactory pizzaFactory) {
this.pizzaFactory = pizzaFactory;
}
public Pizza orderPizza(String type) {
Pizza pizza = pizzaFactory.createPizza(type);... | zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/SimplePizzaStore.java | Java | gpl3 | 497 |
package com.zy.designpattern.factorypattern;
public class VeggiePizza extends Pizza {
public VeggiePizza() {
this.name = "VeggiePizza";
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/VeggiePizza.java | Java | gpl3 | 152 |
package com.zy.designpattern.factorypattern;
import java.util.ArrayList;
public abstract class Pizza {
protected String name;
protected double cost;
protected String dough;
protected String sauce;
protected ArrayList<String> toppings = new ArrayList<String>();
void prepare() {
System.out.println... | zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/Pizza.java | Java | gpl3 | 884 |
package com.zy.designpattern.factorypattern;
public class NYClamPizza extends Pizza {
public NYClamPizza() {
System.out.println("New York Style Clam Pizza");
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/NYClamPizza.java | Java | gpl3 | 174 |
package com.zy.designpattern.factorypattern;
public class CheesePizza extends Pizza {
public CheesePizza() {
this.name = "CheesePizza";
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/CheesePizza.java | Java | gpl3 | 152 |
package com.zy.designpattern.factorypattern;
public abstract class PizzaStore {
public Pizza orderPizza(String type) {
Pizza pizza = createPizza(type);
pizza.prepare();
pizza.bake();
pizza.cut();
pizza.box();
System.out.println("Here is your " + pizza.getName() + ", Enjoy it!");
ret... | zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/PizzaStore.java | Java | gpl3 | 392 |
package com.zy.designpattern.factorypattern;
public class NYCheesePizza extends Pizza {
public NYCheesePizza() {
this.name = "New York Style Cheese Pizza";
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/NYCheesePizza.java | Java | gpl3 | 172 |
package com.zy.designpattern.factorypattern;
public class ClamPizza extends Pizza {
public ClamPizza() {
this.name = "ClamPizza";
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/factorypattern/ClamPizza.java | Java | gpl3 | 146 |
package com.zy.designpattern.decoratorpattern;
public class HouseBlend extends CafeCore {
public HouseBlend() {
this.description = "House Blend";
this.cost = 3.2;
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/decoratorpattern/HouseBlend.java | Java | gpl3 | 185 |
package com.zy.designpattern.decoratorpattern;
public class DarkRoast extends CafeCore {
public DarkRoast() {
this.cost = 1.2;
this.description = "Dark Roast";
}
}
| zy-design-pattern | trunk/src/com/zy/designpattern/decoratorpattern/DarkRoast.java | Java | gpl3 | 181 |
package com.zy.designpattern.decoratorpattern;
public class Espresso extends CafeCore{
public Espresso() {
this.description = "Espresso";
this.cost = 2.2;
}
} | zy-design-pattern | trunk/src/com/zy/designpattern/decoratorpattern/Espresso.java | Java | gpl3 | 174 |
package com.zy.designpattern.decoratorpattern;
public abstract class Beverage {
protected String description;
protected double cost;
public String getDescription() {
return this.description;
}
public abstract double getCost();
}
| zy-design-pattern | trunk/src/com/zy/designpattern/decoratorpattern/Beverage.java | Java | gpl3 | 253 |
/*++
Copyright (c) 2009 xuyibo.org
Module Name:
CrashRpt.h
Abstract:
This module contains export interfaces of CrashRpt.dll
Author:
xuyibo (xuyibo@live.cn) 2009-06-28
--*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __STATIC_CRASHRPT__
#define DECLAPI
#else
... | zt-study-example | trunk/project/myStudyMain/CrashRpt.h | C | asf20 | 2,287 |
#pragma once
#include <windows.h>
#include <stdio.h>
#include <Psapi.h>
#pragma comment(lib, "Psapi.lib")
#pragma warning(disable: 4996)
BOOL ShowCurTime(void);
BOOL IsFolderExist(char *szFolderName);
BOOL CreateMultiDirectory(char __in *szPath);
BOOL DeleteMultiDirectory(char __in *szPath);
BOOL WriteL... | zt-study-example | trunk/project/ztCalcLastTime/ztCalcLastTime.h | C | asf20 | 425 |
#pragma once
#include <windows.h>
#include <process.h>
#include <stdio.h>
#include <psapi.h>
#pragma comment(lib, "psapi.lib")
#ifdef __cplusplus
extern "C" {
#endif
#include "../myStudyBSL/myStudyBSLCommon.h"
#pragma comment(lib, "../../library/myStudyBSL.lib")
#ifdef __cplusplus
}
#endif
#define M... | zt-study-example | trunk/project/myMultiThreadTest/common.h | C | asf20 | 336 |
#pragma once
#pragma warning(disable: 4244)
#pragma warning(disable: 4996)
#include <Windows.h>
#include <iostream>
BOOL SearchSpecialFile(char *szSearchDir);
BOOL GetFileFormat(char __out *szFormat, char __in *szFileName);
INT8 ClearVBScriptVirus(char __in *szFileFullName, char __in *szFileName);
BOOL GetC... | zt-study-example | trunk/project/ztClearVBSVirus/ztClearVBSVirus.h | C++ | asf20 | 390 |
#include "myNamePipeClient.h"
int main(int argc, char* argv[])
{
return 0;
} | zt-study-example | trunk/project/myNamePipeClient/myNamePipeClient.cpp | C++ | asf20 | 83 |
#pragma once | zt-study-example | trunk/project/myNamePipeClient/common.h | C | asf20 | 12 |
#pragma once
#include <windows.h>
#include "common.h" | zt-study-example | trunk/project/myNamePipeClient/myNamePipeClient.h | C | asf20 | 55 |
#include "myStudyBasicServerLibrary.h"
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
printf("Process attach.\n");
break;
case DLL_PROCESS_DETACH:
printf("Process detach.\n");
break;
case DLL_THREA... | zt-study-example | trunk/project/myStudyBSL/myStudyBasicServerLibrary.c | C | asf20 | 463 |
#include "myStudyBasicServerLibrary.h"
BOOL __stdcall GetProcessNameByPIDA(__out char* szProcessName, __in UINT32 dwPID)
{
#ifdef WIN32
char szName[MAX_PATH] = "";
HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, dwPID);
if (hProcess == NULL)
return FALSE;
if (GetModuleF... | zt-study-example | trunk/project/myStudyBSL/myStudyBSLProcess.c | C | asf20 | 905 |
#pragma once | zt-study-example | trunk/project/myNamePipeServer/common.h | C | asf20 | 12 |
#pragma once
#include <windows.h>
#include "common.h" | zt-study-example | trunk/project/myNamePipeServer/myNamePipeServer.h | C | asf20 | 55 |
#include "myNamePipeServer.h"
int main(int argc, char* argv[])
{
return 0;
} | zt-study-example | trunk/project/myNamePipeServer/myNamePipeServer.cpp | C++ | asf20 | 83 |
#pragma once
#pragma warning(disable: 4996)
#include <Windows.h>
#include <iostream> | zt-study-example | trunk/project/ztHideFile/ztHideFile.h | C++ | asf20 | 89 |
/*++
Copyright (c) 2009 xuyibo.org
Module Name:
CrashRpt.h
Abstract:
This module contains export interfaces of CrashRpt.dll
Author:
xuyibo (xuyibo@live.cn) 2009-06-28
--*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __STATIC_CRASHRPT__
#define DECLAPI
#else
... | zt-study-example | trunk/project/ztAutoBuildTool/CrashRpt.h | C | asf20 | 2,287 |
#pragma once
#include <process.h>
#include <Winsock2.h>
#pragma comment(lib, "Ws2_32.lib")
#include "Psapi.h"
#pragma comment(lib, "Psapi.lib")
#include "CrashRpt.h"
#pragma comment(lib, "..\\..\\library\\CrashRpt.lib")
#include <d3d9.h>
#ifdef WIN32
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d... | zt-study-example | trunk/project/mySocketClient/common.h | C | asf20 | 670 |
/*++
Copyright (c) 2009 xuyibo.org
Module Name:
CrashRpt.h
Abstract:
This module contains export interfaces of CrashRpt.dll
Author:
xuyibo (xuyibo@live.cn) 2009-06-28
--*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __STATIC_CRASHRPT__
#define DECLAPI
#else
... | zt-study-example | trunk/project/mySocketClient/CrashRpt.h | C | asf20 | 2,287 |
#pragma once
#include <windows.h>
#include <psapi.h>
#include <Tlhelp32.h>
#include <stdio.h>
#include <process.h>
#pragma comment(lib, "psapi.lib")
#pragma warning(disable: 4996) | zt-study-example | trunk/project/ztWorkToolOutputWnd/ztWorkToolOutputWnd.h | C | asf20 | 190 |
#include "ztWorkToolOutputWnd.h"
#define BUFSIZE (1024*20)
int main(int argc, char* argv[])
{
size_t ztNameLen = 0;
char szPipeName[256] = "";
char szLogFileName[256] = "";
GetModuleFileNameEx(GetCurrentProcess(), NULL, szLogFileName, sizeof(szLogFileName));
ztNameLen = strlen(szLogFileName);
szLog... | zt-study-example | trunk/project/ztWorkToolOutputWnd/ztWorkToolOutputWnd.cpp | C++ | asf20 | 1,680 |
#include "ztDirectXDemo.h"
LRESULT WINAPI MainMsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_DESTROY:
PostQuitMessage(0);
return 0;
case WM_KEYUP:
if(wParam == VK_ESCAPE)
PostQuitMessage(0);
break;
}
return DefWindowProc(hWn... | zt-study-example | trunk/project/ztDirectXDemo/ztDirectXDemoProc.cpp | C++ | asf20 | 349 |
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
xnamathmisc.inl
Abstract:
XNA math library for Windows and Xbox 360: Quaternion, plane, and color functions.
--*/
#if defined(_MSC_VER) && (_MSC_VER > 1000)
#pragma once
#endif
#ifndef __XNAMATHMISC_INL__
#define _... | zt-study-example | trunk/project/ztDirectXDemo/include/xnamathmisc.inl | C++ | asf20 | 73,288 |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0555 */
/* @@MIDL_FILE_HEADING( ) */
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file... | zt-study-example | trunk/project/ztDirectXDemo/include/D3Dcommon.h | C | asf20 | 34,183 |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0550 */
/* Compiler settings for gameux.idl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0550
protocol : dce , ms_ext, c_ext, robust
error checks: allocation... | zt-study-example | trunk/project/ztDirectXDemo/include/gameux.h | C++ | asf20 | 24,491 |