nication channel between it and
the F<mpv> process.
It then speaks the somewhat JSON-looking (but not really being JSON)
protocol that F<mpv> implements to both send it commands, decode and
handle re
D() { 2**52 }
our $JSON = eval { require JSON::XS; JSON::XS:: }
|| do { require JSON::PP; JSON::PP:: };
our $JSON_ENCODER = $JSON->new->utf8;
our $JSON_DECODER = $JSON->new->latin1;
our
;
if ("{" eq substr $1, 0, 1) {
eval {
my $reply = $JSON_DECODER->decode ($1);
if (defined (my $event = delete $reply->{event})) {
k at its source to see how to use it
=item C<zxcvbn-build-names-data-fb-leak>
this script takes JSON files containing first/last names from a
Facebook dump, and produces text files that can be used
gle sample, since it is small. But, if you are compressing
* many similar files, like a bunch of JSON records that share the same
* structure, you can train a dictionary on ahead of time on some sam
ions {
return [ 'Avoid dates and years that are associated with you' ];
}
around fields_for_json => sub {
my ($orig,$self) = @_;
( $self->$orig(), qw(year separator) )
};
1;
__END__
=
>
=head2 C<feedback_suggestions>
This class suggests not using dates.
=head2 C<fields_for_json>
The JSON serialisation for matches of this class will contain C<token
i j guesses guesses_log10 year
rl-Tables-Quotes-JamesFT>.
=head1 SEE ALSO
Source: L<https://github.com/JamesFT/Database-Quotes-JSON> (Jan 23, 2017
version).
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 CONTRIBUTING
To
ggestions {
return [ 'Use a longer keyboard pattern with more turns' ];
}
around fields_for_json => sub {
my ($orig,$self) = @_;
( $self->$orig(), qw(graph_name shifted_count turns) )
};
d patterns are easy to guess,
and to use longer and less straight ones.
=head2 C<fields_for_json>
The JSON serialisation for matches of this class will contain C<token
i j guesses guesses_log10 grap
fields_for_json { qw(token i j guesses guesses_log10) }
sub TO_JSON {
my ($self) = @_;
return {
class => ref($self),
map { $_ => $self->$_ } $self->fields_for_json,
};
}
=back
=head2 C<TO_JSON>
=head2 C<fields_for_json>
Matches can be serialised to JSON. The serialisation will be a
dictionary with all the fields returned by L<< /C<fields_for_json>
>>. By default, i
against the L<Python
port's|https://github.com/dwolfhub/zxcvbn-python>
F<password_expected_value.json> test. When the dictionaries contain
exactly the same data (including some words that are loaded
s
=back
All the objects in the returned value can be serialised to JSON, if
you set C<convert_blessed> or equivalent in your JSON library.
=head3 Options
my $strength = password_strength($passwo
package Plack::Middleware::Auth::JWT;
# ABSTRACT: Token-based Auth (aka Bearer Token) using JSON Web Tokens (JWT)
our $VERSION = '0.907'; # VERSION
use 5.010;
use strict;
use warnings;
use parent qw
_name token_query_name _env);
use Plack::Request;
use Crypt::JWT 0.020 qw(decode_jwt);
use JSON qw(encode_json);
sub prepare_app {
my $self = shift;
# some defaults
$self->psgix_claims('
nv->{HTTP_ACCEPT} =~ m{application/json}i ) {
my $ident = $body =~/exp claim check failed/ ? 'token_expired' : 'token_invalid';
my $data = encode_json({
ident=>$ident,
< Linux version 5.4.0-91-generic >>.
Benchmark with C<< bencher -m String::PodQuote --env-hashes-json '[{"PERL5OPT":"-Iarchive/String-PodQuote-0.002/lib"},{"PERL5OPT":"-Iarchive/String-PodQuote-0.003
'Avoid years that are associated with you' )
: (),
];
}
around fields_for_json => sub {
my ($orig,$self) = @_;
( $self->$orig(), qw(regex_name) )
};
1;
__END__
=pod
ing recent years. At the moment, there's no
feedback for other regexes.
=head2 C<fields_for_json>
The JSON serialisation for matches of this class will contain C<token
i j guesses guesses_log10 rege
meeting given criteria, and display the results as a human-readable summary.
(It I<should> offer JSON output as well, but alas it does not right now.)
This command also lets you view and modify a bl
elta;
}
$update->($i,$length-1,$last_delta);
return \@matches;
}
around fields_for_json => sub {
my ($orig,$self) = @_;
( $self->$orig(), qw(ascending) )
};
1;
__END__
=pod
nces of characters whose codepoints
increase or decrease by a constant.
=head2 C<fields_for_json>
The JSON serialisation for matches of this class will contain C<token
i j guesses guesses_log10 asce
blocklist-management stuff should really have its own command.
(GitHub issue #32)
This should be able to output JSON representations of webmentions
(GitHub issue #8)
=head1 SEE ALSO
L<whim>
=cut
'@' instead of 'a' don't help very much};
}
return \@suggestions;
}
around fields_for_json => sub {
my ($orig,$self) = @_;
( $self->$orig(), qw(dictionary_name reversed rank substi
cters"
substitutions, and writing things backwards are not very useful.
=head2 C<fields_for_json>
The JSON serialisation for matches of this class will contain C<token
i j guesses guesses_log10 dict
r splitpath curdir/;
use Getopt::Long 2.36 qw/GetOptionsFromArray/;
use JSON::PP 2 qw/encode_json decode_json/;
use HTTP::Tiny;
use Path::Tiny;
use Archive::Tar;
use IO::File;
use IO::U
return do { local $/; <$fh> };
}
sub get_meta {
my ($metafile) = grep { -e $_ } qw/META.json META.yml/ or die "No META information provided\n";
return CPAN::Meta->load_file($metafile);
}
= @_;
rmtree( $_, $opt{verbose} ) for qw/blib temp Build _build_params MYMETA.yml MYMETA.json/;
return 0;
}
);
sub Build {
my $action = @ARGV && $ARGV[0] =~ /\A\w+\z/ ? shift
ontent-Type'} = 'application/json' if %params;
my @extra = %params ? (json => \%params) : ();
my $tx = $ua->build_tx($method => $self->{endpoint} . $url . '.json' . $query_params => $header
ept('application/json');
$tx = $ua->start($tx);
if ($tx->res->headers->content_type and $tx->res->headers->content_type =~ 'application/json') {
return $tx->res->json;
}
if (!
;
use URI::Escape;
use Cpanel::JSON::XS;
my $json = Cpanel::JSON::XS->new;
$json->allow_bignum(1);
$json->allow_blessed(1);
$json->canonical(0);
$json->pretty(0);
$json->utf8(1);
my $first_doc= 1;
m
=> '_cat/health',
param => '',
send_data => '',
format => 'data' # json, json_pretty, yaml, txt, data
};
# Set properties from arguments
for (my($i,$j)=(0,1); $i < sca
bj->{connect}->request('GET', "$obj->{url}/_cat/nodes?format=json&pretty=false&h=name,master", {headers=> {'Content-Type'=>'application/json'}});
$obj->{error}=0;
unless ($response->{success}) {
mns;
my $list = $c->stranici->all_for_list($user, $c->stash('domain')->{domain},
$preview, $c->language, $in);
return $c->render(($mode eq 'development' ? 'openapi' : 'json') => $list);
}
1;
V.pm"
#line 394 "./genpp.pl"
=head1 METHODS for PDL::OpenCV::FileStorage
=for ref
XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or
reading data to
ring to read the data from.
Extension of the file (.xml, .yml/.yaml or .json) determines its format (XML, YAML or JSON
respectively). Also you can append .gz to work with compressed files, f
.). A file name can also contain parameters.
You can use this format, "*?base64" (e.g. "file.json?base64" (case sensitive)), as an alternative to
FileStorage::BASE64 flag.
=item flags
Mode