Commit Graph

2279 Commits (52f0a1aec3cd4019900ab8d4df3cc828c9abe755)

Author SHA1 Message Date
loganom 63d7dd646e Anagram.pm: Improve readability 2014-07-01 01:43:19 +00:00
loganom 7a841f9bf2 Paper.t: is_cached 2014-07-01 01:25:00 +00:00
loganom 8a375d89c0 Paper.pm: add metadata 2014-07-01 01:24:26 +00:00
Matt Miller 63effd2d30 Reverse: add guard against empty remainder.
This fixes #521, plus regression test.
2014-07-01 08:10:44 +08:00
Dylan Lloyd bd14c275a5 be pretty 2014-06-30 16:29:34 -07:00
Jag Talon a30edc6d5e Merge pull request #518 from mwmiller/jira
JIRA: Move projects into YAML for easier maintenance.
2014-06-30 19:01:24 -04:00
Jag Talon 09b0da236c Merge pull request #514 from heytitle/bug-workdays-invalid-input
#394 Bug workdays invalid input
2014-06-30 18:12:09 -04:00
Jag Talon 6f34db58ed Merge pull request #384 from duckduckgo/mintsoft/blood
Blood Donor Goodie Continuation
2014-06-30 17:28:57 -04:00
Rob Emery 781c7bb3e7 BloodDonor: Fixing borders as suggested by @chrismorast 2014-06-30 21:57:05 +01:00
Jag Talon 82ec048d78 Merge pull request #480 from wilkox/chinese_zodiac
Add Chinese Zodiac goodie
2014-06-30 16:35:16 -04:00
Matt Miller 527889dbc3 NumberStyle: another pass at improving `understands` comments.
Based primarily on feedback from @moollaza:

- Straighten up the English a bit to make it more comprehensible.
- Move comments before the code they describe.
2014-06-30 07:06:24 +08:00
Matt Miller b2071e6d3b NumberStyle: improve documentation of the `understands` logic.
Updates to comments only (plus a little layout to make it flow better),
based on feedback from @moollaza
2014-06-29 20:38:32 +08:00
Matt Miller a7bd860d1d NumberStyle: numbery -> number_re.
A less whimsical name to make it easier for humans to read.
2014-06-29 20:25:23 +08:00
Rob Emery 713fedfc34 PrivateNetwork: Updating Tests for new css etc 2014-06-28 19:33:30 +01:00
Rob Emery 764450ac69 PrivateNetwork: markup & stylesheet changes 2014-06-28 19:28:37 +01:00
gdrooid 11cf29ee60 MD5: Style modification. 2014-06-28 15:58:04 +02:00
Matt Miller 015107ec37 ColorCodes: eliminate NBS_ISCC sub dictionaries from lookups.
By their own documentation, the NBS submodules contain idiosyncratic
color names which are not well-suited to a general purpose color code
search.

In particular, NBS_ISCC::M contains a color called 'email' which caused
a confusing result for 'HTML email'.

The main NBS colors are included because they seem reasonable enough as
color names.

This fixes #490 and possibly partially addresses #454 and #442, I guess.

Also includes some testing ideas from @mintsoft.
2014-06-28 19:10:37 +08:00
nishanths c473be2ae1 Add named capture regex
- also correct tests wording to make more sense
2014-06-27 23:19:51 -07:00
Pattarawat Chormai 5e096dda32 Refactor regular expession 2014-06-28 12:43:47 +07:00
Pattarawat Chormai 1b2a81963c Rename submodule, making more sense 2014-06-28 12:40:16 +07:00
mwmiller b4d1c581b5 Merge pull request #516 from duckduckgo/mintsoft/fortune
Fortune: Moving the file loading out of the sub so it's only loaded once
2014-06-28 08:51:24 +08:00
Matt Miller f7ceacea1d JIRA: Move projects into YAML for easier maintenance.
In addition to fixing #378, this should also make it easier if it
turns out that there are more JIRA trackers to be supported later.

