Group
Extension

Matches 35358

Device-WebIO-Dancer ( T/TM/TMURRAY/Device-WebIO-Dancer-0.004.tar.gz, TMURRAY, 2016; MetaCPAN )
Device-WebIO-Dancer/lib/Device/WebIO/Dancer.pm ( view source; MetaCPAN )
    return '';
};


get '/map' => sub {
    return to_json( $webio->pin_desc( $default_name ) );
};

get qr{\A / \* }x => sub {
    return to_json( $webio->all_desc( $default_name ) );
};


get '/' =>
s point, you should be able to startup Apache.  Calling 
C<http://example.com/*> should get you a JSON dump of the pins.  Calling 
C<http://example.com/app/app/gpio-header/index.html> should get you a
Dist-Zilla-PluginBundle-Author-MAXHQ ( M/MA/MAXHQ/Dist-Zilla-PluginBundle-Author-MAXHQ-3.3.3.tar.gz, MAXHQ, 2016; MetaCPAN )
Dist-Zilla-PluginBundle-Author-MAXHQ/lib/Dist/Zilla/PluginBundle/Author/MAXHQ.pm ( view source; MetaCPAN )
generation --- generate files
#pod     #
#pod     [ModuleBuild]
#pod     [MetaYAML]
#pod     [MetaJSON]
#pod     [Manifest]
#pod     [License]
#pod     [ReadmeAnyFromPod]
#pod     [CPANFile]
#pod
#pod
                 # add META.yml (supports CPAN::Meta::Spec v1.4)
        'MetaJSON',                       # add META.json (supports CPAN::Meta::Spec v2.0 upwards)
        'CPANFile',                 
};
        if ($dzil_meta->install_json) {
            $self->log("Excluding packages of Dist::Zilla distribution");
            $dzil_pkg = $dzil_meta->install_json_hash->{provides};
        }

     
CGI-Github-Webhook ( A/AB/ABE/CGI-Github-Webhook-0.06.tar.gz, ABE, 2016; MetaCPAN )
CGI-Github-Webhook/lib/CGI/Github/Webhook.pm ( view source; MetaCPAN )
e warnings;
use 5.010;

our $VERSION = '0.06'; # VERSION

use Moo;
use CGI;
use Data::Dumper;
use JSON;
use Try::Tiny;
use Digest::SHA qw(hmac_sha1_hex);
use File::ShareDir qw(module_dir);
use File::C
>param('POSTDATA');
    } else {
        return;
    }
}


has payload_json => (
    is => 'lazy',
    );

