码迷,mamicode.com
首页 >  
搜索关键字:sed head tail    ( 45574个结果
算法题-数组的最长非递减子序列
1 int binSearch(const vector &tail, int len, int key)// 2 { 3 int left = 0, right = len - 1; 4 int mid; 5 6 while(left > 1); 9 i...
分类:其他好文   时间:2014-09-27 04:32:09    阅读次数:230
thread_23
//多线程链表添加删除例子(使用条件变量实现互斥): #include #include #include #include #include typedef struct _list_head list_head;struct _list_head{ list_head *next; ...
分类:其他好文   时间:2014-09-27 01:26:19    阅读次数:214
nginx 学习五 filter模块简介和实现一个简单的filter模块
1 nginx过滤模块简介 过滤(filter)模块是过滤响应头和内容的模块,可以对回复的头和内容进行处理。它的处理时间在获取回复内容之后, 向用户发送响应之前。它的处理过程分为两个阶段,过滤HTTP回复的头部和主体,在这两个阶段可以分别对头部和主体 进行修改。 2 过滤模块执行顺序 2.1 ngx_http_output_(head, body)_filter_pt 先看一下ng...
分类:其他好文   时间:2014-09-26 23:56:18    阅读次数:353
Knockout事件传递参数的几种方式
<!DOCTYPEhtml><html><head><metaname="viewport"content="width=device-width"/><title>KoTest</title></head><body><h1>方法1</h1><uldata-bind="foreach:fruits"><lidata-bind="click:$root.clickHdr..
分类:其他好文   时间:2014-09-26 20:02:59    阅读次数:180
如何使用grep查询出不包含某匹配模式的文件
使用grep-c可以统计每个文件匹配模式的数量,通过这种方法可以抽取出不匹配模式的那些文件,因为不包含匹配模式的文件将显示为file:0vgrep() {case$#in 0|1)echo"Usage:`basename$0`patternfile[files...]"1>&2 ;; *)pattern=$1 shift grep-c$pattern"$@"|sed-n‘s/:0$//p‘..
分类:其他好文   时间:2014-09-26 12:12:29    阅读次数:183
Convert Sorted List to Binary Search Tree [leetcode] O(n)的算法
主要的思想类似中序遍历,先构建左子树,再构建当前节点,并构建右子树 TreeNode *sortedListToBST(ListNode *head) { int count = 0; ListNode * cur = head; while (cur) { count++; cu...
分类:其他好文   时间:2014-09-26 11:41:08    阅读次数:230
色彩的表示
<!DOCTYPEhtml> <html> <head> <metacharset="utf-8"> <title></title> </head> <body> <pre> 1、颜色是由数字来表示 2、颜色由3原色组成,红red、绿green、蓝blue、RGB 3、3原色各在[0-255]之间变化 综上:本质是组合3..
分类:其他好文   时间:2014-09-26 11:07:19    阅读次数:199
尺寸的表示
<!DOCTYPEhtml> <html> <head> <metacharset="utf-8"> <title></title> <style> #par{ width:600px; height:300px; background:green; } #son1{ width:300px; height:100px; background:blue; } #son2{ width:50%; height:50%; back..
分类:其他好文   时间:2014-09-26 10:49:29    阅读次数:205
CSS画圆角
<!DOCTYPEhtml> <html> <head> <metacharset="utf-8"> <title></title> <style> div{ width:300px; height:300px; border:1pxsolidred; } </style> </head> <body> <div>用CSS画圆角,目前主流浏览器已经支..
分类:Web程序   时间:2014-09-26 10:48:39    阅读次数:292
链表的创建,遍历,清除
node *creatline(int n){ node *head=(node *)malloc(sizeof(node)); head->data=rand()%100; head->next=NULL; node *p=head; int i=0; while (inext=(no...
分类:其他好文   时间:2014-09-26 01:05:57    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!