view release on metacpan or search on metacpan
lib/App/ElasticSearch/Utilities.pm view on Meta::CPAN
The script expects the last line to contain the password in plaintext.
=item B<noop>
Prevents any communication to the cluster from making changes to the settings or data contained therein.
In short, it prevents anything but HEAD and GET requests, B<except> POST requests to the _search endpoint.
=item B<timeout>
Timeout for connections and requests, defaults to 10.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Filite/Client.pm view on Meta::CPAN
my $mode = $self->_guess_mode( $file, $opts );
my $method = "share_$mode";
return $self->$method( $file, $opts );
}
sub _get_endpoint {
my ( $self, $mode ) = ( shift, @_ );
my $server = $self->server;
$server = "http://$server" unless $server =~ m{https?:}i;
$server .= '/' unless $server =~ m{/$};
return sprintf( '%s%s', $server, lc( substr( $mode, 0, 1 ) ) );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/GitGerrit.pm view on Meta::CPAN
set_credentials($username, $password, 'approve');
}
}
if ($Options{debug}) {
my ($endpoint, @args) = @_;
debug "GERRIT->$method($endpoint)";
if (@args) {
require Data::Dumper;
warn Data::Dumper::Dumper(@args);
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/HistHub.pm view on Meta::CPAN
is => 'rw',
isa => 'ArrayRef',
default => sub { [] },
);
has api_endpoint => (
is => 'rw',
isa => 'Str',
required => 1,
);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/JobLog/Command/summary.pm view on Meta::CPAN
if ( $t2->{suffix} && $t2->{suffix} eq 'x' ) {
$t2->{hour} += 12;
}
else {
carp '"' . $time
. '" invalid time expression: endpoints out of order';
}
}
delete $t1->{suffix}, delete $t2->{suffix};
return { start => $t1, end => $t2 };
}
view all matches for this distribution
view release on metacpan or search on metacpan
share/public_html/static/music_worklet_inprogress/decoder/deps/miniaudio/miniaudio.h view on Meta::CPAN
When streaming sounds, 2 seconds worth of audio data is stored in memory. Although it should work
fine, it's inefficient to use streaming for short sounds. Streaming is useful for things like music
tracks in games.
When you initialize a sound, if you specify a sound group the sound will be attached to that group
automatically. If you set it to NULL, it will be automatically attached to the engine's endpoint.
If you would instead rather leave the sound unattached by default, you can can specify the
`MA_SOUND_FLAG_NO_DEFAULT_ATTACHMENT` flag. This is useful if you want to set up a complex node
graph.
Sounds are not started by default. To start a sound, use `ma_sound_start()`. Stop a sound with
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/MultiModule/Tasks/OutOfBand.pm view on Meta::CPAN
$oob_message->{oob_tags}->{message}->{$key} = $value
if not ref $value;
}
}
}
if($filter_config and $filter_config->{transit_endpoints}) {
while(my($transit_name, $transit_def) = each %{$filter_config->{transit_endpoints}}) {
if($transit_def->{destination}) {
IPC::Transit::send(
qname => $transit_def->{qname},
message => $oob_message,
destination => $transit_def->{destination}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/ChordPro/lib/SVGPDF/Contrib/Bogen.pm view on Meta::CPAN
and y radii, with the two intersection points as inputs. There are four
possible resulting arcs, which can be selected with opts C<large> and C<dir>.
This extends the path along an arc of an ellipse of the specified x and y radii
between C<[$x1,$y1]> to C<[$x2,$y2]>. The current position is then set
to the endpoint of the arc (C<[$x2,$y2]>).
Options (C<@opts>)
=over
view all matches for this distribution
view release on metacpan or search on metacpan
public/javascripts/ace/mode-php.js view on Meta::CPAN
"bool socket_connect(resource socket, string addr [, int port])",
"Opens a connection to addr:port on the socket specified by socket"
],
"socket_create": [
"resource socket_create(int domain, int type, int protocol)",
"Creates an endpoint for communication in the domain specified by domain, of type specified by type"
],
"socket_create_listen": [
"resource socket_create_listen(int port[, int backlog])",
"Opens a socket on port to accept connections"
],
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Netdisco/Util/Web.pm view on Meta::CPAN
=head1 EXPORT_OK
=head2 request_is_api
Client has requested JSON format data and an endpoint under C</api>.
=cut
sub request_is_api {
return ((request->accept and request->accept =~ m/(?:json|javascript)/) and (
view all matches for this distribution
view release on metacpan or search on metacpan
script/peri-htserve view on Meta::CPAN
}
}
# display hint for user
if (@root_urls) {
my @ep_urls; # api endpoints
for my $root_url (@root_urls) {
for my $pkg (@pkgs) {
my $pkgp = $pkg; $pkgp =~ s!::!/!g;
push @ep_urls, $root_url . "api/$pkgp/";
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/cpan/Mojo2/UserAgent.pm view on Meta::CPAN
sub _connect {
my ( $self, $loop, $tx, $handle ) = @_;
my $t = $self->transactor;
my ( $proto, $host, $port ) =
$handle ? $t->endpoint( $tx ) : $t->peer( $tx );
my %options = ( timeout => $self->connect_timeout );
if ( $proto eq 'http+unix' ) { $options{path} = $host }
else { @options{qw(address port)} = ( $host, $port ) }
$options{socket_options} = $self->socket_options;
$options{handle} = $handle if $handle;
# SOCKS
if ( $proto eq 'socks' ) {
@options{qw(socks_address socks_port)} = @options{qw(address port)};
( $proto, @options{qw(address port)} ) = $t->endpoint( $tx );
my $userinfo = $tx->req->via_proxy( 0 )->proxy->userinfo;
@options{qw(socks_user socks_pass)} = split /:/, $userinfo if $userinfo;
}
# TLS
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Presto.pm view on Meta::CPAN
return App::Presto::Client->new(config => $self->config);
}
has config => (
is => 'rw',
handles => ['endpoint'],
);
has _stash => (
is => 'lazy',
handles => ['stash'],
view all matches for this distribution
view release on metacpan or search on metacpan
bin/proxy_that view on Meta::CPAN
=head1 DESCRIPTION
This utility starts a L<Plack> based proxy server that forwards requests
to one URL. It can create a throw-away SSL certificate and run over https,
which makes it easy to provide encrypted endpoints for local development
if your frontend has to run on https.
=head1 OPTIONS
The following options are available:
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/RoboBot/Plugin/API/Github.pm view on Meta::CPAN
my ($self, $repo) = @_;
# Update repo with polled_at = now() - 10 seconds, so that every time we
# poll GH, we're actually looking at a window of length(watcher_interval)
# offset 10 seconds in the past. This gives events on the GH side of things
# time to propogate to their API endpoints, so we don't miss out.
my $poll_t = $self->bot->config->db->do(q{
update github_repos
set polled_at = now() - interval '10 seconds'
where repo_id = ?
returning to_char(polled_at at time zone 'UTC','YYYY-MM-DD"T"HH24:MI:SS"Z"') as polled_at
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/SeismicUnixGui/sunix/transform/sugabor.pm view on Meta::CPAN
Optional parameters:
dt=(from header) time sampling interval (sec)
fmin=0 minimum frequency of filter array (hz)
fmax=NYQUIST maximum frequency of filter array (hz)
beta=3.0 ln[filter peak amp/filter endpoint amp]
band=.05*NYQUIST filter bandwidth (hz)
alpha=beta/band^2 filter width parameter
verbose=0 =1 supply additional info
holder=0 =1 output Holder regularity estimate
=2 output linear regularity estimate
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Spoor/Config.pm view on Meta::CPAN
transformer: bin/login_log_transformer.pl
transmission:
credentials:
api_identifier: api_identifier_goes_here
api_secret: api_secret_goes_here
endpoints:
report: /api/reports
host: https://spoor.capefox.co
=head1 SUBROUTINES/METHODS
view all matches for this distribution
view release on metacpan or search on metacpan
examples/complex/lib/App/Standby/Cmd/Command/complex.pm view on Meta::CPAN
App::Standby::Cmd::Command::complex - Example for a command to be run as a cronjob
=head1 DESCRIPTION
This class implements an example for a cronjob that is run once a day to keep some
complex endpoint up-to-date.
=cut
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/TimeTracker/Command/Gitlab.pm view on Meta::CPAN
return $user->{id} if $user && $user->{id};
return;
}
sub _call {
my ($self,$method, $endpoint, $args) = @_;
my $url = $self->config->{gitlab}{url}.'/api/v4/'.$endpoint;
my $res = $self->gitlab_client->request($method,$url);
if ($res->{success}) {
my $data = decode_json($res->{content});
return $data;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/TimeTracker/Command/Trello.pm view on Meta::CPAN
$self->config->{_used_config_files}->[0], 'local' );
}
}
sub _do_trello {
my ( $self, $method, $endpoint, @args ) = @_;
my $client = $self->trello_client;
exit 1 unless $client;
my $res = $client->$method( $endpoint, @args );
if ( $res->failed ) {
error_message(
"Cannot talk to Trello API: " . $res->error . ' ' . $res->code );
if ( $res->code == 401 ) {
say "Maybe running 'tracker setup_trello' will help...";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/WatchLater/YouTube.pm view on Meta::CPAN
} => $class;
}
=head2 request
my $body = $api->request($method, $endpoint, %params);
Send a request to the specified API endpoint using the given HTTP method. Query
parameters may be specified in C<%params>. Croaks if the request fails.
=cut
sub request {
my ($self, $method, $endpoint, %params) = @_;
my $url = 'https://www.googleapis.com/youtube/v3' . $endpoint;
my %headers;
if (defined $self->{token}) {
$headers{Authorization} = 'Bearer ' . $self->{token};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/coinbasepro/lite.pm view on Meta::CPAN
use Log::ger;
our %SPEC;
my %args_common = (
endpoint => {
schema => 'str*', # XXX uri
req => 1,
pos => 0,
},
args => {
view all matches for this distribution
view release on metacpan or search on metacpan
bin/colorcoke view on Meta::CPAN
my $DEBUG = $ENV{DEBUG};
our($opt_r_step, $opt_g_step, $opt_b_step) = (10) x 3;
our $opt_hex = '000000';
our $opt_starting_point = 17; # Start from 17
our $opt_endpoint = 231; # End at 231
our $opt_ansi_only = 0;
our $opt_random = 0;
our $opt_random_r = 256;
our $opt_random_g = 256;
our $opt_random_b = 256;
view all matches for this distribution
view release on metacpan or search on metacpan
1.59_06 Tue Feb 5 12:36:00 PST 2013
[Incompatible Changes]
- --mirror-index option doesn't automatically assume --mirror-only
[Improvements]
- Use versioned MetaCPAN API endpoint (oalders)
1.59_05 Mon Feb 4 11:49:40 PST 2013
[New Features]
- Support version ranges in command args and cpanfile queried agsinst MetaCPAN
with the proper version range query to get the best version that satisfies
view all matches for this distribution
view release on metacpan or search on metacpan
share/wordlist_en.tsv view on Meta::CPAN
25321 endnote
25322 endocrine
25323 endorphin
25324 endorse
25325 endowment
25326 endpoint
25331 endurable
25332 endurance
25333 enduring
25334 energetic
25335 energize
view all matches for this distribution
view release on metacpan or search on metacpan
share/man/man1/git-hub.1 view on Meta::CPAN
.Ve
.PP
to trust a list of users in one go.
.SH "Token Authentication and Scopes"
.IX Header "Token Authentication and Scopes"
Many endpoints of the GitHub v3 \s-1API\s0 require a Personal \s-1API\s0 Access Token. You can list your current tokens with this command:
.PP
.Vb 1
\& git hub tokens
.Ve
.PP
view all matches for this distribution
view release on metacpan or search on metacpan
currently it works with:
* fixed, hardcoded list of packages names
* Github GraphQL endpoint
view all matches for this distribution
view release on metacpan or search on metacpan
favor of App-cryp-exchange.
- Maintain list of pairs in App::cryp::Exchange::indodax instead of in
our dist.
- Update/fix API endpoint URL.
0.023 2018-04-06 (PERLANCAR)
- Add new pairs: ada_idr, bcd_idr.
view all matches for this distribution