Next refresh should show more results. ( run in 0.622 )
view release on metacpan or search on metacpan
public/javascripts/ace.js view on Meta::CPAN
(function(){function o(n){var i=e;n&&(e[n]||(e[n]={}),i=e[n]);if(!i.define||!i.define.packaged)t.original=i.define,i.define=t,i.define.packaged=!0;if(!i.require||!i.require.packaged)r.original=i.require,i.require=r,i.require.packaged=!0}var ACE_NAMES...
window.require(["ace/ace"], function(a) {
if (a) {
a.config.init(true);
a.define = window.define;
}
view all matches for this distribution
view release on metacpan or search on metacpan
share/public/javascripts/jquery.dataTables.min.js view on Meta::CPAN
b?-1:0}});cb("");h.extend(p.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Xa(a,c)?"num"+c:null},function(a){if(a&&(!Yb.test(a)||!Zb.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||H(a)?"date":null},function(a,b...
typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(p.ext.type.search,{html:function(a){return H(a)?a:"string"===typeof a?a.replace(Nb," ").replace(wa,""):""},string:function(a){return H(a)?a:"string"===typeof a?a.replace(Nb," "):a}});h.extend(!0,p...
b,c,d){var e=c.idx;h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(f,g,h,i){if(a===g){b.removeClass(d.sSortAsc+" "+d.sSor...
i[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});p.render={number:function(a,b,c,d){return{display:function(e){var f=0>e?"-":"",e=Math.abs(parseFloat(e)),g=parseInt(e,10),e=c?b+(e-g).toFixed(c).substring(2):"";return f+(d||"")+g.toString().repl...
_fnColumnIndexToVisible:Y,_fnVisbleColumns:Z,_fnGetColumns:X,_fnColumnTypes:Da,_fnApplyColumnDefs:hb,_fnHungarianMap:T,_fnCamelToHungarian:G,_fnLanguageCompat:N,_fnBrowserDetect:fb,_fnAddData:I,_fnAddTr:ha,_fnNodeToDataIndex:function(a,b){return b._D...
_fnDeleteIndex:ka,_fnInvalidateRow:la,_fnGetRowElements:ia,_fnCreateTr:Fa,_fnBuildHead:ib,_fnDrawHead:ba,_fnDraw:K,_fnReDraw:L,_fnAddOptionsHtml:lb,_fnDetectHeader:aa,_fnGetUniqueThs:ma,_fnFeatureHtmlFilter:nb,_fnFilterComplete:ca,_fnFilterCustom:wb,...
_fnPageChange:Ra,_fnFeatureHtmlProcessing:ob,_fnProcessingDisplay:B,_fnFeatureHtmlTable:pb,_fnScrollDraw:W,_fnApplyToChildren:F,_fnCalculateColumnWidths:Ca,_fnThrottle:Ma,_fnConvertToWidth:Cb,_fnScrollingWidthAdjust:Eb,_fnGetWidestNode:Db,_fnGetMaxLe...
_fnCallbackReg:x,_fnCallbackFire:u,_fnLengthOverflow:Qa,_fnRenderer:La,_fnDataSource:z,_fnRowAttributes:Ia,_fnCalculateEnd:function(){}});h.fn.dataTable=p;h.fn.dataTableSettings=p.settings;h.fn.dataTableExt=p.ext;h.fn.DataTable=function(a){return h(t...
document);
view all matches for this distribution
view release on metacpan or search on metacpan
share/mib/RMON2-MIB.txt view on Meta::CPAN
it is associated with will discard the packet if the packet
doesn't match this protocol directory entry."
DEFVAL { 0 }
::= { filter2Entry 2 }
-- Conformance Macros
rmon2MIBCompliances OBJECT IDENTIFIER ::= { rmonConformance 1 }
rmon2MIBGroups OBJECT IDENTIFIER ::= { rmonConformance 2 }
rmon2MIBCompliance MODULE-COMPLIANCE
view all matches for this distribution
view release on metacpan or search on metacpan
bin/plsh.pl view on Meta::CPAN
=head1 CONFIGURATION
An example '.plshrc' file.
use App::PerlShell::Plugin::Macros;
# do not require a semicolon to terminate each line
$ENV{PERLSHELL_SEMIOFF}=1;
# turn on feature 5.10 (use feature ':5.10';)
$ENV{PERLSHELL_FEATURE}=":5.10";
view all matches for this distribution
view release on metacpan or search on metacpan
t/oddmuse-wiki.pl view on Meta::CPAN
$RcFile, $RcOldFile, $IndexFile, $NoEditFile, $VisitorFile, $DeleteFile, $RssLicense,
$FreeLinkPattern, $LinkPattern, $FreeInterLinkPattern, $InterLinkPattern,
$UrlPattern, $FullUrlPattern, $InterSitePattern,
$UrlProtocols, $ImageExtensions, $LastUpdate,
%LockOnCreation, %PlainTextPages, %AdminPages,
@MyAdminCode, @MyFormChanges, @MyInitVariables, @MyMacros, @MyMaintenance,
$DocumentHeader, %HtmlEnvironmentContainers, $FS, $Counter, @Debugging);
# Internal variables:
our ($q, $bol, $OpenPageName, %Page, %Translate, %IndexHash, @IndexList,
@HtmlStack, @HtmlAttrStack, @Blocks, @Flags,
t/oddmuse-wiki.pl view on Meta::CPAN
return $result if defined($result);
}
return;
}
sub RunMyMacros {
$_ = shift;
foreach my $macro (@MyMacros) { $macro->() };
return $_;
}
sub PrintWikiToHTML {
my ($markup, $is_saving_cache, $revision, $is_locked) = @_;
t/oddmuse-wiki.pl view on Meta::CPAN
$string = AddComment($old, $comment) if defined $comment;
if ($comment and substr($string, 0, length($DeletedPage)) eq $DeletedPage) { # look ma, no regexp!
$string = substr($string, length($DeletedPage)); # undelete pages when adding a comment
}
$string .= "\n" if ($string !~ /\n$/); # add trailing newline
$string = RunMyMacros($string); # run macros on text pages only
}
my %allowed = map {$_ => 1} @UploadTypes;
if (@UploadTypes and $type and not $allowed{$type}) {
ReportError(Ts('Files of type %s are not allowed.', $type), '415 UNSUPPORTED MEDIA TYPE');
}
t/oddmuse-wiki.pl view on Meta::CPAN
# rebrowse if no changes
my $oldrev = $Page{revision};
if (GetParam('Preview', '')) { # Preview button was used
ReleaseLock();
if (defined $comment) {
BrowsePage($id, 0, RunMyMacros($comment)); # show macros in preview
} else {
DoEdit($id, $string, 1);
}
return;
} elsif ($old eq $string) {
view all matches for this distribution
view release on metacpan or search on metacpan
t/files/moby11.txt view on Meta::CPAN
BOOK I. (Folio), CHAPTER I. (Sperm Whale).--This whale,
among the English of old vaguely known as the Trumpa whale and
the Physeter whale, and the Anvil Headed whale, is the present
Cachalot of the French, and the Pottsfich of the Germans,
and the Macrocephalus of the Long Words. He is, without doubt,
the largest inhabitant of the globe; the most formidable of all
whales to encounter; the most majestic in aspect; and lastly,
by far the most valuable in commerce; he being the only creature
from which that valuable substance, spermaceti, is obtained.
All his peculiarities will, in many other places, be enlarged upon.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/RoboBot.pm view on Meta::CPAN
simultaneously (critical for some plugins like ChannelLink which let you create
your own bridges between disparate networks), even across different protocols.
The only practical limits are memory and bandwidth for the host running your
bot.
=item * Macros
User-defined macros are core to App::RoboBot's operation and allow authorized
users on your chat services to define new functionality for the bot on the fly
using a Lisp-like (emphasis on the "like") language. Macros can invoke
functions, other macros, and even create more macros. Macros use the exact same
S-Expression language as everything else in the bot, and have access to the
full functionality.
=item * Plugins
lib/App/RoboBot.pm view on Meta::CPAN
}
$logger->debug('Plugin post-initialization hooks finished.');
# Pre-load all saved macros
$self->macros({ App::RoboBot::Macro->load_all($self) });
# TODO: This is an awful hack around the fact that nested macros get parsed incorrectly
# the first time around, depending on their load order out of the database. The
# Parser module doesn't know about their name yet, so it parses them as a String
# instead of a Macro object. That should get fixed in a cleaner way, but for now
# we can just load them a second time. All their names will be available for the
# Parser and we'll just overwrite their definitions with the correct versions.
$self->macros({ App::RoboBot::Macro->load_all($self) });
$logger->debug('Macro initializations finished.');
}
sub run {
my ($self) = @_;
lib/App/RoboBot.pm view on Meta::CPAN
my $logger = $self->logger('core.macro');
$logger->debug(sprintf('Adding macro %s for %s on %s network.', $macro_name, $nick->name, $network->name));
if (exists $self->macros->{$network->id}{$macro_name}) {
$logger->debug('Macro already exists. Overwriting definition.');
$self->macros->{$network->id}{$macro_name}->name($macro_name);
$self->macros->{$network->id}{$macro_name}->arguments($args);
$self->macros->{$network->id}{$macro_name}->definition($body);
$self->macros->{$network->id}{$macro_name}->definer($nick);
return unless $self->macros->{$network->id}{$macro_name}->save;
} else {
$logger->debug('Creating as new macro and saving definition.');
my $macro = App::RoboBot::Macro->new(
bot => $self,
network => $network,
name => $macro_name,
arguments => $args,
definition => $body,
definer => $nick,
);
return unless $macro->save;
$logger->debug('Macro saved successfully. Caching definition for future use.');
$self->macros->{$network->id} = {} unless exists $self->macros->{$network->id};
$self->macros->{$network->id}{$macro->name} = $macro;
}
lib/App/RoboBot.pm view on Meta::CPAN
return unless exists $self->macros->{$network->id}{$macro_name};
$self->macros->{$network->id}{$macro_name}->delete;
delete $self->macros->{$network->id}{$macro_name};
$logger->debug('Macro successfully removed.');
return 1;
}
sub network_by_id {
view all matches for this distribution
view release on metacpan or search on metacpan
socialcalc/socialcalcviewer.js view on Meta::CPAN
this.statuslineFull = true;
this.noRecalc = true; // don't do a recalc when loaded, so no need for external sheet routines
// Repeating macro info
this.repeatingMacroTimer = null;
this.repeatingMacroInterval = 60; // default to 60 seconds
this.repeatingMacroCommands = ""; // what to execute
SocialCalc.CurrentSpreadsheetViewerObject = this; // remember this for rendezvousing on events
return;
socialcalc/socialcalcviewer.js view on Meta::CPAN
pos = rmstr.indexOf("\n");
if (pos > 0) {
t = rmstr.substring(0, pos)-0; // get number
t2 = t;
// if (!(t > 0)) t = 60; // handles NAN, too
spreadsheet.repeatingMacroInterval = t;
spreadsheet.repeatingMacroCommands = rmstr.substring(pos+1);
if (t2 > 0) { // zero means don't start yet
spreadsheet.repeatingMacroTimer = window.setTimeout(SocialCalc.SpreadsheetViewerDoRepeatingMacro, spreadsheet.repeatingMacroInterval * 1000);
}
}
}
}
if (spreadsheet.editor.context.sheetobj.attribs.recalc=="off" || spreadsheet.noRecalc) {
socialcalc/socialcalcviewer.js view on Meta::CPAN
spreadsheet.editor.EditorScheduleSheetCommands("recalc");
}
}
//
// SocialCalc.SpreadsheetViewerDoRepeatingMacro
//
// Called by a timer. Executes repeatingMacroCommands once.
// Use the "startcmdextension repeatmacro delay" command last to schedule this again.
//
SocialCalc.SpreadsheetViewerDoRepeatingMacro = function() {
var spreadsheet = SocialCalc.GetSpreadsheetViewerObject();
var editor = spreadsheet.editor;
spreadsheet.repeatingMacroTimer = null;
SocialCalc.SheetCommandInfo.CmdExtensionCallbacks.repeatmacro = {func:SocialCalc.SpreadsheetViewerRepeatMacroCommand, data:null};
editor.EditorScheduleSheetCommands(spreadsheet.repeatingMacroCommands);
}
SocialCalc.SpreadsheetViewerRepeatMacroCommand = function(name, data, sheet, cmd, saveundo) {
var spreadsheet = SocialCalc.GetSpreadsheetViewerObject();
var rest = cmd.RestOfString();
var t = rest-0; // get number
if (!(t > 0)) t = spreadsheet.repeatingMacroInterval; // handles NAN, too, using last value
spreadsheet.repeatingMacroInterval = t;
spreadsheet.repeatingMacroTimer = window.setTimeout(SocialCalc.SpreadsheetViewerDoRepeatingMacro, spreadsheet.repeatingMacroInterval * 1000);
}
SocialCalc.SpreadsheetViewerStopRepeatingMacro = function() {
var spreadsheet = SocialCalc.GetSpreadsheetViewerObject();
if (spreadsheet.repeatingMacroTimer) {
window.clearTimeout(spreadsheet.repeatingMacroTimer);
spreadsheet.repeatingMacroTimer = null;
}
}
//
// SocialCalc.SpreadsheetViewerDoButtonCmd(e, buttoninfo, bobj)
view all matches for this distribution
view release on metacpan or search on metacpan
# to choose which prompt to process
$ spread-revolutionary-date \
--targets=Mastodon \
--msgmaker=Gemini \
--gemini_api_key=ApiKey \
--gemini_process=MacronJokeColuche \
--gemini_prompt 'MacronJokeColuche=Invente-moi une blague \
dans le style de Coluche sur Emmanuel Macron. Pas besoin \
de dire "D\'accord, voici une blague" ou "Bien sûr, \
voici une blague dans le style de Coluche sur Emmanuel \
Macron" avant la blague.' \
--gemini_img_path "MacronJokeColuche='/my/path/to/image.png'" \
--gemini_img_alt "MacronJokeColuche='Caricature de Coluche \
disant : « Câest lâhistoire dâun mec⦠» avec une caricature \
de macron'" \
# Spread Gemini searching for real time weather on Mastodon
# NB: usually prompts are defined in configuration file along
# See https://ai.google.dev/gemini-api/docs/api-key
api_key = 'GEMINI_API_KEY'
prompt FamousBirthday = 'Which famous people have their birthday on $month_name $day? Give a list of up to 6 people, then after the list give the unformatted URL of the Wikipedia page of only one of them, no comments and no need for an i...
intro FamousBirthday = 'FamousBirthday=Famous people born on $month_name $day for better or for worse:'
prompt MacronJokeColuche = 'Invente-moi une blague dans le style de Coluche sur Emmanuel Macron. Pas besoin de dire "D\'accord, voici une blague" ou "Bien sûr, voici une blague dans le style de Coluche sur Emmanuel Macron" avant la blague....
img_path MacronJokeColuche = '/usr/local/share/perl/5.32.1/auto/share/dist/App-SpreadRevolutionaryDate/images/coluche_macron.png'
img_alt MacronJokeColuche = 'Caricature de Coluche disant : « Câest lâhistoire dâun mec⦠» avec une caricature de macron'
prompt BlanquiRevival = 'Invente-moi un dicton révolutionnaire dans le style d\'Auguste Blanqui. Ne fais pas d\'introduction.'
img_url BlanquiRevival = 'https://example.com/imgs/my_image.jgp'
prompt MeteoParis = 'Quelle est la météo aujourd\'hui à Paris, avec la température, selon meteo-paris.com, ne devine pas, va chercher l\'information.'
search MeteoParis = 1
and, then choose the prompt to use at execution time, like:
$ spread-revolutionary-date --msgmaker=Gemini --gemini_process=FamousBirthday --locale=en
$ spread-revolutionary-date --msgmaker=Gemini --gemini_process=MacronJokeColuche
$ spread-revolutionary-date --msgmaker=Gemini --gemini_process=BlanquiRevival
$ spread-revolutionary-date --msgmaker=Gemini --gemini_process=MeteoParis
These examples show how you can tweak your message to be spread. Let's
review all these options:
defining the "api_key" option. For this you need to get a Gemini API
key, by following instructions on
https://ai.google.dev/gemini-api/docs/api-key.
Then for each prompt, you have to choose an identifier, which is one
word in camel case, like FamousBirthday, MacronJokeColuche,
BlanquiRevival or MeteoParis. This prompt identifier should be the
value of the --gemini_process <ThisPrompt> command line parameter.
All other options are relative to one particular prompt, and therefore
prefixed with the corresponding identifier. Under the hood, these
view all matches for this distribution
view release on metacpan or search on metacpan
lib/App/Tel.pm view on Meta::CPAN
use POSIX qw(:sys_wait_h :unistd_h); # For WNOHANG
use Module::Load;
use App::Tel::HostRange qw (check_hostrange);
use App::Tel::Passwd;
use App::Tel::Color;
use App::Tel::Macro;
use App::Tel::Merge qw ( merge );
use App::Tel::Expect;
use Time::HiRes qw ( sleep );
use v5.10;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/UnifdefPlus.pm view on Meta::CPAN
}
return (\@params, $rsstate);
}
sub parseFuncMacro {
my $self = shift;
my $expr = shift;
my $lang = $self->{lang};
my $WS = $EXPR->{$lang}->{WHITESPACE};
lib/UnifdefPlus.pm view on Meta::CPAN
}
}
# test for function-like macro:
elsif ( my ($ws_bm, $macro, $ws_am, $params, $remainder2) =
$self->parseFuncMacro($string1)) {
#simplify expression within braces
print DBGOUT "$dbgStr ... macro: .$macro.$params.\n" if $self->{dbg};
my ( $sparams, $remainder3, $sparams_rss, $sparams_ns );
if ( $params =~ /^($WS)$/ ) {
$sparams_ns = $params;
lib/UnifdefPlus.pm view on Meta::CPAN
return ($term,max($rss,RSS_SIMPLIFIED));
}
my %makefileMacroSimplifiers = (
"or" => \&makefileSimplifyOr,
"and" => \&makefileSimplifyAnd,
"strip" => \&makefileSimplifyStrip,
# "if" => \&makefileSimplifyAnd,
);
lib/UnifdefPlus.pm view on Meta::CPAN
foreach (@parms_ns) {
my ($simplified,$dummy,$rssParm,$orig) = makefileSimplifyExpr($self, $_,$currentOpPrec,$level);
push @parms, { orig => $_, rss => $rssParm, simplified => $simplified };
}
# OK, now handle function....
if (exists $makefileMacroSimplifiers{$macroName}) {
my $method = $makefileMacroSimplifiers{$macroName};
my ($simplified, $newRss) = $self->$method($macroName.$ws1, \@parms);
$rss = max($rss,$newRss);
if ((!defined $simplified) or ($newRss == RSS_UNCHANGED)) {
$simplifiedExpr .= '$'.$openBrace.$braceExpr.$closeBrace;
} else {
view all matches for this distribution