码迷,mamicode.com
首页 >  
搜索关键字:desing pattern    ( 7671个结果)
linux学习之grep egrep 命令及正则表达式
有幸在马哥面授班学习linux,马哥常告诉我们要做就做到最好,希望通过这些博文把自己的学习经历和内容好好的记录下来,也算是复习。grep:GlobalsearchREgularexpressionandPrintouttheline.文本搜索工具,根据用户指定的“模式(pattern)”对目标文本进行过滤,显示被模式匹配..
分类:系统相关   时间:2014-11-24 01:14:33    阅读次数:273
LeetCode: ZigZag Conversion 解题报告
ZigZag ConversionThe string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern...
分类:其他好文   时间:2014-11-23 17:30:46    阅读次数:289
LeetCode: Wildcard Matching 解题报告
Wildcard MatchingImplement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of charact...
分类:其他好文   时间:2014-11-23 10:27:55    阅读次数:174
马哥7-1
vim+#:打开文件,并定位于第#行vim+:打开文件,并定位于最后一行vim+/pattern:打开文件,定位至第一次被pattern匹配到的行的行首vim模式:编辑模式(命令模式):输入模式:末行模式:模式转换:编辑转输入:i:在当前光标所在字符的前面,转为输入模式a:在当前光标所在字..
分类:其他好文   时间:2014-11-22 23:19:17    阅读次数:271
设计模式 观察者模式
一、概述 观察者模式(Observer Pattern)是设计模式中行为模式的一种,它解决了具有一对多依赖关系的对象的重用问题。此模式的参与者分为两大类,一类是被观察的目标(Target),另一类是观察该目标的观察者(Observer)们。正因为该模式是基于“一对多”的关系,所以该模式一般是应用于....
分类:其他好文   时间:2014-11-22 18:51:38    阅读次数:258
bash的文本搜索工具
bash的文本搜索工具grep和egrep:首先为大家介绍grep的使用方式Grep的使用有两种格式:(如下)1.grep[OPTIONS]PATTERN[FILE...]2.grep[OPTIONS][-ePATTERN|-fFILE][FILE...][OPTIONS]:-v:逆反模示,只输出"不含"RE字符串之句子.-r:递归模式,可同时处理所有层级子目录里的文件...
分类:其他好文   时间:2014-11-22 02:06:03    阅读次数:159
prefixTreeEspan 频繁子树模式挖掘 A pattern growth 算法实现 mining embedded subtrees.
直接说这算法的作用吧, 上图的右边就是左边图的 ES(Embedded Subtree),相对应的ABC-1D-1-1E-1-1就是上图左边的Pre-Order-String,也是这个算法输入的数据格式,中间我们用空格隔开(A B C -1 D -1 -1 E -1 -1),-1就是表示回走。 这算法主要是用来挖掘频繁子树,也就是将一个树里的所有频繁子树找出来。原理就不说了,大家可以自...
分类:编程语言   时间:2014-11-21 18:59:06    阅读次数:203
a little summary of Django
url routing mechanismurl name/namespaceWe can name a url pattern in urls.py, and reference this name to generate a url in other places. This ensures n...
分类:其他好文   时间:2014-11-21 12:30:07    阅读次数:169
模板与继承之艺术——奇特的递归模板模式(CRTP)
奇特的模板递归模式(Curiously Recurring Template Pattern)即将派生类本身作为模板参数传递给基类。
分类:其他好文   时间:2014-11-21 01:29:53    阅读次数:473
awk使用方法
1.awk中引用外部变量,有三种方式awk 'pattern{action}' file1)awk '{print a,b}' a=111 b=222 file,此时BEGIN模块无法用该变量2) awk -v a=111 b=222 '{print a,b}' file3) a=111;b="网页...
分类:其他好文   时间:2014-11-19 21:49:29    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!