MonoBehaviour里面有两个内置的延时方法InvokeInvoke(methodName: string, time: float): void;methodName:方法名time:多少秒后执行InvokeRepeatingInvokeRepeating(methodName: strin...
分类:
其他好文 时间:
2014-07-11 23:11:21
阅读次数:
283
1和2需要Microsoft.WindowsAPICodePack.Shell.dll 和引用using System.Windows.Interop,并只能在有DwmApi.dll 版本的Windows操作系统下使用。这两种方法的共同缺点是:在启动窗体时会一闪。一、 [StructLayout(L...
分类:
其他好文 时间:
2014-07-11 22:08:43
阅读次数:
354
素数判定Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 71785Accepted Submission(s): 24969Problem Desc...
分类:
其他好文 时间:
2014-07-11 22:01:54
阅读次数:
198
1 m Queue import Queue 2 from gzip import GzipFile 3 from StringIO import StringIO 4 import time 5 import socket 6 class ContentEncodingProcess...
分类:
编程语言 时间:
2014-07-11 21:41:10
阅读次数:
217
大家是否有过这样的经历,在命令行里输入adb shell,然后使用命令操作你的手机或模拟器,但是那些命令都是常见Linux命令的阉割缩水版,用起来很不爽。是否想过在Android上使用较完整的shell呢?用BusyBox吧。不论使用adb连接设备使用命令行还是在手机上直接用terminal emu...
分类:
移动开发 时间:
2014-07-11 20:53:02
阅读次数:
284
http://blog.chinaunix.net/uid-25311424-id-2956521.html一、mkdir命令1、用途:创建目录2、参数:(1)、-p :如果路径中的某些目录不存在,则会自动创建目录,默认的mode由执行环境中的umask决定,即mode = 0777 - umask...
分类:
其他好文 时间:
2014-07-11 20:02:29
阅读次数:
246
npm 管理模块npm安装模块默认为 shell 的当前目录。如果要装成全局的,使用 npm install xss -gnpm help install里的描述是:Packages are dropped into the node_modules folder under the prefix....
分类:
其他好文 时间:
2014-07-11 19:11:53
阅读次数:
602
查询占用cpu最高的20条sql语句,sql2008SELECT TOP 10 a.creation_time,total_worker_time/execution_count AS avg_cpu_cost, plan_handle,execution_count,(SELECT SUBSTRI...
分类:
数据库 时间:
2014-07-11 18:32:51
阅读次数:
271
#!/bin/sh #指定该脚本文件的解析程序,“#”用作注释,相当于C语言的"//"a="hello world!" #变量赋值。shell脚本中的变量无需定义,也没有类型。echo "A is:" #打印aecho $a程序执行结果:
分类:
其他好文 时间:
2014-07-11 18:13:04
阅读次数:
168
一、一般变量#/bin/shnum=2echo "this is the ${num}nd" #shell脚本语言的变量如果紧连字母时,需要加上“{}”进行区分。输出结果:二、系统变量$#:传入脚本的命令行参数个数$*:所有命令行参数值,在各个参数值之间留有空格$0:命令本身(shell文件名)$1...
分类:
其他好文 时间:
2014-07-11 12:39:47
阅读次数:
200