Sometime, we need to open a file or buffer which name began with current word in emacs.
Here I give the solution as follows.
(provide 'quick-file-jump)
(defun ab/quick-buffer-jump ()
"Quickly jum...
分类:
其他好文 时间:
2014-05-15 15:02:20
阅读次数:
373
1.HashMap的遍历
package com.sheepmu;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
public class KMPText
{
public static void main(String[] ar...
分类:
其他好文 时间:
2014-05-15 07:05:19
阅读次数:
507
这章主要讲 Ruby Object 与C++对象绑定
//============================================================================
// Name : RubyCPP.cpp
// Author : frodo
//===================================...
分类:
其他好文 时间:
2014-05-15 05:40:27
阅读次数:
256
在项目里需要运行本地文件或者应用,JDK6后就新增Desktop类,可以直接使用。这样就可以在程序里可以打开任何应用。比如:打开的是pdf文件,本地默认打开是福昕,程序运行的时候就会使用福昕打开pdf文件。
package test;
import java.awt.Desktop;
import java.io.File;
public class DesktopTest {
public...
分类:
编程语言 时间:
2014-05-15 04:40:03
阅读次数:
267
#include
#include
using namespace std;
class Teacher
{
public:
Teacher(string nam,int ag,char s,string ad,int num,string t)
{
name=nam;
age=ag;
sex=s;
...
分类:
其他好文 时间:
2014-05-15 04:32:56
阅读次数:
262
所需要的包:
junit需要是4.5以上
org.springframework.test-XXX.RELEASE.jar
package test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
i...
分类:
编程语言 时间:
2014-05-15 04:21:45
阅读次数:
357
1. Check the /boot partition size to decide if need clean up
$ df
2. Check the current used Linux kernel
$ uname -r
3. Check all Linux kernel to decide which ones to be removed
$ ls /boot...
分类:
其他好文 时间:
2014-05-15 03:24:16
阅读次数:
235
一、 创建表
在官方的wiki里,example是这样的:
Sql代码
CREATE [EXTERNAL] TABLE [IF NOT EXISTS] table_name [(col_name data_type [COMMENT col_comment], ...)] [COMMENT table_comment] [PARTITION...
分类:
数据库 时间:
2014-05-14 14:50:27
阅读次数:
463
-- 创建数据表,定义存储数据信息表的结构--CREATE TABLE T_Student (name
text, age integer, phoneNo text);--
删除数据表,通常在不需要使用某一个表的时候,才会用到,日常开发中极少会用到此命令--DROP TABLE T_Student...
分类:
移动开发 时间:
2014-05-14 11:20:03
阅读次数:
395
一、什么是json数据1、json:javascript object
Notation的简称2、json数据是一系列键值对的集合;3、json已经被大多数开发人员,在网络数据的传输当中应用非常广泛;4、json相对于xml来讲解析稍微方便一些5、它的基本数据格式是:{"name":"Michael...
分类:
Web程序 时间:
2014-05-14 10:49:20
阅读次数:
367