DescriptionMirko works on a pig farm that consists of M locked pig-houses and Mirko can't unlock any pighouse because he doesn't have the keys. Custom...
分类:
其他好文 时间:
2015-04-19 21:20:31
阅读次数:
235
1, primary key 可以带空格 做为下表 但field就不行 2,dev_node仅为下标 'primary key' => array('nid'), 'foreign keys' => array( 'dnv_node' => array( 'table' => 'node', 'c....
分类:
其他好文 时间:
2015-04-18 19:04:34
阅读次数:
148
problem:
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less th...
分类:
其他好文 时间:
2015-04-17 18:28:13
阅读次数:
142
http://blog.csdn.net/britainwei/article/details/44591297
http://www.jianshu.com/p/31cbbbc5f9fa/
准备:
(1)注册Github账号
(2)下载Github for Mac客户端并登录
这个时候可以从Github上Clone in Desktop ,把工程clone到电脑...
分类:
系统相关 时间:
2015-04-17 15:46:35
阅读次数:
235
Git & GitLab 使用及规范Git安装配置及基本使用
从官网下载安装包,手动完成安装。
打开Git Bash命令行工具,执行命令ssh-keygen -t rsa -C Email-Addresss生成一个密钥对。
登录到GitLab,点击右上角你的用户头像,点击Edit Profile settings,点击SSH Keys,点击Add SSH Key,填写Title栏,复制用户目录下.s...
分类:
其他好文 时间:
2015-04-17 14:02:51
阅读次数:
286
public static string[] GetCategories() { Dictionary itemMap = new Dictionary(); int count = itemMap.Count; string[] keys = ne...
分类:
编程语言 时间:
2015-04-17 13:05:41
阅读次数:
123
在mac下安装/更新ruby环境确实是挺繁琐的。首先mac os x是自带ruby环境的, 我们通过rvm(ruby version manager)来对ruby的版本进行管理只要执行下面2句就行了:$ gpg2 --keyserver hkp://keys.gnupg.net --recv-key...
分类:
系统相关 时间:
2015-04-17 09:31:06
阅读次数:
179
From:http://stackoverflow.com/questions/12629692/querying-an-array-of-arrays-in-mongodb数据db.multiArr.insert({"ID" : "fruit1","Keys" : [["apple", "carr...
分类:
数据库 时间:
2015-04-16 11:51:42
阅读次数:
325
/usr/local/redis/bin/redis-cli -h xx.xx.xx.xx KEYS "*floor*" | xargs /usr/local/redis/bin/redis-cli DEL
分类:
其他好文 时间:
2015-04-15 16:34:32
阅读次数:
91
服务器系统选用ubuntu 系统
搭建步骤:
1.安装git
sudo apt-get install git
2.创建git用户,运行git服务
sudo adduser git
3.创建证书登录
收集所有要登陆用户公钥,就是id_rsa.pub文件,把所有公钥导入到/home/git/.ssh/authorized_keys文件里,一行一个。
cd git...
分类:
其他好文 时间:
2015-04-14 09:58:08
阅读次数:
210