<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wikiprogramming.alfredgg.dev/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wikiprogramming.alfredgg.dev/feed.php">
        <title>Programming script</title>
        <description></description>
        <link>https://wikiprogramming.alfredgg.dev/</link>
        <image rdf:resource="https://wikiprogramming.alfredgg.dev/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-13T10:29:19+0000</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:as3&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:jsadv&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:jssintaxis&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodeadv&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodejs&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodejsext&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:perl&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=script:python&amp;rev=1589016310&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wikiprogramming.alfredgg.dev/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming</title>
        <link>https://wikiprogramming.alfredgg.dev/</link>
        <url>https://wikiprogramming.alfredgg.dev/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:as3&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ActionScript 3</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:as3&amp;rev=1589016310&amp;do=diff</link>
        <description>ActionScript 3

Sintaxis básica

Variables

	*  var nombre:tipo = valor; 
	*  Tipos conocidos: Number, String

Clases y objetos


class nombre {
	accesivilidad var nombre: tipo;
	accesivilidad function nombreClase (nombre:tipo, ...) : tipo
	{}
	accesivilidad function nombre (nombre:tipo, ...) // constructor
	{}
}</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:jsadv&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>JavaScript avanzado</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:jsadv&amp;rev=1589016310&amp;do=diff</link>
        <description>JavaScript avanzado

Colecciones

Filtros

Filtrar por un campo:


var new_homes = homes.filter(function (el) {
  return el.price &lt;= 1000 &amp;&amp;
         el.sqft &gt;= 500 &amp;&amp;
         el.num_of_beds &gt;=2 &amp;&amp;
         el.num_of_baths &gt;= 2.5;
});


WebSockets


var ws = new WebSocket(&quot;ws://127.0.0.1:8888/wsock&quot;);
ws.onopen = function() {
   ws.send(&quot;Hello, world&quot;);
};
ws.onmessage = function (evt) {
	var newmsg = $(&quot;&lt;p&gt;&lt;/p&gt;&quot;).append(evt.data);
  $(&quot;#corpus&quot;).append(newmsg);
};</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:jssintaxis&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>JavaScript</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:jssintaxis&amp;rev=1589016310&amp;do=diff</link>
        <description>JavaScript

	*  Referencia de los distintos objetos.

Básico

Tipos de datos

Strings

Acciones:

	*  str1 + str2, concatenar.

Propiedades:

	*  length: Devuelve la longitud de la cadena.

Métodos:

	*  charAt(indice): Devuelve el carácter situado en la posición especificada por 'indice'.</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodeadv&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>NodeJS avanzado</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodeadv&amp;rev=1589016310&amp;do=diff</link>
        <description>NodeJS avanzado

Pequeños conceptos

	*  Recogeremos los parámetros de un ejecutable con process.argv.

Para saber si un script se está ejecutando diréctamente y no como módulo require.main se asigna como su propio módulo:


if (require.main === module) {
    // código main
}</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodejs&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>NodeJS</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodejs&amp;rev=1589016310&amp;do=diff</link>
        <description>NodeJS

Es un lenguaje que permite ejecutar scripts JavaScript utilizando el intérprete V8 de Google. Además añade una librería de acceso a red y ficheros.

	*  API de NodeJS

Básico

Uso

Instalar:


$ sudo apt-get update
$ sudo apt-get install python-software-properties python g++ make
$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodejsext&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Módulos para NodeJS</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:nodejsext&amp;rev=1589016310&amp;do=diff</link>
        <description>Módulos para NodeJS

Para instalar módulos en local:


$ npm install restler csv accounting


Módulos básicos

Restler

	*  Repositorio github

Simplifica muchas de las acciones http como obtener datos, montar una query string, serializar en formatos XML, JSON, YAML</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:perl&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Perl</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:perl&amp;rev=1589016310&amp;do=diff</link>
        <description>Perl

Nociones básicas

Sintaxis

	*  Comentario:

# Hola mundo

	*  Declaración de variables:


$nombre = &quot;Alfred&quot;;
$edad = 25;
my $x;
local $y;


Con my y local restringimos el acceso a los bloques de código (ya sean if, bucles, o simples bloques</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=script:python&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Python</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=script:python&amp;rev=1589016310&amp;do=diff</link>
        <description>Python

	*  Documentación extra
	*  Documentos externos (artículos, tutoriales...)

Básico

Range

	*  Para hacer un for del 0 al 10 podremos hacer: 

for i in range(0,10)

	*  El range(0,10) devuelve los números del 0 al 9 sin incluir el 10. 
	*  Lo que hace al llamar a la función range es devolver una lista con los números del 0 al 10, sin inculir el último.</description>
    </item>
</rdf:RDF>
