源代码基地 http://mirror.cogentco.com/
想要什么代码下载什么代码
ApacheCPANCentOSDebianDebian
CDEPELFedoraFreeBSD
GNUMySQLOpenSSHOpenSSLPHPRFC'sUbuntuUbuntu
Releases...
分类:
其他好文 时间:
2015-03-11 21:48:16
阅读次数:
124
题目:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the fo...
分类:
其他好文 时间:
2015-03-11 17:19:41
阅读次数:
143
看过好几遍了,觉得挺实用的,记录备忘一下。1.开启很多个goroutine 之后,等待执行完毕type WaitGroupWrapper struct { sync.WaitGroup}func (w *WaitGroupWrapper) Wrap(cb func()) { w.Add(...
分类:
其他好文 时间:
2015-03-10 15:26:09
阅读次数:
172
实现步骤:
1.服务器端:sudo apt-get install portmap
2.服务器端:sudo apt-get install nfs-kernel-server
3.客户端:sudo apt-get install nfs-common
4.服务器端配置:sudo gedit /etc/exports
添加:/home *(rw,sync,...
分类:
系统相关 时间:
2015-03-09 16:14:35
阅读次数:
243
很简单呢的一道题,定义了一个结构体数组,用vector来做为一个牌堆。将尾部作为牌堆的顶部。
要注意,当最后只剩一堆牌的时候,答案中的pile不加s
#include
using namespace std;
const int maxn = 60;
int b[60];
struct pile {
vector a;
};
int main() {
ios::sync_wit...
分类:
其他好文 时间:
2015-03-09 14:28:41
阅读次数:
133
关闭虚拟机防火墙 lokkit --disabled配置NFS服务端 建立一个目录用来共享 存放根文件系统cd / mkdir rootfs配置NFS共享目录gedit /etc/exports写入/rootfs*(rw,sync,no_root_squash) //其中/rootf...
分类:
其他好文 时间:
2015-03-08 00:02:08
阅读次数:
486
本文档的目的是去文档化一个客户端请求ADB服务器往adbd守护进程发送文件相关的请求。请查看OVERVIEW.TXT文档去查看(ADB服务器和adbd守护进程)相关信息,查看SERVICES.TXT去学习其他更多的可用请求。...
分类:
数据库 时间:
2015-03-07 20:04:52
阅读次数:
202
Symmetric Tree问题:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).思路: dfs我的代码:public class Solution { ...
分类:
其他好文 时间:
2015-03-07 19:58:45
阅读次数:
135
安装环境操作系统:ubuntu 14.04.1 server amd64安装jdk在安装maven之前,必须确保已经安装过jdk。安装jdk的方法请参考文章《在ubuntu中安装jdk》。下载mavenwget http://apache.fayea.com/apache-mirror/maven/...
分类:
系统相关 时间:
2015-03-06 20:34:03
阅读次数:
213
1. 简单的爬虫 1. xampp开启php的cURL -> xampp/php/php.ini 搜索curl去掉分号即可 2. cmd D: -> cd xampp -> cd php php -f ../htdocs/mirror/curl/curl.php > ../htdocs/m...
分类:
Web程序 时间:
2015-03-06 19:01:13
阅读次数:
157