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;
}
if (!window.ace)
window.ace = a;
for (var key in a) if (a.hasOwnProperty(key))
window.ace[key] = a[key];
window.ace["default"] = window.ace;
public/javascripts/ace/ace.js view on Meta::CPAN
var WorkerClient = function(worker) {
if (!worker.postMessage)
worker = this.$createWorkerFromOldConfig.apply(this, arguments);
this.$worker = worker;
this.$sendDeltaQueue = this.$sendDeltaQueue.bind(this);
this.changeListener = this.changeListener.bind(this);
this.onMessage = this.onMessage.bind(this);
this.callbackId = 1;
this.callbacks = {};
this.$worker.onmessage = this.onMessage;
};
(function(){
oop.implement(this, EventEmitter);
this.$createWorkerFromOldConfig = function(topLevelNamespaces, mod, classname, workerUrl, importScripts) {
if (require.nameToUrl && !require.toUrl)
public/javascripts/ace/ace.js view on Meta::CPAN
return this.$worker;
};
this.onMessage = function(e) {
var msg = e.data;
switch (msg.type) {
case "event":
this._signal(msg.name, {data: msg.data});
break;
case "call":
var callback = this.callbacks[msg.id];
if (callback) {
callback(msg.data);
delete this.callbacks[msg.id];
}
break;
case "error":
this.reportError(msg.data);
break;
case "log":
window.console && console.log && console.log.apply(console, msg.data);
break;
}
};
public/javascripts/ace/ace.js view on Meta::CPAN
this.$doc = null;
};
this.send = function(cmd, args) {
this.$worker.postMessage({command: cmd, args: args});
};
this.call = function(cmd, args, callback) {
if (callback) {
var id = this.callbackId++;
this.callbacks[id] = callback;
args.push(id);
}
this.send(cmd, args);
};
this.emit = function(event, data) {
try {
if (data.data && data.data.err)
data.data.err = {message: data.data.err.message, stack: data.data.err.stack, code: data.data.err.code};
this.$worker.postMessage({event: event, data: {data: data.data}});
public/javascripts/ace/mode-php.js view on Meta::CPAN
"array_uintersect": [
"array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback."
],
"array_uintersect_assoc": [
"array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Data is compared by using an user-supplied callback."
],
"array_uintersect_uassoc": [
"array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks."
],
"array_unique": [
"array array_unique(array input [, int sort_flags])",
"Removes duplicate values from array"
],
"array_unshift": [
"int array_unshift(array stack, mixed var [, mixed ...])",
"Pushes elements onto the beginning of the array"
],
"array_values": [
public/javascripts/ace/mode-php.js view on Meta::CPAN
"xml_set_external_entity_ref_handler": [
"int xml_set_external_entity_ref_handler(resource parser, string hdl)",
"Set up external entity reference handler"
],
"xml_set_notation_decl_handler": [
"int xml_set_notation_decl_handler(resource parser, string hdl)",
"Set up notation declaration handler"
],
"xml_set_object": [
"int xml_set_object(resource parser, object &obj)",
"Set up object which should be used for callbacks"
],
"xml_set_processing_instruction_handler": [
"int xml_set_processing_instruction_handler(resource parser, string hdl)",
"Set up processing instruction (PI) handler"
],
"xml_set_start_namespace_decl_handler": [
"int xml_set_start_namespace_decl_handler(resource parser, string hdl)",
"Set up character data handler"
],
"xml_set_unparsed_entity_decl_handler": [
public/javascripts/ace/mode-php_laravel_blade.js view on Meta::CPAN
"array_uintersect": [
"array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback."
],
"array_uintersect_assoc": [
"array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Data is compared by using an user-supplied callback."
],
"array_uintersect_uassoc": [
"array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)",
"Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks."
],
"array_unique": [
"array array_unique(array input [, int sort_flags])",
"Removes duplicate values from array"
],
"array_unshift": [
"int array_unshift(array stack, mixed var [, mixed ...])",
"Pushes elements onto the beginning of the array"
],
"array_values": [
public/javascripts/ace/mode-php_laravel_blade.js view on Meta::CPAN
"xml_set_external_entity_ref_handler": [
"int xml_set_external_entity_ref_handler(resource parser, string hdl)",
"Set up external entity reference handler"
],
"xml_set_notation_decl_handler": [
"int xml_set_notation_decl_handler(resource parser, string hdl)",
"Set up notation declaration handler"
],
"xml_set_object": [
"int xml_set_object(resource parser, object &obj)",
"Set up object which should be used for callbacks"
],
"xml_set_processing_instruction_handler": [
"int xml_set_processing_instruction_handler(resource parser, string hdl)",
"Set up processing instruction (PI) handler"
],
"xml_set_start_namespace_decl_handler": [
"int xml_set_start_namespace_decl_handler(resource parser, string hdl)",
"Set up character data handler"
],
"xml_set_unparsed_entity_decl_handler": [
public/javascripts/ace/snippets/erlang.js view on Meta::CPAN
ok. \n\
# OTP supervisor\n\
snippet supervisor\n\
-module(${1:`Filename('', 'my')`}).\n\
\n\
-behaviour(supervisor).\n\
\n\
%% API\n\
-export([start_link/0]).\n\
\n\
%% Supervisor callbacks\n\
-export([init/1]).\n\
\n\
-define(SERVER, ?MODULE).\n\
\n\
start_link() ->\n\
supervisor:start_link({local, ?SERVER}, ?MODULE, []).\n\
\n\
init([]) ->\n\
Server = {${2:my_server}, {$2, start_link, []},\n\
permanent, 2000, worker, [$2]},\n\
public/javascripts/ace/snippets/erlang.js view on Meta::CPAN
snippet gen_server\n\
-module(${1:`Filename('', 'my')`}).\n\
\n\
-behaviour(gen_server).\n\
\n\
%% API\n\
-export([\n\
start_link/0\n\
]).\n\
\n\
%% gen_server callbacks\n\
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,\n\
terminate/2, code_change/3]).\n\
\n\
-define(SERVER, ?MODULE).\n\
\n\
-record(state, {}).\n\
\n\
%%%===================================================================\n\
%%% API\n\
%%%===================================================================\n\
\n\
start_link() ->\n\
gen_server:start_link({local, ?SERVER}, ?MODULE, [], []).\n\
\n\
%%%===================================================================\n\
%%% gen_server callbacks\n\
%%%===================================================================\n\
\n\
init([]) ->\n\
{ok, #state{}}.\n\
\n\
handle_call(_Request, _From, State) ->\n\
Reply = ok,\n\
{reply, Reply, State}.\n\
\n\
handle_cast(_Msg, State) ->\n\