Commit Graph

11756 Commits (df205e2335748e3ab265dafb820eda0330ca82c7)

Author SHA1 Message Date
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
Zaahir Moolla c6e5e95641 Remove forced 100% width on select to allow custom dropwdown arrow (#4229) 2017-05-25 22:31:41 +01:00
Zaahir Moolla be057cf5ec Fix log rewrite 2017-05-25 12:03:40 -04:00
Rob Emery e3cb2380e9 DatesRole: Adding support for partial time format (#4187)
* DatesRole: Failing tests for new relative date + time format

* DatesRole: Adding support for queries like "03 may 07:00"
2017-05-24 22:36:46 -04:00
PJ Hampton 07a5ba3e85 Add missing energy units. (#4223) 2017-05-24 18:06:25 -04:00
PJ Hampton 72729b7c16 Calculator: (URGENT) Fix math.js log|ln simplify issue. (#4183)
* Fix math.js simplify issue.

* Remove debug statements.

* Adds fact to the mix.

* Stash

* Fix greedy quantifier in trig and log/ln

* Don't trigger on anything with stuff after =

* allow triggering on <func> <number>

* Both sides of =

* Fix expressions.

* Tighten up triggering based on valid expressions.

* Remove dumper obj

* Tighten up word triggering.

* Allow only one currency through.

* Kill off symbols in js if allowed through.

* Allow negative numbers.

* Add support for negated numbers.

* Fix initialize issue.

* Refactor code slightly

* Tightened regexs

* Require space between log and input
2017-05-24 17:44:13 -04:00
PJ Hampton afddef774c Conversions: (VOLUME) Merge Volumes / Update Triggering (#4193)
* Merged vol/liquid vol

* Added triggering for volume units.

* Added in imperial gallon name

* Fix yaml file.

* Fix triggers based on feedback.
2017-05-23 12:37:05 -04:00
PJ Hampton 312edbc53c Calculator: Removes 0 on bail (#4169)
* Removed 0 on error. Saves user confusion.

* Add tracking pixel.
2017-05-22 16:17:30 -04:00
PJ Hampton 4c789c0c85 Conversions: add 'deg' to temperature aliases (#4218)
* Add deg c/f to temperature aliases.

* Add aliases for c/f (temperature)
2017-05-22 15:08:03 -04:00
Robert Badea a588c17f81 html_entities: Added new triggers & tests (#4203)
* added new triggers

* added new test
2017-05-22 14:40:24 -04:00
Shivam Shukla 9ca979f198 Timer: Changed query_raw to query_lc (#4165)
* Timer: Changed query_raw to query_lc
* also fixes #4188 (regression from ambiguous triggers)

* Updated regex and also solve issue #4188

* Added one more test case
2017-05-18 16:54:35 -04:00
Yashhwanth Ram 03c20c1587 Conversions: Add pressure units (#4214)
* Add extra units for pressure conversion (#4178)

* Fix KPa to kPa and Kbar to kbar

* Fix Kbar to kbar in customUnits
2017-05-18 12:35:01 +01:00