added metadata to {Binary,Capitalize,Chars,ColorCodes}.pm

master
Dylan Lloyd 2012-11-06 15:53:46 -05:00
parent e6c3bc881c
commit baa2c1da4f
4 changed files with 36 additions and 4 deletions

View File

@ -7,6 +7,14 @@ triggers end => "binary";
zci is_cached => 1;
zci answer_type => "binary_conversion";
primary_example_queries 'foo in binary';
secondary_example_queries '0x1e to binary';
description 'convert ASCII, numbers, and hex to binary';
name 'Binary';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Binary.pm';
category 'conversions';
topics 'geek';
sub bin {
my @tex = shift;
my $bin;

View File

@ -7,6 +7,17 @@ triggers startend => 'capitalize', 'uppercase', 'upper case';
zci is_cached => 1;
zci answer_type => "capitalize";
primary_example_queries 'capitalize this';
secondary_example_queries 'uppercase that';
description 'capitalize a string';
name 'Capitalize';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Capitalize.pm';
category 'conversions';
topics 'programming';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ;
handle remainder => sub { uc ($_) };
1;

View File

@ -8,6 +8,14 @@ triggers start => 'chars';
zci is_cached => 1;
zci answer_type => "chars";
primary_example_queries 'chars test';
secondary_example_queries 'chars this is a test';
description 'count the number of charaters in a query';
name 'Chars';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Chars.pm';
category 'computing_tools';
topics 'programming';
handle remainder => sub {
return "Chars: " .length $_ if $_;
return;

View File

@ -31,10 +31,15 @@ triggers query_raw => qr/^
zci is_cached => 1;
zci answer_type => 'color_code';
attribution
twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC'
;
primary_example_queries 'hex color code for cyan';
secondary_example_queries 'rgb(173,216,230)', 'hsl 194 0.53 0.79', 'cmyk(0.12, 0, 0, 0)', '#00ff00';
description 'get hex, RGB, HSL and CMYB values for a color';
name 'ColorCodes';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ColorCodes.pm';
category 'conversions';
topics 'programming';
attribution twitter => 'crazedpsyc',
cpan => 'CRZEDPSYC' ;
sub percentify {
my @out;