added metadata to {Binary,Capitalize,Chars,ColorCodes}.pm
parent
e6c3bc881c
commit
baa2c1da4f
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue