Commit Graph

11775 Commits (39df16f326147bc33c500539988c3b5a0ddc549e)

Author SHA1 Message Date
PJ Hampton 39df16f326 Update floz definition. (#4492) 2017-09-20 17:01:26 -04:00
gargaml 549ee53266 Roman numerals (#4413)
* First shot at improving roman numeral IA.

Added a new converter.
Added new default settings.
Added some tests.

* Added un upper bound on arabic numbers.

* Remove some typo…

* Added some new triggers.
Allowed uncorrect roman number to load the UI anyway.
Fixed a test.

* Added new triggers.
Fixed regular expressions involved in the UI configuration.
Added new tests.

* Renamed file.

* Variables defined outside the handle function.

* Modified template.

* Init logic now runs only once.

* Added a prefix to ensure there are no collisions.

* Fixed tests.

* Added more agressive validation on user inputs.

* Fixed a test case for aggressive validation.  The ia doesn't trigger is
the input is invalid with respect to roman numeral system.

* Removed forEach operation (replaced with a for loop).

Removed firstLetterUpperCase in favor of DDG util capitalize.

* Fixed design on narrow screens.

* Added a new test (roman man => undef).

* Fixed regular expressions to avoid displaying if roman or arabic is used
without numbers.

* Added warnings when inputs are out of range.

* Added a state variable for warnings.

* Empty if removed.

* Fixed regexps.

* Fixed subtitle.

* Css fixed. Both for mobile and desktop.

* Fixed tests.

* Use horizontal layout on desktop, vertical on mobile
2017-09-19 11:29:52 -04:00
tossj 2287be95c3 TextConverter: Sorted static trigger words into to and from categories (#4490)
* TextConverter: Sorted static trigger words into to and from categories

* TextConverter: Moved to and from trigger words out of handle
2017-09-17 21:11:06 +01:00
PJ Hampton 6b16ccdcd9 CalcRoots: Fixes triggering on words. (#4489)
* Fixes triggering on words.

* Fix hard indent.

* fix indent
2017-09-15 18:09:08 -04:00
Zaahir Moolla 5c391e1091 switch listen to touchend on mobile (#4488) 2017-09-14 17:17:44 +01:00
Zaahir Moolla b49cd752b2 Switch Travis to Ubuntu 14 (Trusty) (#4487)
* Update .travis.yml

* single process for installing perl deps
2017-09-14 16:25:55 +01:00
tossj fc7c03331d Binary: Encoded query string into UTF-8 before binary conversion (#4486) 2017-09-14 10:37:11 -04:00
Original Fannibal efb39d76e1 DaysBetween: Fix #2844 Improve triggering (#4464)
* Add "Days until" as a trigger

* Added tests

* Added test for specific date in the future

* Added anchors

* Updated test for fixed date in the future
2017-09-13 16:51:36 -04:00
tossj 27868745d5 Timezone Coverter: Removed friendly "Noon" and "Midnight" times from TimezoneConverter IA (#4481)
* Removed friendly "Noon" and "Midnight" times from TimezoneConverter IA

* Add "Noon" and "Midnight" alongside numerical time
2017-09-12 09:46:40 -04:00
Zaahir Moolla 4adee0fdf4 fix redeclared variable 2017-09-11 16:55:43 -04:00
PJ Hampton 4783cdef4d Fix micro symbol issue. (#4484) 2017-09-11 16:35:26 -04:00
PJ Hampton 95214cc055 Calculator: Divide bug (#4483)
* Add edge case.

* Fix rouge regex.
2017-09-11 15:57:42 -04:00
Rob Emery 48a1f3348e ColourCodes: Fixing handling on RGB with values > 0 (#4480)
* ColourCode: Rough failing test for #4479; not correct test-case but at least not ffffff

* Updating test to be bang-on-accurate

* ColourCodes: Fixes #4479
2017-09-07 10:10:49 -04:00
Zaahir Moolla 0ad6de99b1 Fix Travis Builds: use --mirror-only option to prevent installing from backpan (#4478)
* use mirror only to prevent installing from backpan

* reverse order of mirrors
2017-09-06 13:01:56 -04:00
Rob Emery 85f28710a6 Colourcodes: new query patterns (#4453)
* ColorCodes: Cleaning out comments and some minor refactoring

* ColorCodes: Tabs -> spaces and failing test for #190

* ColorCodes: We need more control over the actual query handling so I want the raw query

* ColorCodes: red: \d green: \d blue: \d queries now work

* ColorCodes: refactoring out the need for capturing the inversion words

* ColorCodes: Removing unnecessary hash

* ColourCodes: Attempting to push as much limiting and protection as early as possible

* ColourCodes: Layout tinkering

* ColorCodes: Matches can be wider now we're planning to use named captures

* ColorCodes: Adding named captures for loop removal

* ColorCodes: Converting to use just the named captures; tests failing

* ColorCodes: need to map the type for cmyk

* ColorCodes: Layout

* ColorCodes: RGBA can be implemented as an alias now in the regex :D

* ColorCodes: Will now respond to bluishblack html not just html bluishblack!

* ColorCodes: This regex case seems to make no difference to passing tests or query patterns

* ColorCodes: Types are case sensitive!

* ColorCodes: Using the matches we can construct a colour without hacking the input query

* ColorCodes: We can use the matches for detecting inversion

* ColorCodes: Rearranging

* ColorCodes: Removing unused

* ColorCodes: Bit of cleaning

* ColorCodes: Don't need to do this in the else anymore, we can do it before!

* ColorCodes: show -> to flip the ternary

* ColorCodes: Adding tests for #3758

* ColourCodes: Switching to query_lc

* ColourCodes: Regex refactor
2017-09-05 19:54:36 -04:00
Zach Thompson 781856b4e0 SolarSystem: Use unicode superscripts, multiplication symbol (#4050)
* Use unicode superscripts, multiplication symbol

* Update tests with new unicode

* Put trans in sub
2017-09-05 17:43:43 -04:00
Rohit Upadhyay 50bb72dff7 Game2048: Fixed overtriggering (#4473)
* fixed overtriggering in Game2048

* Added two more tests to help fix issue #4473

* Added regex guard in handle function to fix #4473.

* modified regex guard for #4473

* Added a test to t/Game2048.t

* Removed trailing comma.
2017-09-05 14:00:32 -04:00
Zaahir Moolla fd2712079b Add back build status 2017-09-05 09:52:23 -04:00
Zaahir Moolla a61d2c8b91 Update CONTRIBUTING.md 2017-09-05 09:35:54 -04:00
PJ Hampton df205e2335 REPO: Update pr/readme template (#4474)
* Update PR template.

* Update readme.

* Update PULL_REQUEST_TEMPLATE.md

* Update README.md
2017-09-05 09:31:03 -04:00
jc86035 687f7de9f2 Conversions: Add light years, astronomical units, parsecs (#4438)
* Update conversions.js

* Update conversions.js

* Update conversions.js

* Update conversions.js

* Update triggers.yml

* Update triggers.yml

* Add some tests for new units

* ce

* Update Conversions.t
2017-09-02 10:54:22 +01:00
Marcos Campal 6052a49e7c v1259 2017-08-30 16:36:54 -04:00
Marcos Campal d4d93440ba v1257 2017-08-30 15:24:29 -04:00
PJ Hampton 74fb241903 Fix over triggering on dates. (#4463) 2017-08-29 15:33:26 -04:00
Irini Koutaki a9783ac3cf New Kaomoji Cheat Sheet (#4368)
* new cheat sheet for kaomoji

* correct json

* removed cheat sheet's name from aliases

* description updated

* expanded with more entries

* escape curly brackets
2017-08-29 15:41:08 +02:00
Rob Emery a46679a254 LHC: Limiting overtriggering (#4462)
* HasLHC: Adding failing tests for improper trigger type

* LHC: We want start to limit overtriggering and only if there isn't other information in the query
2017-08-28 18:09:06 -04:00
Ben Moon 9b128b8dbe Shuffle: Update to use Parse::List Role (#3619)
* Update list parsing/formatting to use role

* Remove tests that duplicate role testing
2017-08-28 18:06:55 -04:00
Ben Abrahamson 118350b3aa New Router Gateway Cheat Sheet (#4407)
* Added Router Gateway Reference

* Removed some conflicting aliases

* Changed ID

* Beautified and renamed the json file and fixed ID.

* Update and rename router-gateway.json to router-gateway-reference.json

* Update router-gateway-reference.json

* Added Generic and Fortigate
2017-08-28 20:11:47 +02:00
PJ Hampton d0b3a242db Fix overtriggering. (#4457) 2017-08-28 12:14:07 -04:00
Taite Clark 242793b659 New LHC Apocalypse Checker Instant Answer (#3597)
* Completed perl file, delivering simple response

* The start of a test file

* finish test file, add plain text result.
2017-08-28 16:32:56 +01:00
Vonter 14526e606f New Age of Empires Cheat Sheet (#4395)
* Age of Empires: add cheat sheet

* Age of Empires: changed aoe alias to aoe1
2017-08-28 16:26:53 +01:00
PJ Hampton 368bab09c0 JS Minifier: Added CSS support, Added Beautify support (#4154)
* Add css support for js minifier.

* Add support for prettifying.

* Fixed tests.

* Removed flag code.

* update triggers to include prettify for css.

* Add case insensitivity.

* Remove .fifty from html
2017-08-28 16:14:21 +01:00
suvadeet ca6fcc437d New Nursing Cheat Sheet (#4018)
* Add nursing.json file

* Update with suggested changes
2017-08-28 10:22:14 +01:00
Guillermo Urcera Martín 6f820e8434 New Urdf Cheat Sheet Goodie (#4113)
* first commit

* first commit

* Fixed conflicts again

* Applied changes suggested by @jophab

* Applied changes suggested by @jophab
2017-08-27 22:46:10 +01:00
Tiago Danin 694320533b Node.js Tutorials Cheat Sheet: Updated references (#4458)
* Updated references Node.js Tutorials Cheat Sheet

* Updated refs Node.js Tutorials Cheat Sheet #2
2017-08-27 22:42:14 +02:00
Philip Kirkbride a6bbd9c176 Phonetic: Convert to structured (#4354)
* Make phonetic goodies structured

* add title/subtitle format

* switch title and subtitle

* fix tests
2017-08-27 17:40:54 +01:00
Rob Emery a2b28cba96 AltCalendars: keys on ref is fatal under perl 5.24 (#4418) 2017-08-25 13:13:58 -04:00
Rob Emery 237fd9fa46 Unicode: Fixing 5.24 upgrade -- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^ \s* (?:U \+?|\\(?:u|x{ <-- HERE (?=.*}))) (?<codepoint> [a-f0 (#4427)
-9]{4,6})}? \s* $/ at lib/DDG/Goodie/Unicode.pm line 12
2017-08-25 12:46:36 -04:00
Aditya Tandon a8b453d410 Geometry: Adds geometry of cylinder and cone (#4144)
* adds geometry of cylinder and cone

correcting the formula

updating test

* tweaking cone svg a bit

* tweaking fil surface and fill volume svg

slight nit fix

switches class name to stroke special

updates test

* updates test

* syntax fix
2017-08-25 11:58:30 +01:00
anoadragon453 449b37251f RestructuredText Cheat Sheet: Fix typo (#4455)
`*emphasis` -> `*emphasis*`

Fixes #4454
2017-08-25 00:39:20 +01:00
Philip Kirkbride 6774080ae7 make Loan return a structured answer (#4358) 2017-08-24 00:27:28 +01:00
Philip Kirkbride 3105bc1be5 IDN: Structured Answer (#4356)
* idn structured answer, remove tabs

* make returned answer more readable
2017-08-24 00:23:50 +01:00
Jason Herman 817a8ee122 New XAML Goodie (#4307)
* xaml.json for cheatsheet

* Pull request feedback implemented
2017-08-24 00:13:12 +01:00
Aayush Kumar Singha 041e38b003 New Flask-Ask Cheat sheet (#4294)
* adding Flask-Ask Cheat sheet

* typo correction

* changes as suggested
2017-08-24 00:11:10 +01:00
PforPain eb58678da2 Cheat sheet for windows diskpart command (#4293)
* Cheat sheet for windows diskpart command

* diskpart.json

-> FAIL: The following sections were defined in 'section_order' but not used in 'sections': ('Commands to Manage Dynamic Disk')
 -> FAIL: The following sections were used in 'sections' but not defined in 'section_order:' ('Commands to Manage Dynamic Disks')
=============================
fixed the above ('s' was missing)

* Update diskpart.json

Correcting architecture preference
2017-08-24 00:07:07 +01:00
tossj 361af9e70c New Feedly Cheat Sheet (#4283)
* Added cheat sheet for Feedly keyboard shortcuts

* Updated Feedly cheat sheet source
2017-08-24 00:03:10 +01:00
122131 57033cca97 Minecraft: added minecraft 1.12 recipes (#4271)
* 1.12 changes

* fix image extension

* fix regex

* Fix tests

I made a PR after this one which made this goodie triggered when the British spelling of colour is used.

I added these two tests, which aren't compatible with your PR. I'm pushing these changes which should fix the test failures.
2017-08-23 23:59:04 +01:00
Palash Nigam 43b126fbe3 Lolcode Cheat Sheet (#4244)
* lolcode cheat sheet

* lolcode section order changed
2017-08-23 23:40:42 +01:00
Amit Yaron 56f97d75c4 New XLRD cheat sheet (#4232)
* New cheat sheet

* Changed id, remoed periods from 'val' fields, change source URL, removed 'xlrd' aliases.

* Changed the section name 'Worrkbooks' according to the list
2017-08-23 23:38:08 +01:00
Pablo Orduna 7e5699a777 New Raspberry Pi Distributions Cheat Sheet (#4227)
* add my IA

* Finished

* Final Commit

* fixes

* new aliases
2017-08-23 23:36:05 +01:00