todo

Boyer-Moore实现

孤者浪人 提交于 2019-12-09 22:30:55
#include <iostream> #include <vector> #include <algorithm> #include <set> #include <string> #include <cstring> namespace patternMatch{ using namespace std; class boyerMoore{ public: boyerMoore(void):skip(NULL), shift(NULL), charMax(256){} int bmMake(const string &patternStr){ if( shiftMake(patternStr) < 0 || skipMake(patternStr) < 0) return -1; pattern = patternStr; } ~boyerMoore(void){ bmDesory(); } const int match(const string &target) const{ if(pattern.empty() || !shift || !skip || target.size() > pattern.size()) return -1; int targetLen = target.size(); int patternLen = pattern.size(); int

todo tags not working on eclipse and pydev

大憨熊 提交于 2019-12-09 12:24:41
问题 I'm using eclipse 3.7.0 on fedora and pydev 2.2.2 I tried to use the todo tags but it doesnt work. the todo tags on window > preferences looks fine. i can add a using left click beside the line. please advice 回答1: Comments with #TODO will only generate tasks if: The code is in a source folder (i.e.: in the PYTHONPATH) You have the builders turned on (or run the build manually from time to time). Reference: http://pydev.org/manual_adv_tasks.html The getting started guide ( http://pydev.org

git – order commits introducing “TODO”s by date

微笑、不失礼 提交于 2019-12-07 07:05:38
问题 I want to find commits that introduced added a "TODO" or "FIXME" comment and order them by date. I know that git log -G'TODO|FIXME' will show me commits that contain either comment and I could do something like git log --format='%ci' -G'TODO|FIXME' | cut -d' ' -f 1 But this will not respect that it should only be commits introducing such comments. Does anyone know how I can find only commits introducing such comments and order them by date? If the actual SHA-1 was included in that list, that

Vue基础,数据绑定,事件绑定

瘦欲@ 提交于 2019-12-06 14:23:19
<template> <div id="app"> <!-- 1.{{msg}}绑定数据--> <h2>你好vue--{{msg}}</h2> <br /> 这是一个根组件 <br /> <h3>{{obj.name}}</h3> <br /> <hr /> <!--2.数组循环遍历--> <ul> <li v-for="(item,index) in list"> <!-- index获取索引值--> {{index}}--{{item}} </li> </ul> <!--2.1数组嵌套遍历--> <ul> <li v-for="item in list1"> {{item.cate}} <ol> <li v-for="cars in item.list">{{cars.title}}</li> </ol> </li> </ul> <br /> <hr /> <!--3.条件判断--> <p v-if="no">现在你看到我了</p> <p v-if="true">现在你看到我了</p> <p v-if="ok">现在你看到我了</p> <br /> <hr /> <!--4.数据绑定--> <div v-bind:title="title">鼠标瞄上可以显示</div> <img src="//www.baidu.com/img/xinshouyedong

Eclipse tasks is empty

早过忘川 提交于 2019-12-06 07:35:10
I'm using Eclipse (Helios) and I added some tasks in my java classes, using // TODO: blah blah. Near the line counting, I have the little icon that indicates the tasks is recognized but I can't see them in the Tasks view (I tried the tasks view and Task list view they're empty). However, when I add a Task by right clicking near the line counting and choosing "Add a task", this new one appears in the "Tasks" view correctly! What am I missing to make this work? First, check the corresponding task tags defined in preferences: use the Preference page General/Editors/Structured Text Editors/Task

How to create more notes like TODO in Android Studio, for example CHECK or TEST?

岁酱吖の 提交于 2019-12-05 19:03:36
问题 Does anybody know how to create new tags similar to the "TODO" in Android Studio? I mean so that they would highlight as well and appear in the list of issues. I'd appreciate any tip or suggestion. 回答1: Yes, this is possible. Android Studio is based on IntelliJ and you can find a instruction on how to add a new pattern here: https://www.jetbrains.com/help/idea/defining-todo-patterns-and-filters.html From the link: In the TODO tool window, click the Filter TODO Items icon (Filter TODO Items)

git – order commits introducing “TODO”s by date

僤鯓⒐⒋嵵緔 提交于 2019-12-05 16:40:55
I want to find commits that introduced added a "TODO" or "FIXME" comment and order them by date. I know that git log -G'TODO|FIXME' will show me commits that contain either comment and I could do something like git log --format='%ci' -G'TODO|FIXME' | cut -d' ' -f 1 But this will not respect that it should only be commits introducing such comments. Does anyone know how I can find only commits introducing such comments and order them by date? If the actual SHA-1 was included in that list, that would be even more awesome. Andrew C This should get you closer. It isn't clear what you mean by "order

TODOs in Xcode: How to make them stand out?

蹲街弑〆低调 提交于 2019-12-05 12:34:32
问题 I am aware of the method of making them warnings, but I want to keep my legit warnings separate from my todos. I'm also have yet to see xcode 4 highlight the todos like everyone seems to think it does. And xcode's todo support only works on todos outside of functions... The build phase script that is outlined here is wonderful, but it makes the TODOs into warnings, and Objective C creates enough legitimate warnings that I don't want my todo's clogging up the list. Is there a way to make the

How to use ant to check for tags (TODO: etc) in java source

ぃ、小莉子 提交于 2019-12-05 09:23:35
it's common to see something like this in code, hopefully only during development: //XXX: not in production! String password = "hello"; // getActualPassword(...); ... catch(Exception e) { /* TODO: Auto-generated catch block*/ } I would like ant to be able to a) warn (on TODO: / FIXME: tags) or fail (on XXX: or simmilar) The build server is linux, home grown and based on ant. Would need to work at least on linux if not on windows. We also use perforce if an alternative is to block file commits. We also use eclipse, however I don't think you can make it a fatal error. (yes, there's the tasks

How to set Netbeans Action Item filters to ignore third party folders?

坚强是说给别人听的谎言 提交于 2019-12-05 01:57:38
I do not want to see errors and warnings for third party libraries in Netbeans Action Items list, so I created a filter as shown below: The filter is turned on, but I still see many items from node_modules folders. What am I doing wrong? How should the filter be configured to ignore everything coming from node_modules and vendor folders? Tho I found a solution to hide all parser errors in folder node_modules from this link: How do I Ignore the build folder in NetBeans 'Find In Projects'? But it will make Netbeans hides node_modules from project tree Steps: Tools > Options Miscellaneous Goto