code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
#!/usr/bin/smjs
var filas = 5;
var columnas = 5;
var valor1 = 2;
print( marca('table'));
for (var i=0; i < filas; i=i+1 ) {
print( marca( 'tr' ));
for ( var j=0; j<columnas; j=j+1 ) {
print ( celda(Math.pow(valor1,i+j)));
}
print ( finmarca('tr'));
}
print (finmarca('table'));
function marca( m ) {
ret... | JavaScript |
#!/usr/bin/js
print("Hola, mundo"); | JavaScript |
#!/usr/bin/smjs
//Importamos clases
var Socket = java.net.Socket;
var ServerSocket = java.net.ServerSocket;
var PrintWriter = java.io.PrintWriter;
var BufferedReader = java.io.BufferedReader;
var InputStreamReader = java.io.InputStreamReader;
var puerto = 2410; //Definimos un puerto para la escucha
//Creamos el Serv... | JavaScript |
#!/usr/bin/smjs
//Importamos clases de Java
var Socket = java.net.Socket;
var PrintWriter = java.io.PrintWriter;
var BufferedReader = java.io.BufferedReader;
var InputStreamReader = java.io.InputStreamReader;
var puerto = 2410; //Puerto de conexión
var ip = "127.0.0.1"; //IP de autobucle (para ejecutar en la misma m... | JavaScript |
#!/usr/bin/smjs
var filas = 5;
var columnas = 5;
var fib1 = 1;
var fib2 = 0;
//Clase fila
function Fila(){
this.array = new Array();
this.toString = toString;
}
//Imprime la fila por pantalla
function toString(){
print(marca( 'tr' ));
for(var i=0; i<this.array.length; i=i+1){
print(marca("td")+this.array[i]... | JavaScript |
// Ejecutar el siguiente código en el navegador una vez abierta la web,
// en una consola Javascript como la de la extensión Firebug de Firefox.
function putTitulos() {
var ejs = document.getElementsByTagName('h2');
var titulos = "";
for (i in ejs){
if (ejs[i].textContent != undefined){
var titulos = titulos+e... | JavaScript |
var quiniela = {jornada1:{Madrid:2,Atleti:2,Almería:3,Graná:2},
jornada2:{
Málaga:2,
Sevilla:2,
Getafe:3,
Osasuna:2
}
}
for (var i in quiniela) {
print(i);
for (var j in quiniela[i]) {
print(j + ":"+quiniela[i][j]);
}
print("=======");
}
| JavaScript |
// ==UserScript==
// @name AAP Borrar elementos p
// @namespace http://geneura.org/projects/greasemonkey
// ==/UserScript==
var ps=document.getElementsByTagName('p');
for(i=ps.length-1;i>=0;i--) {
ps[i].parentNode.removeChild(ps[i]);
}
| JavaScript |
#!/usr/bin/js
load('Partido.js');
var equipos= new Array('Madrid', 'Barça', 'Atleti', 'Geta', 'Betis', 'Depor', 'Sevilla', 'Graná');
function jornada( estosEquipos ) {
var equiposAqui = new Array;
equiposAqui = equiposAqui.concat(estosEquipos);
var midsize = equiposAqui.length/2;
var quiniela = new Array( m... | JavaScript |
#!/usr/bin/js
load('Partido.js');
var equipos= new Array('Madrid', 'Barça', 'Atleti', 'Geta', 'Betis', 'Depor', 'Sevilla', 'Graná');
function jornada( estosEquipos ) {
var equiposAqui = new Array;
equiposAqui = equiposAqui.concat(estosEquipos);
var midsize = equiposAqui.length/2;
var quiniela = new Array( m... | JavaScript |
function modificarQuiniela(){
var partido = document.forms[0].elements[0].value;
var resultado = document.forms[0].elements[1].value;
xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById("resultados").innerHTML=xmlh... | JavaScript |
#!/usr/bin/js
// Uso: js t15.js <base> <exponente>
var javaMath = java.lang.Math;
var base = arguments[0];
var exponente = arguments[1];
resultado = javaMath.pow(base,exponente);
print(resultado);
| JavaScript |
#!/usr/bin/js
// Uso: js t15.js <base> <exponente>
var javaMath = java.lang.Math;
var base = arguments[0];
var exponente = arguments[1];
resultado = javaMath.pow(base,exponente);
print(resultado);
| JavaScript |
// ==UserScript==
// @name nav-sig
// @namespace http://geneura.org/projects/greasemonkey
// @description Navegación a la sección siguiente de AAP
// @include http://geneura.ugr.es/~jmerelo/asignaturas/*
// ==/UserScript==
// Se localizan las cabeceras de las secciones y se... | JavaScript |
// ==UserScript==
// @name del-p
// @namespace http://geneura.org/projects/greasemonkey
// @description Elimina todos los elementos <p> de la página
// @include http://geneura.ugr.es/~jmerelo/asignaturas/*
// ==/UserScript==
// Se obtienen los elementos <p> y se almacenan e... | JavaScript |
// Imprimir una tabla con formato HTML
// El primer argumento son las filas y el segundo las columnas.
var f = arguments[0];
var c = arguments[1];
// Generamos la tabla
print( "<table>");
for (i = 1; i <= f; i++) {
print( "<tr>");
for (j = 1; j <= c; j++) {
print ("<td>"+f*c+"</td>");
}
print ("</tr>"+"\n")... | JavaScript |
// Imprimir una tabla utilizando Clases
// El primer argumento son las filas y el segundo las columnas.
var f = arguments[0];
var c = arguments[1];
// Definimos la clase Fila
function Fila(columnas) {
this.columnas = columnas;
this.printFila = printFila;
}
function printFila() {
print( "<tr>");
for (j = 1; j <=... | JavaScript |
// Definición de la clase Partido
function Partido(local,visitante) {
this.local = local;
this.visitante=visitante;
this.resultado=null;
this.setResultado = setResultado;
this.toString = toString;
}
function setResultado( esteResultado ) {
if ( esteResultado == '1' || esteResultado=='x' || esteResultado... | JavaScript |
var equipos = new Array('Madrid', 'Barça', 'Atleti', 'Geta', 'Betis', 'Depor', 'Sevilla', 'Graná');
// Creamos manualmente las quinielas asignando los equipos local y visitante y el resultado del partido
var quiniela = {Partido0: {local: 'Madrid', visitante: 'Barça', resultado: '2'},
Partido1: {local:'Atleti', vis... | JavaScript |
// Programa que utiliza clases típicas de Java
var menuDia = new Array(new String("Ensalada"), new String("Carne"), new String("Postre"), new Number(8.50));
print("Menú del Día"+ "\n 1º: "+menuDia[0]+"\n 2º: "+menuDia[1]+"\n 3º: "+menuDia[2]+"\n Precio: "+menuDia[3]);
| JavaScript |
load('Partido.js');
var equipos= new Array('Madrid', 'Barça', 'Atleti', 'Geta', 'Betis', 'Depor', 'Sevilla', 'Graná');
function jornada( estosEquipos ) {
var equiposAqui = new Array;
equiposAqui = equiposAqui.concat(estosEquipos);
var midsize = equiposAqui.length/2;
var quiniela = new Array( midsize );
va... | JavaScript |
// ==UserScript==
// @name 1_9_2
// @namespace http://geneura.org/projects/greasemonkey
// @description 1_9_2
// @include http://geneura.ugr.es/~jmerelo/asignaturas/*
// ==/UserScript==
var parrafos = document.getElementsByTagName('p');
for(var secs = parrafos.length-1; secs >= 0; secs--) {
... | JavaScript |
var cadenaJava = new java.lang.String("Probando...");
print(cadenaJava); | JavaScript |
#!/usr/bin/js
function crea_tabla(fils, cols){
print("<table>");
for(i = 0; i < fils; i++) {
print(" <tr>");
for ( j = 0; j < cols; j++ ) {
print (" <td>" + "[" + i + "," + j + "]" + "</td>");
}
print(" </tr>");
}
print("</table>");
}
crea_tabla(2, 3);
| JavaScript |
#!/usr/bin/js
function Fila(fila, cols) {
this.imprime_fila = crea_fila(fila ,cols);
}
function crea_fila(fila, cols) {
print(" <tr>");
for ( j = 0; j < cols; j++ ) {
print (" <td>" + "[" + fila + "," + j + "]" + "</td>");
}
print(" </tr>");
}
function crea_tabla(fils, cols) {
print("<table>"... | JavaScript |
#!/usr/bin/js
function Fila(fila, cols) {
this.imprime_fila = crea_fila(fila ,cols);
}
function crea_fila(fila, cols) {
print(" <tr>");
for ( j = 0; j < cols; j++ ) {
print (" <td>" + "[" + fila + "," + j + "]" + "</td>");
}
print(" </tr>");
}
function crea_tabla(fils, cols) {
print("<table>"... | JavaScript |
#!/usr/bin/js
print("");
load('Partido.js');
var equipos= new Array('Madrid', 'Barsa', 'Atleti', 'Geta', 'Betis', 'Depor', 'Sevilla', 'Grana');
function jornada( estosEquipos ) {
var equiposAqui = new Array;
equiposAqui = equiposAqui.concat(estosEquipos);
var midsize = equiposAqui.length/2;
var quiniela = n... | JavaScript |
#!/usr/bin/js
function crea_tabla(fils, cols){
print("<table>");
for(i = 0; i < fils; i++) {
print(" <tr>");
for ( j = 0; j < cols; j++ ) {
print (" <td>" + "[" + i + "," + j + "]" + "</td>");
}
print(" </tr>");
}
print("</table>");
}
crea_tabla(2, 3);
| JavaScript |
#!/usr/bin/js
var partidos = {j1:{local:'Motril', visitante: 'Churriana', resultado: '2'},
j2:{local: 'Cullar', visitante: 'Saturno', resultado:'x'},
j3:{local: 'Dolar', visitante: 'Cadiar', resultado:'1'},
j4:{local: 'Lanjaron', visitante: 'Jupiter', resultado:'1'}
... | JavaScript |
// ==UserScript==
// @name 1_9_1
// @namespace http://geneura.org/projects/greasemonkey
// @description 1_9_1
// @include http://geneura.ugr.es/~jmerelo/asignaturas/*
// ==/UserScript==
var ejercicios = document.getElementsByTagName('h3');
for(var secs = 0; secs < ejercicios.length; secs++) {... | JavaScript |
#!/usr/bin/js
var partidos = {j1:{local:'Motril', visitante: 'Churriana', resultado: '2'},
j2:{local: 'Cullar', visitante: 'Saturno', resultado:'x'},
j3:{local: 'Dolar', visitante: 'Cadiar', resultado:'1'},
j4:{local: 'Lanjaron', visitante: 'Jupiter', resultado:'1'}
... | JavaScript |
#!/usr/bin/js
print("");
load('Partido.js');
var equipos= new Array('Madrid', 'Barsa', 'Atleti', 'Geta', 'Betis', 'Depor', 'Sevilla', 'Grana');
function jornada( estosEquipos ) {
var equiposAqui = new Array;
equiposAqui = equiposAqui.concat(estosEquipos);
var midsize = equiposAqui.length/2;
var quiniela = n... | JavaScript |
var request;
function cambiar_quiniela() {
request = new XMLHttpRequest();
var partido = document.getElementById('partido').value - 1;
var resultado = document.getElementById('resultado').value
var peticion_str = '/cgi-bin/servidor.pl?p=' + partido + '&r=' + resultado;
request.open('GET', peticion_str , tru... | JavaScript |
/*
XSLT jQuery Plugin - Copyright (C) 2007, Jorrit Jongma (Chainfire)
Version: 0.70
Homepage: http://www.jongma.org/webtools/jquery/
License: MIT / Public Domain (whatever works for you)
NOTE: The AJAXSLT code is included below, which has an alternate license,
which is pasted below the jQuery plugin... | JavaScript |
var canciones = new Array;
$.ajax({cache: false});
// Método que genera la URL necesaria para generar la gráfica de Gogle
function generarGrafica(titulo,ejeX,ejeY) {
var url = "http://chart.apis.google.com/chart?";
var url = url+"chxl=1:|"+encodeURI(ejeY.reverse().join("|"));
var url = url+"&chxr=0,0,"+ejeX[0];... | JavaScript |
/**
* @license
* jQuery Tools @VERSION Overlay - Overlay base. Extend it.
*
* NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
*
* http://flowplayer.org/tools/overlay/
*
* Since: March 2008
* Date: @DATE
*/
(function($) {
// static constructs
$.tools = $.tools || {version: '@VERSION'};
$.tools.overlay ... | JavaScript |
/**
* @license
* jQuery Tools @VERSION Tabs- The basics of UI design.
*
* NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
*
* http://flowplayer.org/tools/tabs/
*
* Since: November 2008
* Date: @DATE
*/
(function($) {
// static constructs
$.tools = $.tools || {version: '@VERSION'};
$.tools.tabs = {
... | JavaScript |
// ==UserScript==
// @name AAP-Ejercicios-Borrar
// @namespace http://geneura.org/projects/greasemonkey
// @description Borrar todos los elementos <p> de una página
// @include http://geneura.ugr.es/~jmerelo/asignaturas/*
// ==/UserScript==
GM_log('Entrando AAP-Nav');
var p = document.getElementsByTagName('p');
for ( ... | JavaScript |
#!/usr/bin/js
var quiniela = {1:{local:'Madrid', visitante:'Barcelona', resultado:1},2:{local:'Sevilla', visitante:'Atleti', resultado:'x'}}
var resultados= new Array;
var line = new String;
for(i in quiniela) {
switch (quiniela[i].resultado) {
case '1':
if ( resultados[quiniela[i].local] ) {
resultados[rqui... | JavaScript |
// ==UserScript==
// @author Iñaki Úcar
// @name Colaboraciones Amazings
// @version 0.3
// @description Muestra estadísticas sobre las colaboraciones de Amazings
// @namespace Amazings.es
// @include http://amazings.es/colaboradores/
// @require https://ajax.googleapis.co... | JavaScript |
#!/usr/bin/js
function FilaTabla(cols){
this.cols = cols
this.content = new Array(this.cols);
this.setContent = setContent;
this.printRows = printRows;
function setContent(col, content){
this.content[col] = content;
}
function printRows(){
for(var i=0; i<this.cols; i++){
print(marca("td")+this.conten... | JavaScript |
#!/usr/bin/js
// Definición de la clase Partido
function Partido(local,visitante) {
this.local = local;
this.visitante=visitante;
this.resultado=null;
//Estas son variables
this.setResultado = setResultado;
this.toString = toString;
// y estos son métodos de clase
}
function setResultado( esteResultad... | JavaScript |
#!/usr/bin/js
var quiniela = {1:{local:'Madrid', visitante:'Barcelona', resultado:1},2:{local:'Sevilla', visitante:'Atleti', resultado:'x'}}
var resultados= new Array;
var line = new String;
for(i in quiniela) {
switch (quiniela[i].resultado) {
case '1':
if ( resultados[quiniela[i].local] ) {
resultados[rqui... | JavaScript |
#!/usr/bin/js
function FilaTabla(cols){
this.cols = cols
this.content = new Array(this.cols);
this.setContent = setContent;
this.printRows = printRows;
function setContent(col, content){
this.content[col] = content;
}
function printRows(){
for(var i=0; i<this.cols; i++){
print(marca("td")+this.conten... | JavaScript |
#!/usr/bin/js
function crearTabla(x, y){
print(marca('table'));
for(var i=0; i<x; i++){
print(marca('tr'));
for(var j=0; j<y; j++){
print(celda("celda"));
}
print(finmarca('tr'));
}
print(finmarca('table'));
function marca(m){
return "<"+m+">";
}
function finmarca(m){
return "</"+m+">";
}
... | JavaScript |
#!/usr/bin/js
function crearTabla(x, y){
print(marca('table'));
for(var i=0; i<x; i++){
print(marca('tr'));
for(var j=0; j<y; j++){
print(celda("celda"));
}
print(finmarca('tr'));
}
print(finmarca('table'));
function marca(m){
return "<"+m+">";
}
function finmarca(m){
return "</"+m+">";
}
... | JavaScript |
// ==UserScript==
// @name AAP-Nav-Ej
// @namespace http://geneura.org/projects/greasemonkey
// @description Navegación por los ejercicios de AAP
// @include http://geneura.ugr.es/~jmerelo/asignaturas/*
// ==/UserScript==
var div = document.getElementsByClassName('ejercicio... | JavaScript |
#!/usr/bin/js
// Definición de la clase Partido
function Partido(local,visitante) {
this.local = local;
this.visitante=visitante;
this.resultado=null;
//Estas son variables
this.setResultado = setResultado;
this.toString = toString;
// y estos son métodos de clase
}
function setResultado( esteResultad... | JavaScript |
function escribir(mensaje) {
$("#info").append("<p>" + mensaje + "</p>");
$("#info").scrollTop($("#info").attr('scrollHeight'));
}
function desactivar() {
$("#colabora").val("Parar");
$(".mas").attr('disabled', true);
$(".menos").attr('disabled', true);
escribir("- Iniciando el cálculo de " + cantidad + " dígito... | JavaScript |
#! /usr/bin/env node
var fs = require('fs'),
url = require('url'),
http = require('http'),
path = require('path'),
mime = require('mime'),
api = require('./api.js');
var port = 8000,
www = path.join(__dirname, 'www'),
index = 'index.html';
var httpServer = http.createServer( function(request, response) {
var... | JavaScript |
#! /usr/bin/env node
var fs = require('fs'),
url = require('url'),
http = require('http'),
path = require('path'),
mime = require('mime'),
api = require('./api.js');
var port = 8000,
www = path.join(__dirname, 'www'),
index = 'index.html';
var httpServer = http.createServer( function(request, response) {
var... | JavaScript |
var url = require('url'),
qst = require('querystring'),
rest = require('restler'),
userpass = 'admin:existe',
uri = 'http://'+userpass+'@localhost:8080/exist/rest/db/proyecto',
timeout = 30000;
function replaceAll(text, busca, reemplaza){
while (text.toString().indexOf(busca) != -1)
text = text.toString().repl... | JavaScript |
// Cliente en Javascript
// La variable request hace referencia a la petición que hace el cliente y a la respuesta de la misma.
var request;
// La siguiente función hace la petición al servidor, mandando los datos sobre el objeto de búsqueda de la información, la temática y el idioma.
function enviarReq() {
// El... | JavaScript |
#!/usr/bin/rhino
var tabla="table";
var celda="td";
var fila="tr";
var matriz = [1,2,3];
print( "<"+tabla+">");
for (i in matriz ) {
print( "<"+fila+">");
for ( j in matriz ) {
print ("<"+celda+">"+matriz[i]*matriz[j]+"</"+celda+">");
}
print ("</"+fila+">\n");
}
print ("</"+tabla+">");
| JavaScript |
#!/usr/bin/js
print("Hola, mundo"); | JavaScript |
//Título de la película a buscar
var titulo = escape("Fanny & Alexander");
//Enviamos la petición
var http = new ActiveXObject("Microsoft.XMLHTTP");
http.open("GET", "http://www.imdbapi.com/?t=" + titulo, false);
http.send(null);
//Se recibe la respuesta en JSON
var imdbData = http.responseText;
var imdbJSON = eval("... | JavaScript |
peliactiva = "ninguna";
$(document).ready(function () {
//Variable LogIn
isLoged=false;
$('#signIn').submit(function(event) {
event.preventDefault();
var url = $(this).attr('action');
var datos = $(this).serialize();
if($('#user').val()==''){
alert("User empty");
}else if($('#pass').val()... | JavaScript |
$(document).ready(function () {
$('#signIn').submit(function(event) {
event.preventDefault();
var url = $(this).attr('action');
var datos = $(this).serialize();
$.get(url, datos, tratamientoLogin);
});
$('#buscarPelicula').submit(function(event) {
event.preventDefault();
var url = $... | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
qx.Class.define("jabber.Contacto",
{
extend : qx.ui.tree... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
/**
* This class demonstrates how to define simulated interaction tests for your
* application. See the manual for details:... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Decoration",
{
extend : qx.theme.modern.Decoration,
decorations : {}
}); | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Theme",
{
meta :
{
color : jabber.theme.Color,
decoration : jabber.theme.Decor... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Font",
{
extend : qx.theme.modern.Font,
fonts : {}
}); | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Appearance",
{
extend : qx.theme.modern.Appearance,
appearances : {}
}); | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Color",
{
extend : qx.theme.modern.Color,
colors : {}
}); | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
/* *******************************************************... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
/**
* This class demonstrates how to define unit tests for your application.
*
* Execute <code>generate.py test</code> to ... | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
qx.Class.define("jabber.Pestaniero",
{
extend : qx.ui.ta... | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
qx.Class.define("jabber.Conversacion",
{
extend : qx.ui.... | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
var instanceConexion = null; | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
/* *******************************************************... | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
qx.Class.define("jabber.LoginForm",
{
extend : qx.ui.win... | JavaScript |
/* ************************************************************************
Copyright: Juan Antonio Aldea Armenteros
License: GPL v3
Authors: Juan Antonio Aldea Armenteros
************************************************************************ */
qx.Class.define("jabber.Contactos",
{
extend : qx.ui.con... | JavaScript |
/*
* Copyright (c) 2010 Andrew Watts
*
* Dual licensed under the MIT (MIT_LICENSE.txt)
* and GPL (GPL_LICENSE.txt) licenses
*
* http://github.com/andrewwatts/ui.tabs.closable
*/
(function() {
var ui_tabs_tabify = $.ui.tabs.prototype._tabify;
$.extend($.ui.tabs.prototype, {
_tabify: function() {
... | JavaScript |
// This code was written by Tyler Akins and has been placed in the
// public domain. It would be nice if you left this header intact.
// Base64 code from Tyler Akins -- http://rumkin.com
var Base64 = (function () {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var obj = {
... | JavaScript |
/* flXHR plugin
**
** This plugin implements cross-domain XmlHttpRequests via an invisible
** Flash plugin.
**
** In order for this to work, the BOSH service *must* serve a
** crossdomain.xml file that allows the client access.
**
** flXHR.js should be loaded before this plugin.
*/
Strophe.addConnectionPlugin('flxhr',... | JavaScript |
var instanceConexion = null; | JavaScript |
/*
* Copyright (c) 2010 Andrew Watts
*
* Dual licensed under the MIT (MIT_LICENSE.txt)
* and GPL (GPL_LICENSE.txt) licenses
*
* http://github.com/andrewwatts/ui.tabs.closable
*/
(function() {
var ui_tabs_tabify = $.ui.tabs.prototype._tabify;
$.extend($.ui.tabs.prototype, {
_tabify: function() {
... | JavaScript |
// This code was written by Tyler Akins and has been placed in the
// public domain. It would be nice if you left this header intact.
// Base64 code from Tyler Akins -- http://rumkin.com
var Base64 = (function () {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var obj = {
... | JavaScript |
/* flXHR plugin
**
** This plugin implements cross-domain XmlHttpRequests via an invisible
** Flash plugin.
**
** In order for this to work, the BOSH service *must* serve a
** crossdomain.xml file that allows the client access.
**
** flXHR.js should be loaded before this plugin.
*/
Strophe.addConnectionPlugin('flxhr',... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
/**
* This class demonstrates how to define simulated interaction tests for your
* application. See the manual for details... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Decoration",
{
extend : qx.theme.modern.Decoration,
decorations :
{
}
}); | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Theme",
{
meta :
{
color : jabber.theme.Color,
decoration : jabber.theme.Decoration... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Font",
{
extend : qx.theme.modern.Font,
fonts :
{
}
}); | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Appearance",
{
extend : qx.theme.modern.Appearance,
appearances :
{
}
}); | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("jabber.theme.Color",
{
extend : qx.theme.modern.Color,
colors :
{
}
}); | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
/* ************************************************************************
#asset(jabber/*)
******************************... | JavaScript |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
/**
* This class demonstrates how to define unit tests for your application.
*
* Execute <code>generate.py test</code> to ... | JavaScript |
// **********************************************************************
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version... | JavaScript |
// *********************************************************************
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.... | JavaScript |
// *********************************************************************
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio... | JavaScript |
// **********************************************************************
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version... | JavaScript |
// **********************************************************************
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version... | JavaScript |
// **********************************************************************
//
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version... | JavaScript |
/*
* Copyright (c) 2010 Andrew Watts
*
* Dual licensed under the MIT (MIT_LICENSE.txt)
* and GPL (GPL_LICENSE.txt) licenses
*
* http://github.com/andrewwatts/ui.tabs.closable
*/
(function() {
var ui_tabs_tabify = $.ui.tabs.prototype._tabify;
$.extend($.ui.tabs.prototype, {
_tabify: function() {
... | JavaScript |
// This code was written by Tyler Akins and has been placed in the
// public domain. It would be nice if you left this header intact.
// Base64 code from Tyler Akins -- http://rumkin.com
var Base64 = (function () {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var obj = {
... | JavaScript |
/* flXHR plugin
**
** This plugin implements cross-domain XmlHttpRequests via an invisible
** Flash plugin.
**
** In order for this to work, the BOSH service *must* serve a
** crossdomain.xml file that allows the client access.
**
** flXHR.js should be loaded before this plugin.
*/
Strophe.addConnectionPlugin('flxhr',... | JavaScript |
/*
* More info at: http://phpjs.org
*
* This is version: 3.24
* php.js is copyright 2011 Kevin van Zonneveld.
*
* Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld
* (http://kevin.vanzonneveld.net), Onno Marsman, Theriault, Michael White
* (http://getsprink.com), Waldo Malqui Silva,... | JavaScript |
#!/usr/bin/rhino
var tabla="table";
var celda="td";
var fila="tr";
var matriz = [1,2,3];
print( "<"+tabla+">");
for (i in matriz ) {
print( "<"+fila+">");
for ( j in matriz ) {
print ("<"+celda+">"+matriz[i]*matriz[j]+"</"+celda+">");
}
print ("</"+fila+">\n");
}
print ("</"+tabla+">");
| JavaScript |
(function($){
/* hoverIntent by Brian Cherne */
$.fn.hoverIntent = function(f,g) {
// default configuration options
var cfg = {
sensitivity: 7,
interval: 10,
timeout: 0
};
// override configuration options with user supplied object
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
// instantiat... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.