Two more goodies with metadata!
parent
143867274d
commit
487008a769
|
@ -5,12 +5,19 @@ use DDG::Goodie;
|
|||
|
||||
triggers end => "ascii";
|
||||
|
||||
primary_example_queries '0110100001100101011011000110110001101111 to ascii';
|
||||
description 'convert binary data to readable characters';
|
||||
name 'Ascii';
|
||||
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Binary.pm';
|
||||
category 'transformations';
|
||||
topics 'cryptography';
|
||||
|
||||
zci answer_type => "ascii_conversion";
|
||||
zci is_cached => 1;
|
||||
|
||||
handle remainder => sub {
|
||||
my $ascii = pack("B*", $1) if /^(([0-1]{8})*)\s+(in|to)$/;
|
||||
return $ascii if $ascii;
|
||||
return "$1 in binary is \"$ascii\" in ASCII" if $ascii;
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
|
@ -4,6 +4,15 @@ use DDG::Goodie;
|
|||
|
||||
triggers start => "passphrase";
|
||||
|
||||
primary_example_queries 'passphrase 3';
|
||||
description 'generate a random passphrase';
|
||||
name 'Passphrase';
|
||||
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Passphrase.pm';
|
||||
category 'computing';
|
||||
topics 'cryptography';
|
||||
|
||||
attribution github => ['https://github.com/hunterlang', 'hunterlang'];
|
||||
|
||||
handle query_parts => sub {
|
||||
my $count = @_;
|
||||
return unless $count == 3;
|
||||
|
|
Loading…
Reference in New Issue