Permalink
Browse files

Add metadata to ResistorColors

  • Loading branch information...
Joe Walnes authored and majuscule committed Nov 8, 2012
1 parent 11155d9 commit 20e0cd90328d35baccdb8832a239ccc5cb8295bc
Showing with 12 additions and 4 deletions.
  1. +12 −4 lib/DDG/Goodie/ResistorColors.pm
@@ -10,16 +10,24 @@ use DDG::Goodie;
use Math::Round;
use POSIX qw(abs floor log10 pow);
-attribution twitter => 'joewalnes',
- web => ['http://joewalnes.com', 'joewalnes.com'],
- email => ['joe@walnes.com', 'Joe Walnes'];
-
# \x{2126} is the unicode ohm symbol
triggers query_nowhitespace => qr/^(.*)(ohm|ohms|\x{2126})/i;
zci is_cached => 1;
zci answer_type => 'resistor_colors';
+primary_example_queries '4.7k ohm';
+secondary_example_queries '1\x{2126}';
+description 'find resistor color bands';
+name 'ResistorColors';
+code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ResistorColors.pm';
+category 'conversions';
+topics 'science';
+
+attribution twitter => 'joewalnes',
+ web => ['http://joewalnes.com', 'joewalnes.com'],
+ email => ['joe@walnes.com', 'Joe Walnes'];
+
# These hex codes came from
# http://en.wikipedia.org/wiki/Electronic_color_code
my %digits_to_colors = (

0 comments on commit 20e0cd9

Please sign in to comment.