Commit Graph

11667 Commits (d7f897af3bca87a9df4dca3f0676c1065cc0228b)

Author SHA1 Message Date
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
Philip Kirkbride dc8876002e Minecraft: British spelling of colour (#4272)
* add british spelling for colour on minecraft guide

* add tests for color & colour on minecraft

* fix hard tab
2017-06-14 10:43:45 +01:00
PJ Hampton 9b7556fbf0 Add speed base + units. (#4282) 2017-06-12 16:08:33 -04:00
Philip Kirkbride e71b0837aa add missing description on cpp-streams-io (#4269) 2017-06-11 16:23:51 +01:00
Aditya Tandon ddb04cf73f C++ Algorithms CheatSheet: Changes template and key values (#4201)
* changes template from reference to terminal

* changes done as req.

* changes doneas requested

* minor nit fix

* changes requested 2

* changes requested 3
2017-06-10 21:41:26 +01:00
Juho Leinonen 96e8729572 Add svn log command info (#4270) 2017-06-10 21:38:57 +01:00
Zaahir Moolla e9e378f3c3 Conversions: Allow "celcius" typo, updated tests (#4260)
* Allow celcisu typo, updated tests accordingly

* correct typo, move new tests below

* simplify celsius regex
2017-06-09 18:17:11 +02:00
Philip Kirkbride 5213080a17 Selenium white space triggering travis warning (#4266) 2017-06-09 17:59:21 +02:00
Philip Kirkbride 4ca6eb0296 Fix travis.cli warning which shows when tests run (#4265)
# Testing iptables....................... 1 WARNING

# 	 -> WARN: Trailing whitespace in key '-m conntrack --ctstate <state>\[,<state>\]... '
2017-06-09 17:00:09 +02:00
Zaahir Moolla 6955f0fded prevent text from overlapping dropdown icon (#4258) 2017-06-09 16:57:52 +02:00
Zaahir Moolla 828b7b4cbb fix metric/imperial ton aliases (#4263) 2017-06-08 20:04:38 +02:00
Aastha 2ce7733531 resolved issue #4247 (#4252) 2017-06-07 21:03:23 +01:00
PJ Hampton 60db2ef0ba MolarMass: Fix syntactical error. (#4238)
* Fix syntactical error.

* Decuddle if/elsif/else blocks
2017-06-05 23:08:50 +02:00
PJ Hampton 6d9896cb8b 2048: Tweaks before production (#4027)
* Added additional trigger.

* Fixed container placement / alignment.

* Updated tests.

* Add async start.

* Revert "Add async start."

This reverts commit 54b3edb88221051393d818ccff35d9ae45d10049.

* Check for mobile device and return before onShow

* Ensure we return value from DDH.failed

* remove trailing spaces
2017-06-05 22:49:57 +02:00
PJ Hampton 8c5ac1d651 Conversions: Broaden Triggering (#4239)
* Add triggers to list.

* Remove smart match.

* Stash.

* Broaden triggering.

* Update test formatting.

* Revert "Update test formatting."

This reverts commit 390186743c07bffa5d57025e04926d2473a3ff2e.
Reverting because this creates big conflicts in the PR. We can address
the formatting later

* simply language trigger loading

* Add acronyms for teaspoon

* remove trailing spaces

* Add test for abbreviated teaspoon and tablespoon

* remove trailing spaces
2017-06-05 20:18:18 +02:00
Parth Mehta db13126409 Conversions Suggestion: (ANGLE) - Add Missing Units (#4224)
* added custom units for angle conversions

* added triggers for angle custom units

* added front-end tests for custom angle units

* Refactoring. Categorized queries by the quantity they represent

* minor update

* added trigger for the word - microarcseconds

* replaced exponent-based values with decimal-based ones

* Updated tests to use defined units

* added the missing commas

* removed duplicate e+12 from test spec
2017-06-03 15:35:10 +01:00
PJ Hampton 092124b817 Calculator: Fix non-whole expression rewriting (#4241)
* Fix non-whole expression rewriting.

* Add pixel to check for failure.
2017-06-03 10:00:43 -04:00
PJ Hampton 3869ad10ac Fix preprocessed query edgecase. (#4237) 2017-06-01 14:23:53 -04:00
Aditya Tandon 43e2c6e08f Updating the aliases for sublime 2 (#4119) 2017-06-01 01:49:11 +02:00
Joshua Liu dbe30f8db7 Molar Mass: New Molar Mass Instant Answer (#4219)
* Add Molar Mass Calculation

* Add molar mass algorithm

* Update Molar Mass Handler

* Molar Mass: added input sanitization

* Molar Mass: Fix sanitation

* Molar Mass: Added tests, Changed mass table, Changed sanitation process

* Molar Mass: Documentation and Formatting

* Molar Mass: Fixed an input sanitation bug and changed instant answer format

* Molar Mass: Remove Boilerplate Comments

* Molar Mass: move data outside of code and add common compound support

* Molar Mass: Change regular expressions

* Molar Mass: Update YAML Format
2017-05-31 20:13:25 +01:00
PJ Hampton c1287cb1cc Allow keyboard input in firefox. (#4235) 2017-05-31 14:54:03 -04:00
PJ Hampton 900c5a3da5 Calculator: Fixes onload js issue / Patch triggering (#4230)
* catch value error on load.

* added quick win triggering edge cases from pixel logs.
2017-05-29 07:27:40 -04:00