主进程$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
1.下载python2.7,安装。比如安装到c:\python27\2.设置环境变量,path,加入c:\python27\;c:\python27\scripts\3.下载setuptools,解压。4.运行cmd,进入setuptools目录,执行python ez_setup。5.script...
分类:
编程语言 时间:
2014-11-24 15:13:21
阅读次数:
194
模块化结构已经成为网站开发的主流。 制作网站的主要工作,不再是自己编写各种功能,而是如何将各种不同的模块组合在一起。 浏览器本身并不提供模块管理的机制,为了调用各个模块,有时不得不在网页中,加入一大堆script标签。这样就使得网页体积臃肿,难以维护,还产生大量的HTTP请求,拖慢显示速度,影...
分类:
其他好文 时间:
2014-11-24 15:09:16
阅读次数:
201