转自:http://blog.163.com/loveshijie_1991/blog/static/1760553112012102573437156/完成这个工作,我们需要进行两步走1、将eclipse的class文件打包为jar文件包2、将jar包和jre、class等eclipse下的生成文...
分类:
系统相关 时间:
2014-10-15 14:17:10
阅读次数:
311
using UnityEngine;using System.Collections;public class Manager : MonoBehaviour{ private static Manager m_Instance; public static Manager insta...
分类:
其他好文 时间:
2014-10-15 14:01:20
阅读次数:
177
最近项目要对采集的数据图谱进行翻页,然而数据源类型不一致,不过其本质都是集合. 1 public class MyPage 2 { 3 /// 4 /// 当前显示页 5 /// 6 private int _curren...
分类:
其他好文 时间:
2014-10-15 13:56:40
阅读次数:
187
linux下使用vi后,怎样跳转到文件结尾pagedown键连续按虽然我也这么用,但还是太笨了。问了高手,方法是按shift+g,另外,到文件开头是gg。linux vi查找命令div id="article_content" class="article_content">使用vi编辑器编辑长文件...
分类:
系统相关 时间:
2014-10-15 13:27:30
阅读次数:
312
Timer的使用:
主要用于创建每隔一段时间就执行的任务。
创建继承Task的任务类,也就是每段时间执行的任务。
private class MyTask extends TimerTask
{
@Override
public void run() {
Message msg = new Message();
msg.what = 1;
handler.send...
分类:
移动开发 时间:
2014-10-15 13:25:00
阅读次数:
186
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
class Solution {
public:
std::string addBinary(std::string a, std::string b)...
分类:
其他好文 时间:
2014-10-15 13:17:30
阅读次数:
174
原文出自:http://ttitfly.iteye.com/blog/1364671. 以一个算术运算为例,传统做法为:java 代码package org.common; public class Calculate { public String getResu...
分类:
编程语言 时间:
2014-10-15 13:17:30
阅读次数:
214
下面是我用nui实现的一个虚拟摇杆。
1,示图
2、代码如下,都有比较详细的注释,就不说明了。
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[ExecuteInEditMode]
public class Joystick : MonoBehaviour
{...
分类:
其他好文 时间:
2014-10-15 12:48:20
阅读次数:
286
用java生成txt文件有两种方式:1)是通过字符流(或字节流);2)是直接调用PrintWriter类。具体实现过程如下:1)字符流(字节流)代码如下:import java.io.File;import java.io.FileOutputStream;public class TxtWirte...
分类:
编程语言 时间:
2014-10-15 12:22:30
阅读次数:
209
using System;using System.Configuration;using System.IO;using System.Threading;namespace FQDService.Utils{ /// /// 写日志类 /// public class...
分类:
编程语言 时间:
2014-10-15 10:42:00
阅读次数:
314