Skip to content

Commit

Permalink
Merge pull request duckduckgo#1756 from duckduckgo/zt/rm-meta
Browse files Browse the repository at this point in the history
Goodbye metadata...mostly
  • Loading branch information
moollaza committed Jan 7, 2016
2 parents 305b680 + 44de44e commit f9117a5
Show file tree
Hide file tree
Showing 280 changed files with 13 additions and 2,756 deletions.
10 changes: 0 additions & 10 deletions lib/DDG/Goodie/ABC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ triggers startend => qw/choose pick select/;
zci answer_type => "choice";
zci is_cached => 0;

primary_example_queries 'choose yes or no';
secondary_example_queries 'choose heads or tails', 'pick this or that or none';
description 'make a random choice';
name 'ABC';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ABC.pm';
category 'random';
topics 'trivia';
attribution cpan => ['CRZEDPSYC','crazedpsyc'],
github => ['kablamo', 'Eric Johnson'];

handle remainder => sub {

my $query = $_;
Expand Down
12 changes: 0 additions & 12 deletions lib/DDG/Goodie/AltCalendars.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ package DDG::Goodie::AltCalendars;
use strict;
use DDG::Goodie;

primary_example_queries 'heisei 24';
secondary_example_queries 'meiji 1';
description 'Convert non-Gregorian years to the Gregorian calendar';
name 'Alternative Calendars';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/AltCalendars.pm';
category 'conversions';
topics 'everyday';

attribution web => ['http://kyokodaniel.com/tech/', 'Daniel Davis'],
github => ['https://github.com/tagawa', 'tagawa'],
twitter => ['https://twitter.com/ourmaninjapan', 'ourmaninjapan'];

triggers any => 'juche', 'minguo', 'meiji', 'taisho', 'taishou', 'showa', 'shouwa', 'heisei';

zci answer_type => 'date_conversion';
Expand Down
14 changes: 0 additions & 14 deletions lib/DDG/Goodie/Anagram.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,6 @@ triggers start => @triggers;
zci answer_type => "anagram";
zci is_cached => 1;

primary_example_queries "anagram of filter";
secondary_example_queries "find anagram for partial men";
description "find the anagram(s) of your query";
name "Anagram";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Anagram.pm";
category "transformations";
topics "words_and_games";

attribution github => ["https://github.com/loganom", 'loganom'],
github => ["https://github.com/beardlybread", "beardlybread"],
github => ['https://github.com/gdrooid', 'gdrooid'],
email => ['[email protected]', 'gdrooid'],
github => ["https://github.com/Mailkov", "Melchiorre Alastra"];

# Calculate the frequency of the characters in a string
sub calc_freq {
my ($str) = @_;
Expand Down
7 changes: 0 additions & 7 deletions lib/DDG/Goodie/Ascii.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ 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;

Expand Down
8 changes: 0 additions & 8 deletions lib/DDG/Goodie/AspectRatio.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ triggers start => "aspect ratio";
zci is_cached => 1;
zci answer_type => "aspect_ratio";

primary_example_queries 'aspect ratio 4:3 640:?';
description 'complete the missing value with a given ratio';
name 'AspectRatio';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/AspectRatio.pm';
category 'calculations';
topics 'math';
attribution github => [ 'https://github.com/mrshu', 'mrshu' ];

handle remainder => sub {
my $input = $_;
my $result = 0;
Expand Down
12 changes: 0 additions & 12 deletions lib/DDG/Goodie/Atbash.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ package DDG::Goodie::Atbash;
use strict;
use DDG::Goodie;

primary_example_queries 'atbash hello';
secondary_example_queries 'atbash svool';
description 'A simple substitution cipher using a reversed alphabet';
name 'Atbash';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Atbash.pm';
category 'transformations';
topics 'cryptography';

attribution web => ['http://kyokodaniel.com/tech/', 'Daniel Davis'],
github => ['https://github.com/tagawa', 'Daniel Davis'],
twitter => ['https://twitter.com/ourmaninjapan', 'Daniel Davis'];

triggers start => 'atbash';

zci answer_type => 'atbash';
Expand Down
13 changes: 0 additions & 13 deletions lib/DDG/Goodie/Average.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@ triggers startend => "avg", "average", "mean", "median", "root mean square", "rm
zci is_cached => 1;
zci answer_type => "average";

primary_example_queries 'average 12, 45, 78, 1234';
secondary_example_queries 'avg 1,2,3', 'root mean square 1,2,3';
description 'take the average of a list of numbers';
name 'Average';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Average.pm';
category 'calculations';
topics 'math';
attribution twitter => ['crazedpsyc','crazedpsyc'],
cpan => ['CRZEDPSYC','crazedpsyc'],
github => ['http://github.com/Mailkov', 'Melchiorre Alastra'];



handle remainder => sub {

my $query = $req->query_lc;
Expand Down
9 changes: 0 additions & 9 deletions lib/DDG/Goodie/BPMToMs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ use DDG::Goodie;
zci answer_type => "bpmto_ms";
zci is_cached => 1;

name "BPM (beats per minute) to ms (milliseconds) converter";
description "Takes a tempo as BPM (beats per minute), eg. 120, and returns the corresponding note values as milliseconds.";
primary_example_queries "120 bpm to ms";
category "conversions";
topics "music";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/BPMToMs.pm";
attribution github => ["https://github.com/stefolof", "stefolof"],
twitter => "stefolof";

triggers end => "bpm to ms", "bpm to milliseconds", "bpm to note values", "bpm to note lengths", "bpm", "bpm timings", "beats per minute to milliseconds",
"beats per minute to ms", "beats per minute to note values", "beats per minute to note lengths", "beats per minute", "beats per minute timings";

Expand Down
13 changes: 0 additions & 13 deletions lib/DDG/Goodie/BRT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,6 @@ use DDG::Goodie;
zci answer_type => "brt";
zci is_cached => 1;

name "BRT";
description "Track a shipment from BRT";
icon_url "https://afelicioni.github.io/assets/i/www.brt.it.ico";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/BRT.pm";
primary_example_queries "brt 123456789012";
secondary_example_queries "brt 1234567890123456789";
source "BRT";
category 'ids';
topics 'special_interest';
attribution web => ["https://afelicioni.github.io/", "Alessio Felicioni"],
github => ["afelicioni", "Alessio Felicioni"],
twitter => ["afelicioni_pro", "Alessio Felicioni"];

triggers start => "brt";

handle query_lc => sub {
Expand Down
11 changes: 0 additions & 11 deletions lib/DDG/Goodie/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ triggers any => 'base', keys %base_map;
zci answer_type => "conversion";
zci is_cached => 1;

primary_example_queries '255 in hex';
secondary_example_queries '255 in base 16', '42 in binary';
description 'convert a number to an arbitrary base';
name 'Base';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Base.pm';
category 'conversions';
topics 'math';
attribution web => [ 'http://perlgeek.de/blog-en', 'Moritz Lenz' ],
github => [ 'http://github.com/moritz', 'Moritz Lenz'];


handle query_clean => sub {
return unless /^(?<num>[0-9]+)\s*(?:(?:in|as|to)\s+)?(?:(?<bt>$map_keys)|(?:base\s*(?<bn>[0-9]+)))$/;
my $number = $+{'num'};
Expand Down
17 changes: 0 additions & 17 deletions lib/DDG/Goodie/Base64.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@ triggers start => "base64";
zci answer_type => "base64_conversion";
zci is_cached => 1;

primary_example_queries 'base64 encode foo';
secondary_example_queries 'base64 decode dGhpcyB0ZXh0';
description 'encode to and decode from base64';
name 'Base64';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Base64.pm';
category 'conversions';
topics 'programming';
attribution web => ['robert.io', 'Robert Picard'],
github => ['http://github.com/rpicard', 'Robert Picard'],
twitter => ['http://twitter.com/__rlp', 'Robert Picard'],
web => ['http://robb.weblaws.org/about', 'Robb Shecter'],
github => ['http://github.com/dogweather', 'Robb Shecter'],
twitter => ['http://twitter.com/dogweather', 'Robb Shecter'];




handle remainder => sub {
my ($command, $input) = query_components($_);
return unless $input;
Expand Down
11 changes: 0 additions & 11 deletions lib/DDG/Goodie/BashPrimaryExpressions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ use warnings;
use DDG::Goodie;

triggers startend => 'bash if', 'bash';
primary_example_queries 'bash [ -z hello ]';
secondary_example_queries 'bash if [[ "abc" -lt "cba" ]]';

description 'Bash Primary Expressions Help';
name 'Bash Help';
source 'http://tille.garrels.be/training/bash/ch07.html';
attribution github => [ 'http://github.com/mintsoft', 'Rob Emery' ];

category 'computing_tools';
topics 'sysadmin';

zci answer_type => 'expression_description';
zci is_cached => 1;

Expand Down
8 changes: 0 additions & 8 deletions lib/DDG/Goodie/Binary.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ triggers end => "binary";
zci answer_type => "binary_conversion";
zci is_cached => 1;

primary_example_queries 'foo in binary', '12 as binary', 'hex 0xffff into 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;
Expand Down
18 changes: 0 additions & 18 deletions lib/DDG/Goodie/BinaryLogic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ triggers query_raw => qr/¬.*/;
zci is_cached => 1;
zci answer_type => "binary_logic";

attribution
github => ['https://github.com/MithrandirAgain', 'MithrandirAgain'],
github => ['https://github.com/bpaschen', 'Bjoern Paschen'],
twitter => ['https://twitter.com/Prypjat', 'Bjoern Paschen'],
github => ['https://github.com/Sloff', 'Sloff'];

primary_example_queries '4 xor 5', '3 and 2', '1 or 1234';
secondary_example_queries
'9489 xor 394 xor 9349 xor 39 xor 29 xor 4967 xor 3985',
'10 and 12',
'34 or 100',
'10 and (30 or 128)',
'0x01 or not 0X100';
description 'take two numbers and do bitwise logical operations (exclusive-or, or, and, not) on them';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/BinaryLogic.pm';
category 'calculations';
topics 'math';

my $rules = <<'END_OF_GRAMMAR';
:default ::= action => ::first
:start ::= Expression
Expand Down
8 changes: 0 additions & 8 deletions lib/DDG/Goodie/BirthStone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ triggers startend => 'birthstone', 'birth stone';
zci answer_type => "birth_stone";
zci is_cached => 1;

primary_example_queries 'birthstone april';
secondary_example_queries 'may birth stone';
description 'returns the birth stone of the specified month';
name 'BirthStone';
topics 'special_interest', 'entertainment';
category 'random';
attribution github => ['https://github.com/austinheimark', 'Austin Heimark'];

my %birthstones = (
"January" => "Garnet",
"February" => "Amethyst",
Expand Down
10 changes: 0 additions & 10 deletions lib/DDG/Goodie/Bitsum.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ use Math::BigInt;
zci answer_type => "bitsum";
zci is_cached => 1;

name "Bitsum";
description "Computes the Hamming Weight / bit-wise sum of a decimal or hex number.";
primary_example_queries "bitsum 1023", "bitsum 0x789abcd";
secondary_example_queries "hammingweight 1023", "hw 1023";
category "programming";
topics "programming", "cryptography";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Bitsum.pm";
attribution github => ["kste", "Stefan Koelbl"],
twitter => "kste_";

# Triggers
triggers start => "bitsum", "hammingweight", "hw",
"bitsum of", "hammingweight of", "hw of",
Expand Down
9 changes: 0 additions & 9 deletions lib/DDG/Goodie/BloodDonor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ triggers startend => 'donor compatibility', 'donor', 'donors for',
zci answer_type => "blood_donor";
zci is_cached => 1;

primary_example_queries 'donor O+';
secondary_example_queries 'donor AB+';
description 'Donor types for a given blood type';
name 'BloodDonor';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/BloodDonor.pm';
category 'special';
topics 'everyday';
attribution github => ['https://github.com/faraday', 'faraday'];

my %typeMap = (
'A' => 'A,O',
'O' => 'O',
Expand Down
10 changes: 1 addition & 9 deletions lib/DDG/Goodie/CalcRoots.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ use strict;
use DDG::Goodie;
use Lingua::EN::Numericalize;

primary_example_queries 'square root of 9';
description 'calculate the nth root';
name 'CalcRoots';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodie/blob/master/lib/DDG/Goodie/CalcRoots.pm';
attribution github => ['https://github.com/duckduckgo', 'duckduckgo'];
category 'calculations';
topics 'math';

triggers any => 'root';

zci is_cached => 1;
Expand Down Expand Up @@ -162,4 +154,4 @@ sub structured{
};
}

1;
1;
10 changes: 0 additions & 10 deletions lib/DDG/Goodie/Calculator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ use utf8;
zci answer_type => "calc";
zci is_cached => 1;

primary_example_queries '$3.43+$34.45';
secondary_example_queries '64*343';
description 'Basic calculations';
name 'Calculator';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/Calculator.pm';
category 'calculations';
topics 'math';
attribution github => ['https://github.com/duckduckgo', 'duckduckgo'],
github => ['https://github.com/phylum', 'Daniel Smith'];

triggers query_nowhitespace => qr<
^
( what is | calculate | solve | math )?
Expand Down
10 changes: 0 additions & 10 deletions lib/DDG/Goodie/CalendarConversion.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ use YAML::XS 'LoadFile';
zci answer_type => "calendar_conversion";
zci is_cached => 0;

primary_example_queries '22/8/2003 to the hijri calendar';
secondary_example_queries '23/6/1424 hijri to gregorian';
description 'convert dates from the Gregorian calendar to the Hijri/Jalali calendars and back';
name 'CalendarConversion';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/CalendarConversion.pm';
category 'dates';
topics 'special_interest';
attribution github => ['http://github.com/mattlehning', 'mattlehning'],
github => ['http://github.com/ehsan', 'ehsan'];

triggers any => 'hijri', 'gregorian', 'jalali';

my $calendars = LoadFile(share('calendars.yml'));
Expand Down
14 changes: 0 additions & 14 deletions lib/DDG/Goodie/CalendarToday.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ with 'DDG::GoodieRole::Dates';
zci answer_type => 'calendar';
zci is_cached => 0;

primary_example_queries "calendar";
secondary_example_queries "calendar november",
"calendar next november",
"calendar november 2015",
"cal 29 nov 1980",
"cal 29.11.1980",
"cal 1980-11-29";

description "Print calendar of current / given month and highlight (to)day";
name "Calendar Today";
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/CalendarToday.pm';
category "dates";
topics "everyday";
attribution email => ['[email protected]', '[email protected]'];
triggers startend => 'calendar', 'cal';

# define variables
Expand Down
Loading

0 comments on commit f9117a5

Please sign in to comment.