Commit Graph

8998 Commits (7413a55eaeae3589da2856f80d57a6a575763eaa)

Author SHA1 Message Date
Rob 7413a55eae Constants: Tidying up the markup 2016-05-30 18:58:41 +01:00
Rob Emery c7de248453 Constants: Adding handlebars template 2016-05-14 20:31:11 +01:00
Rob Emery 39b44adc0c Constants: Switching to customised template 2016-05-14 20:30:39 +01:00
Rob Emery 683018f4a1 Constants: It's crap that the IA currently returns HTML for the plain answer; no remedied 2016-05-14 20:26:09 +01:00
Rob Emery 6a2bb230f9 Constants: Editor wasn't in DDG mode so there are tabs in here 2016-05-14 20:24:19 +01:00
Rob Emery abd685d3ae Constants: Switching to text template 2016-05-14 20:21:54 +01:00
Pawan Pal 4abd29f5f9 New wget Cheat sheet (#2471)
* Added wget Cheat sheet
2016-05-14 19:57:41 +01:00
Sebastian Weddmark Olsson e3ee63998c Add f/1 to shell commands (#2962) 2016-05-14 19:23:50 +01:00
Pawan Pal 3bf7aa0731 New youtube-dl cheat sheet (#2465)
* added youtube-dl cheat sheet

* edit name, alias and indentation

* edit source name
2016-05-14 19:18:01 +01:00
Ben Moon da3c7b26c7 Fix test for real numbers (#3049)
Wasn't allowing the case for numbers like `1.3e-7`.
2016-05-14 19:14:43 +01:00
Naveen Karippai af18492b8a Convert simple structured to full template goodie (#3000)
* Convert simple structured to full template goodie

Goodies have full support for templates, and it'd be great to make sure all
Goodies use full templates. The "simple structured_answer" was provided
as a way to get goodies using basic templates before they had full template
support.

* change to 'text' template for structured_answer object

* refactored test suite

* added alias and removed encode

See also: Updates FlipText Goodie Re: #2767

IA: https://duck.co/ia/view/flip_text

* Remove unnecessary trigger words on flipText goodie

There were trigger words added to flipText goodie which may not be
used or confuse the search results. This should be removed.

* extra triggers removed

See also: Updates FlipText Goodie Re: #2767

* Indent code on FlipText goodie

It would be easier to eyes in the long run to understand
code when it's properly indented.

* code indented on .pm and .t
2016-05-14 19:00:12 +01:00
Ben Moon e271760377 GreatestCommonFactor: Update tests to use 'build_test' (#3048)
* Update tests to use 'build_test'

* Fix indenting
2016-05-14 18:42:58 +01:00
Roy Kokkelkoren 289948173d GreatestCommonFactor: Use Math::BigInt & change to text template (#2990)
* Removed custom GCD function replaced with library function

* Changed view to text template and updated tests

* Cleanup of tests and removed unnecessary code
2016-05-14 18:28:04 +01:00
Naveen Karippai 6df517e87a Convert RandomNumbers to full template goodie (#3014)
* Convert RandomNumbers to full template
2016-05-14 12:17:47 +01:00
Zach Thompson 5ec54f0809 Merge pull request #3018 from duckduckgo/gd/cheat-sheets-verify-meta
CheatSheets: Add check for IA page existence
2016-05-13 14:01:10 -06:00
Ben Moon d115e04a95 Add check for IA page existence
We check to make sure that an IA page with the correct ID exists.
2016-05-13 18:28:31 +01:00
Daniel Davis 03c4ca7120 Merge pull request #3001 from harisphnx/c_goodie
C cheat sheet: Re-arranged operators according to precedence (fixes #2938)
2016-05-13 09:53:45 -07:00
Vikash Verma 1695ba5fd0 Update IA ID and aliases (#3039) 2016-05-13 13:00:34 +01:00
Zaahir Moolla 58eeb27ea5 Merge pull request #2811 from lamanh/fix_2771
Braille: fix for bad triggers #2771
2016-05-12 15:51:46 -07:00
Zaahir Moolla 7bc4b07af8 Merge pull request #2177 from kedarbramhe/evil-mode-cheat-sheet
added cheat sheet for evil-mode for emacs
2016-05-12 14:50:46 -07:00
Zach Thompson 1c7e2cca44 Merge pull request #2777 from duckduckgo/gd/cheatsheets-add-ignore
CheatSheets: Add 'ignore' attribute
2016-05-12 14:23:38 -06:00
Ben Moon aedf7ea3f5 Improve efficiency of removing ignore phrases
Thanks to @zachthompson for the algorithm (much faster).
2016-05-12 20:48:37 +01:00
Ben Moon e44920542d Switch to lc handler
So we don't need to normalize later.
2016-05-12 20:40:00 +01:00
Naveen Karippai a426dccaf5 Convert CountryCodes to full template goodie (#3037)
Goodies have full support for templates, and it'd be great
to make sure that all goodies use full templates.
The "simple structured_answer" was provided as a temporary
workaround.

* change to 'text' template for structured_answer object

* refactored test suite

See also: Updates CountryCodes Goodie Re: #2767
2016-05-12 14:23:28 +01:00
Rob Emery 435480ab73 Merge pull request #3040 from jophab/patch-8
Update sql.json
2016-05-12 13:34:44 +01:00
JOBIN PHILIP ABRAHAM b6ae44f9b8 Update sql.json
Removed second appearance of "foreign key"
fixed#3036
2016-05-12 17:47:48 +05:30
Ben Moon 3a0e90fb62 Merge pull request #3019 from duckduckgo/mintsoft/conversions/plurals
Conversions: Harmonise unit definitions
2016-05-11 20:42:26 +01:00
Rob Emery 10eac5a798 Conversions: Adding tests around singular for mmHg 2016-05-11 20:03:11 +01:00
Rob Emery 54ef078da5 Conversions: Singular test for ton of TNT 2016-05-11 18:54:16 +01:00
Rob Emery f62adb5b70 Conversions: Adding hash for the opposite direction (plural_to_unit) to quickly determine if a unit/alias is plural 2016-05-11 18:49:28 +01:00
Rob Emery 3831d2bf71 Conversions: Fixing tnt vs TNT for @guiltydolphin 2016-05-11 18:45:02 +01:00
Rasika Pohankar 9b5d96c5c3 Update ValarMorghulis to use full template. (#3034) 2016-05-11 12:43:08 +01:00
Rob Emery 460b0978ac Merge pull request #3029 from s7nio/cheatsheets-add-zfs
Update the description of the zfs cheat sheet
2016-05-10 22:13:36 +01:00
Rasika Pohankar d2996bf4d5 Birthstone: Convert to full template (#2807)
* Added plaintext response.

* Removed id and name.

* Fixed alignment.

* Changed subtitle to Birthstone for month.

* Changed subtitle in test file.
2016-05-10 22:00:42 +01:00
Sebastian Nemak ab81e41359 Update the description 2016-05-10 22:54:08 +02:00
Ben Moon a459531950 Remove trailing white space 2016-05-10 21:46:51 +01:00
Rasika Pohankar 16f3fd4599 Zapp Brannigan: Convert to full template (#2994)
* Change to full template, add handlebars file for new line in quote.

* Change data to -ANY- in test file.

* Replace regex with re().
2016-05-10 21:41:54 +01:00
Rob Emery fcc5983d0c Merge pull request #2982 from J-tt/patch-2
Move exit commands to top issue [FIXED] #2885
2016-05-09 23:11:32 +01:00
Rob Emery 264ec03ae5 Merge pull request #2911 from tagawa/tagawa/logarithms
Logarithms cheatsheet: Fixed description
2016-05-09 22:44:08 +01:00
Rob Emery 9517ba17ce Merge pull request #2980 from rkokkelk/rkokkelk/unixtime
UnixTime: Expanded trigger words
2016-05-09 22:29:38 +01:00
Rob Emery 820f34d192 Merge pull request #3021 from s7nio/cheatsheets-add-zfs
Create cheat sheet for zfs
2016-05-09 21:52:40 +01:00
Rob Emery bdd54b6a8f Conversions: now it's in a list of values; we can use List::Util again! 2016-05-09 20:34:15 +01:00
Rob Emery 13509c09b1 Conversions: Not sure why I was looking up the value everytime from the hash here 2016-05-09 20:33:02 +01:00
Rob Emery 9418f7baef Conversions: Didn't use List::Util in the end as it's all in hashes 2016-05-09 20:31:36 +01:00
Rob Emery 4417d51443 Conversions: More tidying up; also dodged bug where units would be added twice 2016-05-09 20:30:34 +01:00
Rob Emery 679a1d7fdf Conversions: Plural isn't used in the response from get_matches as it's looked up in the hash 2016-05-09 20:28:49 +01:00
Rob Emery cd4bf80a17 Conversions: Minor code tidies 2016-05-09 20:28:00 +01:00
Rob Emery 6775764f28 Conversions: refactoring and tidying up around set_unit_pluralisation 2016-05-09 20:25:37 +01:00
Rob Emery 539e5dcd78 Conversions: Tiding up a little 2016-05-09 20:20:08 +01:00
Rob Emery aedcc1d560 Conversions: Better off without the JSON formatted version for now 2016-05-09 20:18:21 +01:00