This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
function Dog (name){ | |
this.bark = function (){ | |
var dogprop = { | |
type: 'Animal' | |
} | |
alert (name+': Guaw!! I am a '+dogprop.type); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
var dog ={ | |
name: '', | |
bark: function(name){ | |
alert (dog.name+': Guaw!!'); | |
} | |
} | |
var d = dog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
var dog ={ | |
name: '', | |
bark: function(name){ | |
alert (dog.name+': Guaw!!'); | |
} | |
} | |
var d = dog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
class MegaAnfitrion | |
attr_accessor :nombres | |
# Crear el objeto | |
def initialize(nombres = "Mundo") | |
@nombres = nombres | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
Class Perro | |
attr_accessor :nombre | |
attr_accessor :edad | |
def initialize(nombre="Mundo",edad="0") | |
@nombre=nombre | |
@edad=edad | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect': SSL_connect returned=1 errno=0 | |
state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) | |
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `block in connect' | |
from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:44:in `timeout' | |
from C:/Ruby192/lib/ruby/1.9.1/timeout.rb:87:in `timeout' | |
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:678:in `connect' | |
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:637:in `do_start' | |
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:626:in `start' | |
from C:/Ruby192/lib/ruby/1.9.1/open-uri.rb:306:in `open_http' | |
from C:/Ruby192/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script type="text/javascript"> | |
alert("Hello World!") | |
document.writeln(new Date()+"<br>") | |
var _sum1 = 40 | |
var _sum2 = 30 | |
var res = _sum1 + _sum2 | |
document.write(res) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Auto { | |
private String Patente; | |
private static int cantidadDeAutos; | |
public Auto (String patente){ | |
this.Patente = patente; | |
cantidadDeAutos ++; | |
} | |
public static int getcantidad(){ | |
return cantidadDeAutos; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function valorAuto (valor,modelo,año){ | |
if (typeof(valor) != "number" || valor < 0) { | |
console.error ("Ingrese un numero como primer parametro"); | |
return; | |
} | |
if (typeof(modelo) != "string" || modelo.lenght <= 0) { | |
console.error ("Ingrese un texto como segundo parametro"); | |
return; | |
} | |
if (typeof(año) != "number" || valor < 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Analisis { | |
private String Descripcion; | |
private int Precio; | |
/** | |
* @return the Descripcion | |
*/ | |
public String getDescripcion() { | |
return Descripcion; | |
} |
OlderNewer