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
package com.genbetadev.spring.domain; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
@Entity(name = “Player”) | |
@Table(name = “Player”) | |
public class Player implements java.io.Serializable { | |
/** | |
* serialVersionUID |
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
HTTP/1.1 200 OK | |
Last-Modified: Tue, 12 Dec 2006 03:03:59 GMT | |
ETag: "10c24bc-4ab-457e1c1f" | |
Content-Length: 12195 | |
GET /i/yahoo.gif HTTP/1.1 | |
Host: us.yimg.com | |
If-Modified-Since: Tue, 12 Dec 2006 03:03:59 GMT | |
If-None-Match: "10c24bc-4ab-457e1c1f" | |
HTTP/1.1 304 Not Modified |
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
<form id='login' action='login.php' method='post' accept-charset='UTF-8'> | |
<fieldset > | |
<legend>Genbeta Dev Acceso restringido</legend> | |
<label for='username' >Usuario :</label> | |
<input type='text' name='username' id='username' maxlength="50" /> | |
<label for='password' >Contraseña :</label> | |
<input type='password' name='password' id='password' maxlength="50" /> | |
<input type='submit' name='Submit' /> | |
</fieldset> |
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
<?PHP | |
session_start(); | |
if($_SERVER["REQUEST_METHOD"] == "POST") | |
{ | |
$usuario = "pedro"; | |
$pass= "123456"; | |
if(! ($_POST['username'] == $usuario && $_POST['password'] == $pass) ) | |
{ | |
Echo "<html>"; | |
Echo "<title>MUY mal</title>"; |
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
# Ejemplo de 'brute-forcer' para formularios web | |
# Yago Jesus @YJesus | |
use LWP::UserAgent; | |
use strict ; | |
#Si no hay al menos un argumento, mostramos la ayuda | |
if ($#ARGV < 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
(function () { | |
"use strict"; | |
// Codigo Javascript... | |
})(); |
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 refreshButton = document.getElementById("cmdRefresh").winControl; | |
refreshButton.addEventListener("click", manejador, false); | |
function manejador() { | |
// codigo para manejar evento | |
} |
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
WinJS.Namespace.define("Data", { | |
items: groupedItems, | |
groups: groupedItems.groups, | |
getItemsFromGroup: getItemsFromGroup, | |
getItemReference: getItemReference, | |
resolveGroupReference: resolveGroupReference, | |
resolveItemReference: resolveItemReference | |
}); |
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
miServicio.get("http://www.bing.com") | |
.then( | |
function (resultado) { | |
// funcion invocada si el resultado es satisfactorio | |
}, | |
function (error) { | |
// funcion invocada si hay un error | |
}, | |
function (progress) { | |
// funcion invocada cuando existe un progreso |
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
miServicio.primeraLlamada(parametro1) | |
.then( | |
function (resultado1) { | |
// Gestionamos el exito de la primera llamada haciendo | |
// una segunda llamada asincrona | |
return miServicio.segundaLlamada(parametro2); | |
}) | |
.then( | |
function (resultado2) { | |
// funcion invocada si hay exito en la segunda llamada |
OlderNewer