The major overhead is the crazy-long generated regex trigger for
recognizing the tickets.
2014-06-28 08:20:18 +08:00
Dylan Lloyd 1ba01add51 wrote HexToDec & test 2014-06-27 17:11:32 -07:00
Zaahir Moolla fc962e7b0b Merge pull request #515 from duckduckgo/mintsoft/regex_css
Fix for #474
2014-06-27 16:54:03 -04:00
Jag Talon 852d03f61d Merge pull request #472 from wilkox/master
Add DNA reverse complement goodie
2014-06-27 16:38:46 -04:00
Matt Miller dee4314b42 NumberStyle: minimal changes for Conversions.
I am not claiming this is entirely the correct way to do this in this
package, just that it works fairly easily to expand the scope of the
Conversions goodie, as well.

Gonna need feedback from @moollaza and @mintsoft.

On the upside, I found a bug in the styler code by writing a test here!
2014-06-28 04:27:57 +08:00
Matt Miller cd1d480294 NumberStyler: add proof-of-concept
Considering how all of this works, I'm not sure roles are quite the
right fit. It seems like we might just want a shared "Utility" package
or namespace to let us have access to some common library functions.

DDG::GoodieRole::NumberStyle is a particularly horrible name because
it's not even a role!

Also, the comments suck.

But such is the nature of a proof-of-concept.
2014-06-28 04:27:57 +08:00
Matt Miller 13c9ea7f55 Calculator: superscripting for arbitrary terms.
This would be better with some proper parsing, but this resolves some
issues with the current HTML output, making it raise things to
arbitrarily high superscripting levels based on what it seems to look
like.
2014-06-28 04:22:37 +08:00
Matt Miller 31b3443764 Calculator: refactor the output preprocessing.
I think this makes it somewhat easier to follow the intent here.  We're
just trying to convert these two known strings into different output
formats, so wrapping that up seems like a good idea.
2014-06-28 04:22:37 +08:00
Matt Miller 8745daaaea Calculator: use proper quoting of regex chars.
The old version clearly worked, but it was clunky and somewhat
inexplciable.  While reading up on something else, I discovered `perldoc
quotemeta` which resolves this in a much more predictable and correct
way.
2014-06-28 04:22:37 +08:00
Rob Emery f9732ea9bc RegexCheatSheet: Switching our to my 2014-06-27 20:30:32 +01:00
Rob Emery 3e638e9283 Fortune: switching our to my 2014-06-27 20:29:21 +01:00
nishanths 5588470fb3 add ignorable word "display"
for query “How do I display a greater than sign in html”
2014-06-26 15:34:00 -07:00
nishanths b54999273c change queries, add more natural queries with "?" 2014-06-26 15:06:23 -07:00
Rob Emery b8f896a72a Fortune: Moving the file loading out of the sub so it's only loaded once 2014-06-26 22:04:17 +01:00
Rob Emery d7b24620f8 RegexCheatSheet: switching to softabs 2014-06-26 21:53:19 +01:00
Rob Emery 444ab4a2f4 RegexCheatSheet: Normalising the whitespace around the regex symbols 2014-06-26 21:51:02 +01:00
Rob Emery 9de10e2cf0 Regex: moving the CSS slurp out of the sub so it's only parsed once 2014-06-26 21:45:50 +01:00
gdrooid e173043d24 MD5: Wrap the md5 on small screens. 2014-06-26 20:44:20 +02:00
Pattarawat Chormai 5852576d88 Clean up waste space 2014-06-27 00:05:35 +07:00
Pattarawat Chormai 67f1b8b31c Return nothing if we find invalid date like Feb 30th 2014-06-27 00:05:34 +07:00
nishanths d2efbb9dac add support for natural queries
- triggers to ‘any’
- add more triggers
- regex
- add tests
2014-06-25 21:28:20 -07:00
nishanths 166ed7870e change scope of $html to fix build 2014-06-25 15:32:01 -07:00
Nathan Korth 26500906ad more max-height tweaking... 2014-06-25 16:47:26 -04:00
Rob Emery c91092f699 Merge pull request #511 from duckduckgo/jag/conversion-new-css
Conversions: Use new CSS classes
2014-06-25 19:27:24 +01:00
Rob Emery 90f893da43 BloodDonor: using new classes for colours! 2014-06-25 19:09:38 +01:00
gdrooid af5cedf62e MD5: Fixed example queries. 2014-06-25 19:18:21 +02:00
Zaahir Moolla 035b5b7732 Update example image in README 2014-06-25 11:36:09 -04:00
nishanths b6b021d774 explicit return 2014-06-25 08:14:41 -07:00
nishanths b915e13bc1 html cleanup again 2014-06-25 08:11:09 -07:00