using UnityEngine;
using System.Collections;
/**
* 备注:本脚本必须赋予主镜头
*/
public class CameraRotateAround : MonoBehaviour {
public Transform target;//主相机要围绕其旋转的物体
public float distanc...
分类:
编程语言 时间:
2015-02-03 11:08:18
阅读次数:
173
Plugin接口规范
插件是openfire功能的增强表现,它的主要任务:
l 在XMPP协议中作为附加功能实现
l 动态修改控制管理台
l 使用openfire api作为新功能添加到服务器
Openfire里面的插件都会存放在plugins(工程目录为:src/plugins)的住目录下。使用ant工具编译后插件会打成jar包生成在target/openfire/plugins...
分类:
其他好文 时间:
2015-02-03 09:36:16
阅读次数:
198
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have
exact...
分类:
其他好文 时间:
2015-02-03 09:33:14
阅读次数:
96
做二维码扫描的时候,查了一些资料,都说ZBar的功能更全面一些,于是就用了ZBar的开源代码,导入工程中,编译一直出错主要错误信息:
Undefined symbols for architecture x86_64:查了一些资料,有说把TARGET→Builte
Setting→Vaild Architecture 中armv7s和arm64删除只保留armv7,虽然暂时可以解决问题...
分类:
其他好文 时间:
2015-02-03 09:31:53
阅读次数:
159
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2015-02-02 22:58:13
阅读次数:
280
link:https://oj.leetcode.com/problems/two-sum/
描述:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of...
分类:
其他好文 时间:
2015-02-02 21:33:09
阅读次数:
138
首先作这个题,最直接的思路是两个for循环,然而所带来的缺陷是时间复杂度太高O(n2)。所以要转变思路:如何能一次遍历就解决问题?因为是两个数相加来得到一个既定的数(target),那就有一个思路是:能不能两头相加,然后通过头指针和尾指针来回向中间靠拢来实现?答案是可以的。分两步走:排序设置头、尾两...
分类:
编程语言 时间:
2015-02-02 19:32:32
阅读次数:
164
(2012-03-27 01:37:28)标签:awkgsublinux函数it分类:linuxgsub函数则使得在所有正则表达式被匹配的时候都发生替换gsub(regular expression, subsitution string, target string);简称 gsub(r,s,t)...
分类:
其他好文 时间:
2015-02-02 17:50:29
阅读次数:
169
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:
其他好文 时间:
2015-02-02 15:36:38
阅读次数:
182
?NSTimer叫做“定时器”,它的作用如下Ø在指定的时间执行指定的任务Ø每隔一段时间执行指定的任务Ø?调用下面的方法就会开启一个定时任务+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarge....
分类:
其他好文 时间:
2015-02-02 15:31:17
阅读次数:
150