/* Pure C simple version of python 2.7.8 hash table *//* Sample usage: see main() */#include #include #include #include #define PyDict_MINSIZE 8#defin...
分类:
编程语言 时间:
2014-07-22 22:47:53
阅读次数:
341
题目: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 the tw....
分类:
编程语言 时间:
2014-07-22 22:47:33
阅读次数:
256
最近闲来无事,写了个移动端的事件库,代码贴在下面,大家勿拍。 1 /** 2 @version 1.0.0 3 @author gangli 4 @deprecated 移动端触摸事件库 5 */ 6 (function () { 7 "use strict"; 8 ...
分类:
移动开发 时间:
2014-07-22 00:12:34
阅读次数:
319
第一部分:认识jar中的MANIFEST.MF文件一、MANIFEST.MF文件的基本配置信息:1.一般属性: Manifest-Version:定义manifest文件的版本 Created-By:定义该文件的生成者,一般是由jar命令行工具生成 Signature-Version:定义jar文件...
分类:
其他好文 时间:
2014-07-22 00:04:33
阅读次数:
258
直接套KMP模板
#include
#include
#include
using namespace std;
int s[1000005],w[10005],next[10005];
int b,c;
void show()
{
int i,j;
i=0;
next[0]=-1;
j=-1;
while(i<c)
{
if(j=...
分类:
其他好文 时间:
2014-07-21 23:29:03
阅读次数:
334
在Android中,用string-array是一种简单的提取XML资源文件数据的方法。 例子如下: 把相应的数据放到values文件夹的strings.xml文件里,或是其他自定义的xml中都可以,以下操作方法相同。 <?xml version="1.0" en...
分类:
移动开发 时间:
2014-07-21 23:29:02
阅读次数:
528
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:
其他好文 时间:
2014-07-21 22:11:18
阅读次数:
289
##看看mongodb的基本操作###mongodb的基本使用包括几个方面增、删、查、改是重点CRUDC:insert()R:find()U:update()D:remove()###增加数据[root@blog~]#hostname
blog.unix178.com
[root@blog~]#mongo
MongoDBshellversion:2.4.6
connectingto:test
>showdbs
admin0.203125GB..
分类:
数据库 时间:
2014-07-21 19:48:22
阅读次数:
433
pomelo安装很简单npmremovecrcnpminstallcrc@0.3.0-gdnpmremoveexpressnpminstallexpress@3.4.0-gdnpminstallmongodb(如果安装失败先npmcacheclean再试一次)版本太高容易出问题服务器的package.json添加"mongodb":"0.3.0"{ "name":"chatofpomelo-websocket", "version":"0.0...
分类:
数据库 时间:
2014-07-21 19:45:42
阅读次数:
710
SELECTDISTINCTpapf.person_id,papf.employee_number,papf.full_name,su.user_id,res.responsibility_id,res.application_id,su.user_name,res.responsibility_nameFROMhr.per_all_people_fpapf,applsys.fnd_usersu,fnd_responsibility_vlres,fnd_user_resp_groups_allfurg,fnd..
分类:
数据库 时间:
2014-07-21 19:11:42
阅读次数:
241