Commit Graph

11676 Commits (003713f78af77c062cfacf9a4c73ee9650d7c2d9)

Author SHA1 Message Date
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
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