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
<!doctype html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |
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 ie = (function(){ | |
var undef, | |
v = 3, | |
div = document.createElement('div'), | |
all = div.getElementsByTagName('i'); | |
while ( | |
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->', | |
all[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
<?php | |
/** | |
* Clase para PHP-UNIT que carga el document_root por parametros para | |
* carga de librerias como esta desarollado en marcadores. | |
*/ | |
if(isset($_SERVER['argv'][2])) { | |
if(!is_dir($_SERVER['argv'][2])) { | |
echo("El DocumentRoot especificado no existe o no es correcto."); | |
exit; |
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
/** | |
* Busca tipo de noticias por valor | |
* @param $key | |
* @param $value | |
*/ | |
public static function search($key, $value) | |
{ | |
$atp = self::getAll(); | |
$ret = null; | |
foreach ($atp as $object) { |
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
#!/bin/sh | |
ping -c 1 server.com >/dev/null 2>&1 | |
if [ "$?" != 0 ] | |
then | |
echo "down :_(" | |
date | |
else | |
echo "up :-)" |
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
{ | |
"id": "04649-01", | |
"proveedor": "0.603.127.000", | |
"nombre": "Taladro BOSCH PSB 500 RE", | |
"stock": "3", | |
"reserva": 0, | |
"imagen": "http://estaticos.planetahuerto.es/estaticos/imagenes/articulo/4649/4649_1.jpg" | |
} |
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
typedef signed char BOOL; | |
#define OBJC_BOOL_DEFINED | |
#define YES (BOOL)GIVER | |
#define NO (BOOL)RECEIVER |
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
// to push, add in the UIViewController : | |
MyUIViewController *second = [[LoginUIViewController alloc] initWithNibName:nil bundle:nil]; | |
[self presentViewController:second animated:YES completion:nil]; | |
// in the second view controller add | |
[self dismissViewControllerAnimated:YES completion:nil]; |
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 | |
require_once __DIR__.'/vendor/autoload.php'; | |
use Goutte\Client; | |
$client = new Client(); | |
// Login page | |
$crawler = $client->request('GET', 'http://x3demob.cpx3demo.com:2082/?locale=en'); |
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
{ | |
"listado" : | |
[{"provincia": 12, "fecha_fin": "2014-10-23", "detalles": "-", "ciudad": "CASTELL\u00d3N DE LA PLANA", "fecha_inicio": "2014-10-20", "nombre": "FERIA ALTERNATIVA"}, | |
{"provincia": 48, "fecha_fin": "2014-10-25", "detalles": "-", "ciudad": "LANESTOSA", "fecha_inicio": "2014-10-25", "nombre": "FERIA AGROALIMENTARIA"}, | |
{"provincia": 20, "fecha_fin": "2014-10-25", "detalles": "-", "ciudad": "TOLOSA", "fecha_inicio": "2014-10-25", "nombre": "OTROS"}, | |
{"provincia": 20, "fecha_fin": "2014-10-25", "detalles": "-", "ciudad": "IDIAZABAL", "fecha_inicio": "2014-10-25", "nombre": "FERIA ALIMENTACION"}, | |
{"provincia": 7, "fecha_fin": "2014-10-26", "detalles": "-", "ciudad": "PALMA DE MALLORCA", "fecha_inicio": "2014-05-04", "nombre": "FERIA AGROALIMENTARIA"}, | |
{"provincia": 33, "fecha_fin": "2014-10-26", "detalles": "-", "ciudad": "AVIL\u00c9S", "fecha_inicio": "2014-10-10", "nombre": "FERIA DE ARTESAN\u00cdA"}, | |
{"provincia": 2, "fecha_fin": "2014-10-26", "detalles": "-", "ciudad": "HELLIN", "fecha_inicio": "2 |
OlderNewer