Commit Graph

11688 Commits (27c5c308dea1c2c23790019c56735141f20c6524)

Author SHA1 Message Date
PJ Hampton 27c5c308de Conversions: Add case sensitivity. Fix ambiguity collisions (#4406)
* Check in work.

* Fix casing ambiguity.

* Fix ambiguity selection.

* break out of outer loop.

* fix YAML
2017-08-08 16:37:13 -04:00
PJ Hampton d17dde90b6 Conversions: US locale defaulting (#4372)
* Add tests to drive development.

Check in work.

Fixed temp triggering ambiguity.

Add experimental conversions US default.

Update the tests.

* Update based on feedback.
2017-08-08 09:46:44 -04:00
Joseph Wynn 6faa132814 Add a link to the DuckDuckHack Docs (#4389)
It took me a about an hour of trial-and-error before I found a link to the _DuckDuckHack Docs_ book inside the template module. I think it would be way more useful if this link was nearer the top of the README.
2017-08-07 14:35:39 +01:00
gargaml 2e24250973 New Aptitude Cheat Sheet (#4381)
* adding aptitude cheat sheet

* Coherence between section list and sections

* minor typo

* added a link towards Debian reference
2017-08-06 22:13:13 +01:00
ArjunPanickssery 0f84244ba8 New Chess Titles Cheat Sheet (#4390)
* Create Chess Titles Cheat Sheet

* Rename chess_titles.json to chess-titles.json

* Remove alias "chess titles"
2017-08-06 22:09:45 +01:00
PJ Hampton 11d144a6dd Text Converter: Add padding to binary output (#4398)
* Add padding to binary.

* add right margin to dropdown labels

* Refactor.
2017-08-01 16:11:44 -04:00
PJ Hampton cd0871b9f4 New Timezonetime IA (#4393)
* Check in shivam99aa's work.

* Finish timezone/time IA.

* Refactor Timezonetime.pm

* fix indentation
2017-08-01 12:59:49 -04:00
PJ Hampton 1b10220bdc Add dark theme. (#4355) 2017-07-31 22:17:42 -04:00
PJ Hampton 5b24303665 Remove duplicate Atom cheat sheet. (#4394) 2017-07-29 16:50:12 +02:00
CedArctic 3cd04671c6 Pandas: Fixed typo (#4388)
* Fixed typo in pandas.json

There was a trailing ")" on line 95 as reported in issue #4382.

* Fixed typo

* Fixed a typo #2
2017-07-27 16:53:31 +02:00
Aditya Tandon 54e02a8507 Timer: sets min to 1 (#4375) 2017-07-25 18:46:13 +01:00
PJ Hampton 5d9089c6dd Update travis config. (#4373) 2017-07-25 13:35:02 -04:00
PJ Hampton 003713f78a Conversions: Add DTR and Custom Digital Units (#4359)
* Add Data Transfer speed conversions.

* Add *bi digital units.

* Finish unit + user testing.
2017-07-18 12:08:02 -04:00
PJ Hampton 6ba96f8286 Allow asinh and acosh through when triggering. (#4360) 2017-07-18 11:57:22 -04:00
PJ Hampton d5129df6e4 Improve coverage. (#4363) 2017-07-18 11:56:43 -04:00
Philip Kirkbride b082c3013e Palindrome: Convert to Structured (#4352)
* Convert palindrome to structured, tabs, negative tests

* remove comments, simplify subtitle function
2017-07-15 23:14:19 +01:00
Zaahir Moolla db434a22d0 Calculator: Fix text selection/copy for Firefox (#4351)
* Ensure mouseup doesn't remove focus for Firefox

* Use hover and selected classes to style calc input

* Ignore meta keys to allow copying in Firefox
2017-07-14 09:44:29 +01:00
PJ Hampton 9c581d9564 Calculator: Various Fixes (#4349)
* Fix weird error message.

* Stop algebra overtriggering.

* Fix overflow error.

* Fixed tests.

* Conclude big patch.

* Patch review bugs.
2017-07-13 18:04:32 -04:00
PJ Hampton 588c354075 New Text Converter IA (#4335)
* Initial commit.

* Prototype up and running.

* Check in work.

* Update work.

* Checking in work.

* Updates based on feedback.

* Code in design.

* Update padding / margin on controls.

* fix mobile styles
2017-07-13 17:46:49 -04:00
Lisa Georgiades b9297e004a Factors: Add support for negative numbers. Add negative cases and tidy (#4245) (#4299)
* Add support for negative numbers. Add negative cases and tidy (#4245)

* Remove extraneous regex match
2017-07-13 13:12:18 -04:00
PJ Hampton 6307864f65 Conversions: Updates UI + Triggering (#4345)
* Fix floz + add n miles.

* Support fractions.

* Update conversions.

* Update based on feedback.
2017-07-13 07:51:16 -04:00
Philip Kirkbride d7f897af3b converting random_name to return structured answer (#4061)
* converting random_name to return structured answer

* altSubtitle typo fix

* altSubtitle typo fix
2017-07-13 07:50:27 -04:00
Philip Kirkbride ab9ce37808 Convert poker goodie to a structured answer, add negative tests (#4350) 2017-07-13 07:43:13 -04:00
Kyle Daruwalla 215857e8dd ColorCodes: Triggers on any query ending in "color <name>" (#4220)
* ColorCodes: Triggers on any query ending in "color <name>"

- Added logic to prevent triggering when excess words are involved in
  the sentence that are not expected

Fixes #3294

* - Fixed regex for filler words to be simpler
- Fixed filler count return statement by removing the double negative

* Simplified regex to catch filler words

* Fixed whitespace changes

* Added more tests for when the IA should not trigger. Existing tests already sufficiently cover when the IA should trigger.
2017-07-12 07:19:17 -04:00
PJ Hampton af0a70222d Calculator: Fixes up trig functions. (#4339)
* Fixes up trig functions.

Replace regex.

* Fixed 1/(x) issues.

* Update dodgy lookahead.
2017-07-10 18:15:49 -04:00
PJ Hampton 8e5cd3f431 Add factorial support. (#4331)
Support factorials. Fix - remove bug.

Fixed a couple of iafd data issues.
2017-07-03 14:02:33 -04:00
PJ Hampton cf799ad23b Conversions: fix spelling. (#4332) 2017-07-02 21:01:55 +01:00
PJ Hampton 0fd68b0912 Conversions: Add expanded triggers. (#4328)
* Add expanded triggers.

* Update triggering / tests.

* Remove convert as a trigger.
2017-06-29 17:29:18 -04:00
PJ Hampton 65f69dab27 Calculator: Various improvements. (#4318)
* Various improvements.

query_nowhitespace removal workaround.

Updated code.

Update code.

Fix exponential state when squaring/cubing

Fix calculator bugs.

* Fix log.

* Various improvements.

* Update variable name.

* Remove debug statements.

* Fix logs/lns on front-end.
2017-06-29 16:55:27 -04:00
PJ Hampton 6457fdeb33 Conversions: Add general triggers. Add aditional aliases. (#4327)
* Add general triggers. Added aditional aliases.

* Remove blocking legacy code.

* Add french word for converter.

* Add missing closing brackets
2017-06-28 11:25:58 -04:00
PJ Hampton e1fe0c8fc0 Add failing tests. (#4325)
Update triggering.

Update triggering scheme.
2017-06-28 09:41:51 -04:00
Jon Kalfayan e8abd62e97 Paper: Fix letter size to be correct (#4323)
* fix letter paper size

* fix test to reflect new US letter values

* make notation consistent
2017-06-27 16:45:45 +09:00
PJ Hampton 9de55b6dce Conversions: Long numbers instead of e notation. (#4326)
* Limit e notation.

* Use Math.max instead of ternary
2017-06-26 17:59:07 -04:00
PJ Hampton 799b7e8a8f Removed duplicate from lang triggers. (#4322) 2017-06-23 18:38:30 -04:00
PJ Hampton ee9d459966 Tips: Add interactivity (#4155)
* initial commit.

* Fixed NaN issue with bill amount.

* Finish up tips.

* Fixed markup.

* Remove mathjs as dep

* Finishing touches...

* Tweak design.

* Add class

* Add simplified css

* overhaul ui

* Add total per person.

* Add secondary text

* Update input class.

* Add further bindings.

* Removed rouge file.
2017-06-23 17:12:52 -04:00
Joshua Liu 9edc2f66bc Molar Mass: Resolve conflicting triggers issue and add new triggers (#4250)
* Molar Mass: Remove conflicting triggers and update tests

* Molar Mass: Increased flexibility of triggers

* Molar Mass: forgot the apostrophe

* Molar Mass: Fix Regex

* Molar Mass: widen triggers
2017-06-23 14:32:59 +01:00
Philip Kirkbride db93ca9b76 Don't trigger log or lg without brackets (as these don't work) (#4249)
* Add sed command example

* Move to file section

* Don't trigger log without brackets. 

Quick fix for issue #4246

* Remove test that uses log(10)

* Update Calculator.t

* dont trigger ln without brackets either

* remove ln and log without bracket tests

* previously removed wrong test bring it back
2017-06-22 16:01:58 +01:00
Billy Barbaro 9a401b5caf Calculator: Comma in Floating Point Numbers (#4199)
* Using detected number style to make sure queries use a . for a decimal and a , to seperate thousands

* Now using method in number styler to prepare numbers for computation.
2017-06-22 15:46:49 +01:00
Nalin Bhardwaj fc7166c2e8 Fixex dark mode SVG colors (#4276) 2017-06-21 20:36:38 -04:00
PJ Hampton e3b649c2ec Conversions: Enable single unit triggers (#4316)
* Add failing tests.

Enable single unit queries.

Add units for triggering.

* Update indentation.
2017-06-21 14:30:34 -04:00
PJ Hampton 7de983bec4 Conversions: Distinguish between Imperial/US units in volume (#4310)
* Fix Imp/US Gallons.

* Fix tbsp/tsp/cups (imp/us)
2017-06-20 16:35:48 -04:00
PJ Hampton 5daa945081 Add plural aliases (#4285)
Add speed generic trigs.

Update the natural language triggering scheme.

Update yml file. Remove dep

Reduce yaml file.

mint/mool refactor requests.

Update stuff.
2017-06-20 16:25:14 -04:00
PJ Hampton f4effd1f7d Workaround math.js erg def bug. (#4297) 2017-06-20 16:23:43 -04:00
PJ Hampton 999c6d86bb Add generic contributing md page. (#4290)
Add lower part as markdown.

Update heading.

Add update.
2017-06-20 15:30:21 -04:00
PJ Hampton 4680490b7a reduced font-size (#4314) 2017-06-20 15:03:24 -04:00
Divya Sasidharan 733a5bb618 ColorCode: Fixed alignment of columns in IA (#4306)
* fix: ColorCode alignment of columns in IA

* fix: Updating indentation
2017-06-19 22:02:05 +01:00
Aditya Tandon 125722d95e CheatSheet: New Systemd Cheatsheet (#4024)
* new systemd cheatsheet

* small description change and some editing to avoid duplication

* adds aliases

* fixes the typo

* small nit fix
2017-06-18 23:11:43 +01:00
Aastha 4c081b9598 change in Venezuela timezone (VET) (#4296) 2017-06-18 18:38:02 +01:00
Zaahir Moolla 1c867979c1 Conversions: Support single unit input, case-insensitive fallback check (#4261)
* Allow celcisu typo, updated tests accordingly

* Store regex captures in variables

* Allow single unit inputs through guard

* Pass through single unit input to frontend

* Explcitly match guard regex, better check for valid result

* Cleanup whitespace and indentation

* Lowercase symbols that are case-insensitive

* Fix and simplify guard regex

* Better handling of named captures, ensure left unit is not only match

* Case sensitive match first, fall back to lowercase match on symbol

* fix indentation

* remove redundant m on regex match

* Removed default if duplicate.
2017-06-15 15:51:24 +01:00
Aastha 07bbf47634 TimezoneConverter: fixes #4210 fixed error in timezone display (#4262)
* fixed error in timezone display

* minor change

* added new test cases
2017-06-14 21:38:18 +01:00