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
var objectCreator = function () { | |
var value = 0; | |
return { | |
increment: function (inc) { | |
value += typeof inc === 'number' ? inc : 1; | |
}, | |
getValue: function () { | |
return value; | |
} |
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 | |
# Usa espacios, no tabs | |
Class Perro | |
attr_accessor :nombre | |
attr_accessor :edad | |
# Edad no es un numero ? |
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
btnHola.setOnClickListener(new OnClickListener() { | |
public void onClick(View arg0) { | |
... my code here... | |
} | |
}); |
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
{ | |
"doc" : "A form that includes the Greeting resource plus some extra fields", | |
"type" : "record", | |
"name" : "GreetingForm", | |
"include" : [ "Greeting" ], | |
"fields" : | |
[ | |
{ | |
"name" : "some-extra-field-1", | |
"type" : "string", |
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
import sbt._ | |
import Keys._ | |
import de.johoop.testngplugin.TestNGPlugin._ | |
object NGPlugin extends Plugin { | |
override def settings: Seq[Setting[_]] = super.settings ++ Seq( | |
scalaSource in Test <<= baseDirectory / "junit", | |
javaSource in Test <<= baseDirectory / "junit" |
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
import sbt._ | |
import Keys._ | |
import de.johoop.testngplugin.TestNGPlugin._ | |
object NGPlugin extends Plugin { | |
override def settings: Seq[Setting[_]] = super.settings ++ Seq( | |
scalaSource in Test <<= baseDirectory / "junit", | |
javaSource in Test <<= baseDirectory / "junit" |
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
// E1 | |
((2 == 3) && ("asdf" > "ASDF") && ( 4/2 == 2)) || (false && true) | |
(false && true && true) || false) | |
false || false | |
false | |
// E2 | |
(Math.max(2,3) == 3) && (1+2+3+4+5+6+7+8+9+10 == 55) | |
true && true |
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
$('#enviarEmail').click(function () { | |
$.ajax({ | |
url: '@Url.Action("SetEmail","Email")', | |
type: 'POST', | |
dataType: "json", | |
data: { text: $('#email').val() }, | |
success: function (data) { | |
alert('Gracias por suscribirse!'); | |
$('#email').val(''); | |
}, |
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
algo.append($("<div>").attr("class", "people-panel-item-table-row-cell") | |
.append($("<div>").attr("class","info-header-name") | |
.attr("id", "info-header-name-" + item.index) | |
.html(item.contact.displayName())) |
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
// supongamos que se llama 'coso' | |
coso.append($("<div>") | |
.attr("class", "people-panel-item-table-row-cell") | |
.append($("<div>") .append($("<div>") | |
.attr("class","info-header-name") | |
.attr("id", "info-header-name-" + item.index) | |
.html(item.contact.displayName())); | |
if(usuarioLogueado) { |
OlderNewer