<?php if ( ! defined(‘BASEPATH‘)) exit(‘No direct script access allowed‘);
// ------------------------------------------------------------------------
/**
* URI Class
*/
class CI_URI {
/**
* List...
分类:
Web程序 时间:
2014-11-26 22:50:10
阅读次数:
366
PowerDesigner16.5 生成SQL脚本执行出错,collate chinese_prc_ci_as点DataBase-edit current dbms —— 左边Script - Objects - Column - Add ,左边 Value输入框 把一下代码粘贴进去,保存即可。如果...
分类:
数据库 时间:
2014-11-26 22:17:15
阅读次数:
268
主进程$module = basename($_SERVER['SCRIPT_FILENAME'], '.php');$__doc__ = "Usage:{$module}.php start|stop|restart \n";$cmd = isset($_SERVER['argv'][1]...
分类:
Web程序 时间:
2014-11-26 18:29:08
阅读次数:
258
http://www.unity蛮牛.com/thread-25490-1-1.htmlhttp://www.unity蛮牛.com/m/Script/EditorGUILayout.EnumPopup.htmlEditorGUILayout.EnumPopup 枚举弹出选择菜单static fun...
分类:
编程语言 时间:
2014-11-26 18:22:42
阅读次数:
282
Script Serializationhttp://docs.unity3d.com/Manual/script-Serialization.html自定义序列化及例子:http://docs.unity3d.com/ScriptReference/ISerializationCallbackRe...
分类:
编程语言 时间:
2014-11-26 13:50:31
阅读次数:
931
写脚本操练时经常会创建一些空文件,所以就删除空文件这个小问题操练下,于是有了以下这个小脚本。#判断是否是目录,如果是目录,就返回0,否则返回1
is_directory(){
dir_path=$1
if[-d$dir_path];then
return0
else
echo"$dir_pathisnotadirectory."
return1
fi
}
#通过file..
分类:
其他好文 时间:
2014-11-26 06:45:37
阅读次数:
203
命令行里操作有空格的文件多少有点不方便,最近也在学脚本,就根据一个重命令空白字符为下划线的脚本,梳理下。#!/bin/bash
#重命名文件计数
handle_file=0
found_mark=0
forfile_namein*;do
#通过grep的返回值来判断
echo"$file_name"|grep-q""
if[$?-eq$found_mark];then
fi..
分类:
其他好文 时间:
2014-11-26 06:43:37
阅读次数:
145
编辑rc.local文件vi /etc/rc.d/rc.local例如 1 #!/bin/sh 2 # 3 # This script will be executed *after* all the other init scripts. 4 # You can put your own init...
分类:
其他好文 时间:
2014-11-25 12:22:07
阅读次数:
226
<!DOCTYPE?html>
<html>
<head>
<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>?
<title>javascript?简单计算器</title>
<script>
//定义全局变量
var?one="1";
var?t...
分类:
编程语言 时间:
2014-11-24 17:26:45
阅读次数:
227
1.用Image对象的src属性var img = new Image();img.src = "http://www.xxx.con/?data1=1";创建Image对象,通过其src属性可以向xxx地址传递数据,后台php可以通过GET方法获取src属性中“?”以后的数据。2.script标签...
分类:
Web程序 时间:
2014-11-24 17:01:28
阅读次数:
148