Commit Graph

2279 Commits (52f0a1aec3cd4019900ab8d4df3cc828c9abe755)

Author SHA1 Message Date
David Wilkins 9139b9d215 Merge remote-tracking branch 'upstream/master' into chinese_zodiac 2014-06-19 11:36:22 +08:00
Nathan Korth 363fe0de49 fix for broken columns 2014-06-18 09:26:10 -04:00
Matthew Ramina f2ed81db77 SubnetCalc: Using a table to line up the data 2014-06-17 18:03:40 -04:00
nishanths a0e186cc0e tiny regex global flag fixes 2014-06-17 21:46:17 +05:30
Zaahir Moolla 4053bd5eeb Merge pull request #499 from gdrooid/capitalize
Renamed Capitalize as Uppercase (issue #489)
2014-06-17 10:04:53 -04:00
Matthew Ramina 46061cd19c SubnetCalc: Fixed tests 2014-06-16 20:38:45 -04:00
Jag Talon 154f75fc1a Merge pull request #503 from duckduckgo/jag/calc-link
Calculator: Bring back the link for the result.
2014-06-16 17:39:54 -04:00
nishanths d4fedd24d4 add zci__mor-at class for links 2014-06-17 02:59:20 +05:30
Matthew Ramina 435df957cf SubnetCalc: gray labels, not bold them
Fixes #447
2014-06-16 17:03:41 -04:00
jagtalon 668d8556f1 Calculator: Fix failing tests. 2014-06-16 20:35:27 +00:00
jagtalon 7b84015498 Merge branch 'master' into jag/calc-link 2014-06-16 20:34:40 +00:00
nishanths 617d27c394 update test files for new triggers 2014-06-17 02:03:57 +05:30
jagtalon 8d10fdeeb7 Calculator: Bring back the link for the result.
Clicking on the result should show the result as a clickable link that will replace the query. (This is how it used to work before.)
2014-06-16 19:26:57 +00:00
mwmiller 8d0b4fbb0f Merge pull request #492 from duckduckgo/jag/travisci-libmpfr
TravisCI: Add libmpfr-dev to the dependencies.
2014-06-17 00:52:43 +08:00
mwmiller 95ad813ffc Merge pull request #500 from psatish/master
Add support for hex values in unicode query #138
2014-06-17 00:49:14 +08:00
gdrooid 94ca947a56 Added MD5 IA and it's tests. 2014-06-16 18:40:59 +02:00
gdrooid f2b4c95256 Added 'allcaps' and 'all caps' as triggers. Updated tests. 2014-06-16 18:13:02 +02:00
U P Satish f425e32f9f Add support for hex values in query #138 2014-06-16 10:59:24 -04:00
nishanths 808701d756 add new triggers - cross ref. #478 2014-06-16 20:07:26 +05:30
Jag Talon 52573a9173 Merge pull request #497 from gdrooid/GUID-fix
Fixes issue #486
2014-06-16 10:28:57 -04:00
Jag Talon 029ca03ce5 Merge pull request #498 from mwmiller/squared
Calculator: add 'squared' and 'score'.
2014-06-16 09:45:42 -04:00
nishanths 2d1101dd42 Fix regex g flags, comments, attribution
- Fixed global flag on regex subs
- Change the Decode module to the old module name (in case it is linked
by someone)
- Fix attribution links, add ‘crazedpsyc’ to attribution section in the
new module
- Add a comment about the separation of the encode and decode
functionality
- Fix test file for the module name change
2014-06-15 18:17:16 +05:30
mwmiller c1841f9aef Merge pull request #496 from gdrooid/master
Fixes issue #491 - Mixed line endings in Reverse.pm
2014-06-15 18:16:35 +08:00
gdrooid a3f71d874c Added 'capitalize' to TitleCase triggers. 2014-06-15 12:07:08 +02:00
gdrooid 0a5735c57b Renamed Capitalize as Uppercase (issue #489) 2014-06-15 11:57:34 +02:00
David Wilkins 2183c71426 Tweak CSS 2014-06-15 13:08:59 +08:00
Matt Miller a32f0f8c30 Calculator: add 'squared' and 'score'.
This is an attempt to add the requested "squared" operation without all
of the nasty trigger changes I introduced last time I tried.

Also added a constant for 'score' as both an attempt to better
understand that trigger regex and an historical oddity.

It's clear that if I want to continue with this I should make a lexer.
2014-06-15 04:57:02 +08:00
gdrooid 964fcb9476 Fixes issue #486 2014-06-14 18:16:45 +02:00
gdrooid 8b13d5df38 Fixes issue #491
Changes all the line endings to unix line endings.
2014-06-14 14:40:31 +02:00
Jag Talon eeb48ab1c2 Merge pull request #495 from duckduckgo/jag/calc
Revert "Calculator: improve triggers; add 'squared'"
2014-06-13 16:48:34 -04:00
jagtalon adb6329a7c Revert "Calculator: improve triggers; add 'squared'"
This reverts commit 5e6c1abb9a.

Conflicts:
	t/Calculator.t
2014-06-13 20:38:58 +00:00
nishanths 274709a52a add 'html entity' trigger to Decode 2014-06-13 21:47:17 +05:30
nishanths 894c954c7f more freedom in hex inputs 2014-06-13 21:05:00 +05:30
Jag Talon 98fbd942ad Merge pull request #488 from mwmiller/calc_updates
Calc updates
2014-06-13 11:10:05 -04:00
nishanths 01cd73383d Decoder added html div tags 2014-06-13 20:02:38 +05:30
nishanths 41a7ffcb12 update HTMLEntitiesDecode - safer checks, comments 2014-06-13 19:58:14 +05:30
nishanths c0b15421eb Add separate modules HTMLEncode, Decode; URLEncode
– Add HTMLEntitiesDecode.pm and .t
– Add HTMLEntitiesEncode.pm and .t
– Add URLEncode and .t
– Remove HTMLEntities.pm and HTMLEntitiesCode.pm and their test files
2014-06-13 19:29:01 +05:30
David Wilkins 04f4416396 Tweak styling 2014-06-13 11:46:45 +08:00
David Wilkins c2dacdb4ab Restrict supported year range 2014-06-13 11:32:24 +08:00
jagtalon 5cb0f137de TravisCI: Add libmpfr-dev to the dependencies. 2014-06-12 23:12:34 +00:00
nishanths 9af4fdc4b5 Revert "initial commit ScreenResolution Goodie"
This reverts commit 151e2f18ae.
2014-06-12 12:52:30 +05:30
nishanths 151e2f18ae initial commit ScreenResolution Goodie
– Initial commit perl module
– Initial commit test file
– Displays the “maybe inaccurate” message for android devices by using
JavaScript to get the user-agent
– Contains commented out lines of JavaScript code that can be enabled
to not show any resolution numbers if device user-agent is Android
2014-06-12 12:49:24 +05:30
nishanths 56cb419bae HTMLEntitiesCode.pm regex for better hits
- regex to clean up whitespaces and to remove filler words (for, of)
- symbol and sign presence/absence in query does not make a difference
in hits
- all ‘-‘ are replaced by ’ ‘.
- accented_chars keys have no spaces now
- updated triggers
2014-06-11 18:04:49 +05:30
nishanths 769b994b8c update HTMLEntitiesCodes.pm with substring replace
HTMLEntitiesCodes.pm
1. Substring replacers
A few practical examples as a result of this change — the following
query pairs will now lookup the same key: ‘trademark symbol’ and
‘trademark’ // ‘up-down arrow’ and ‘up down arrow’ // ‘pound sign’ and
‘pound’, and so on…

2. Update the keys for this change (extraneous keys removed).
2014-06-11 02:11:40 +05:30
Lars Jansøn Engvik 3a4d7bef4e Removing outline 2014-06-10 15:04:07 +00:00
Matt Miller 300cba4744 Calculator: style up the answer a bit.
This mostly just adds style to the HTML answers to be more in line with
other IAs.

The test changes are because, in general, the HTML answer is exactly the
same as the text answer, just wrapped up in some HTML. We're mostly
concerned with if we get correct answers, not how they happen to be
wrapped for HTML display.

In cases where that's different (the <sup> regression) we do more
thorough testing on the contents.

Also, removed one repeated test.

I'm starting to think this "apply_css" and maybe even "wrap_html" should
be in a role somewhere.
2014-06-10 20:42:52 +08:00
nishanths e3a7df2f3f Update triggers, fix U-acute value
Goodie module:
- remove ‘html’ trigger
- add ‘html reference’ trigger
- create separate startend and start triggers
- move trigger and handle closer
- correct U-acute

Test file:
- update test queries for new triggers
2014-06-10 17:33:29 +05:30
Matt Miller 45175d18c8 Calculator: reset alarm when calculation is complete.
Total run time may well exceed 1 second with the pre- and post-
processing, but this makes it significantly less annoying to try things
out with `duckpan query`.

Also adds a test which shows the `duckpan query` parameters I was
trying, showing how `squared` is applied (and may result in confusion)
2014-06-10 09:30:22 +08:00
Jag Talon ddba2e8735 Merge pull request #469 from duckduckgo/jd/dice
dice: larger font size
2014-06-09 21:13:05 -04:00
Jason Dorweiler 5fdefc4655 dice: wrap total to new line on mobile 2014-06-09 21:10:23 -04:00