sub _build_payload_json {
    my $self = shift;
    my $q    = $self->cgi;

    my $payload =
});
    if ($self->payload) {
        $payload = $self->payload;
        try {
            decode_json($payload);
        } catch {
            s/\"/\'/g; s/\n/ /gs;
            $payload = qq({"error"
WebService-Pingboard ( R/RC/RCL/WebService-Pingboard-0.009.tar.gz, RCL, 2016; MetaCPAN )
WebService-Pingboard/lib/WebService/Pingboard.pm ( view source; MetaCPAN )
s::Validate;
use MooseX::WithCache;
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Headers;
use JSON;
use Class::Date qw/gmdate/;
use POSIX; #strftime
use YAML qw/Dump LoadFile DumpFile/;
use Encode
h = HTTP::Headers->new();
    $h->header( 'Content-Type'	=> "application/json" );
    $h->header( 'Accept'	=> "application/json" );

    my $data;
    #Only password flow allows refresh tokens
    if(
TP::Headers->new();
        $h->header( 'Content-Type'	=> "application/json" );
        $h->header( 'Accept'	=> "application/json" );
        $h->header( 'Authorization' => "Bearer " . $self->valid_ac
Test-HTTP-MockServer ( D/DR/DRUOSO/Test-HTTP-MockServer-v0.0.1.tar.gz, DRUOSO, 2016; MetaCPAN )
Test-HTTP-MockServer/lib/Test/HTTP/MockServer/REST.pm ( view source; MetaCPAN )
package Test::HTTP::MockServer::REST;
use strict;
use warnings;
use JSON::XS;

sub new {
    my ($class) = shift;
    $class = ref $class || $class;
    my %dispatch = @_;
    return bless { d => \%di
     if ($input_content && $input_ct && $input_ct eq 'application/json') {
            eval {
                $input_data = decode_json $req->content;
            };
            if ($@) {
            
 && $a eq 'application/json') {
                eval {
                    my $out = encode_json $return_data;
                    $res->header('Content-type', 'application/json');
                   
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Checks/Number.pm ( view source; MetaCPAN )
::Number;
use Test2::Bundle::Extended;

use JSON::Typist;

our $is_number = validator(sub {
  my (%params) = @_;

  return (ref($params{got}) || '') eq 'JSON::Typist::Number';
});

our $is_number_or_n
XML-LibXML-jQuery ( C/CA/CAFEGRATZ/XML-LibXML-jQuery-0.08.tar.gz, CAFEGRATZ, 2016; MetaCPAN )
XML-LibXML-jQuery/lib/XML/LibXML/jQuery.pm ( view source; MetaCPAN )
XML::LibXML;
use HTML::Selector::XPath qw/selector_to_xpath/;
use Carp qw/ confess /;
use JSON qw/ decode_json /;

our $VERSION = "0.08";

our @EXPORT_OK = qw/ j fn /;
our @EXPORT = qw/ j /;

use cons
] =~ /^\d+$/;

    # json array or object
    return decode_json($_[0])
        if  $_[0] =~ /^(?:\{|\[)/;

    # boolean
    return JSON::true  if $_[0] eq 'true';
    return JSON::false if $_[0] eq 
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Checks/Boolean.pm ( view source; MetaCPAN )
package JMAP::Validation::Checks::Boolean;

use Test2::Bundle::Extended;

our $is_boolean = validator(sub {
  my (%params) = @_;

  return (ref($params{got}) || '') eq 'JSON::PP::Boolean';
});

1;
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/SetError.pm ( view source; MetaCPAN )
::Generators::SetError;

use strict;
use warnings;

use JMAP::Validation::Generators::String;
use JSON::Typist;

my %types = (
  invalidArguments => {
    description => JMAP::Validation::Generators::
ors;

  foreach my $type (@types ? @types : (keys %types)) {
    push @SetErrors, {
      type => JSON::Typist::String->new($type),
      ($types{$type} ? (%{$types{$type}}) : ()),
    };
  }

  retur
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Tests/String.pm ( view source; MetaCPAN )
:Array;

 # data types {{{

sub is_string {
  my ($value) = @_;

  return (ref($value) || '') eq 'JSON::Typist::String';
}

# }}}

# restrictions {{{

sub has_at_least_one_character {
  my ($value) = 
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Tests/Boolean.pm ( view source; MetaCPAN )
package JMAP::Validation::Tests::Boolean;

use strict;
use warnings;

sub is_boolean{
  my ($value) = @_;

  return (ref($value) || '') eq 'JSON::PP::Boolean';
}

1;
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Checks/ContactGroup.pm ( view source; MetaCPAN )
::Tests::SetError;
use JMAP::Validation::Tests::String;
use JSON::Typist;
use Test2::Bundle::Extended;

# record types {{{

my $typist = JSON::Typist->new();

my %ContactGroup_checks = (
  id => $JMAP
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Checks/String.pm ( view source; MetaCPAN )
{{

our $is_string = validator(sub {
  my (%params) = @_;

  return (ref($params{got}) || '') eq 'JSON::Typist::String';
});

# }}}

# restrictions {{{

our $is_string_or_null = in_set($is_string, U()
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Tests/Number.pm ( view source; MetaCPAN )
package JMAP::Validation::Tests::Number;

use strict;
use warnings;

sub is_number {
  my ($value) = @_;

  return (ref($value) || '') eq 'JSON::Typist::Number';
}

1;
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/String.pm ( view source; MetaCPAN )
Validation::Generators::String;

use strict;
use warnings;

use Data::Fake::Text;
use JSON::PP;
use JSON::Typist;

sub generate {
  return JSON::Typist::String->new(join '', fake_words(4)->());
}

1;
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/ContactInformation.pm ( view source; MetaCPAN )
tactInformation;

use strict;
use warnings;

use JMAP::Validation::Generators::String;
use JSON::PP;
use JSON::Typist;

my %types = (
  emails => [qw{
    personal
    work
    other
  }],
  phones =>
>generate(), undef) {
      foreach my $isDefault (JSON::PP::true, JSON::PP::false) {
        push @ContactInformation, {
          type      => JSON::Typist::String->new($type_value),
          label
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/File.pm ( view source; MetaCPAN )
tion::Generators::File;

use strict;
use warnings;

use JMAP::Validation::Generators::String;
use JSON::Typist;

sub generate {
  my $blobId = 1;

  my @files;

  foreach my $type (JMAP::Validation::G
each my $name (JMAP::Validation::Generators::String->generate(), undef) {
      foreach my $size (JSON::Typist::Number->new(int(rand(2**32))), undef) {
        push @files, {
          blobId => JMAP:
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators.pm ( view source; MetaCPAN )
gs;

use JSON::PP;
use JSON::Typist;
use JMAP::Validation::Generators::String;

sub true {
  return JSON::PP::true;
}

sub false {
  return JSON::PP::false;
}

sub negative_int {
  return JSON::Typist
eturn JSON::Typist::Number->new(0-(rand 2**64));
}

sub zero {
  return JSON::Typist::Number->new(0);
}

sub int {
  return JSON::Typist::Number->new(int(rand 2**64));
}

sub real {
  return JSON::Typ
JMAP-Validation ( A/AL/ALFIE/JMAP-Validation-0.005.tar.gz, ALFIE, 2016; MetaCPAN )
JMAP-Validation/lib/JMAP/Validation/Generators/Contact.pm ( view source; MetaCPAN )
ion;
use JMAP::Validation::Generators::File;
use JMAP::Validation::Generators::String;
use JSON::PP;
use JSON::Typist;

sub generate {
  my ($type) = @_;

  my @avatars = (
    JMAP::Validation::Gener
Generators::Address::generate()],
    [],
  );

  my @Contacts;

  foreach my $isFlagged (JSON::PP::true, JSON::PP::false) {
    foreach my $avatar (@avatars) {
      foreach my $email (@{$ContactInfo
String->generate(),
                birthday    => JSON::Typist::String->new(fake_past_datetime('%Y-%m-%d')->()),
                anniversary => JSON::Typist::String->new(fake_past_datetime('%Y-%m-%d'
Log-Radis ( Z/ZU/ZURBORG/Log-Radis-0.003.tar.gz, ZURBORG, 2016; MetaCPAN )
Log-Radis/lib/Log/Radis.pm ( view source; MetaCPAN )
is is a graylog logging radio through a redis database

use Moo 2;
use Redis 1.980;
use JSON 2.90 qw(encode_json);
use Time::HiRes 1.9726;
use Sys::Hostname ;
use Carp qw(croak carp);
use Scalar::Util
lf{timestamp} //= Time::HiRes::time();

    # graylog seems to have problems with float values in json
    # so force string, which works fine
    $gelf{timestamp} = ''.$gelf{timestamp};

    $gelf{sh

}


sub push {
    my ($self, $gelf) = @_;
    if (ref $gelf eq 'HASH') {
        $gelf = encode_json($gelf);
    }
    $self->redis->lpush($self->queue, $gelf);
}

1;

__END__

=pod

=head1 NAME

Lo

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.