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 | |
$doc = new DOMDocument(); | |
$doc->loadHTML($html); | |
$xpath = new DOMXPath($doc); | |
$src = $xpath->evaluate("string(//img/@src)"); | |
?> |
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
{ | |
"require": { | |
"facebook/php-sdk": "dev-master" | |
} | |
} |
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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
$("#product").change(function( | |
$.ajax({ | |
url: "index.php?obtenedatos&id=" + $(this).val(), | |
}).done(function(datos) { | |
$("#info").val(datos); | |
}); | |
)); |
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 | |
// http://www.movele.es/index.php/mod.puntos/mem.mapa/relmenu.20/regini.0/numregs.330 | |
require 'class/simple_html_dom/simple_html_dom.php'; | |
$url = 'http://www.movele.es/index.php/mod.puntos/mem.mapa/relmenu.20/regini.0/numregs.330'; | |
$html = file_get_html($url); |
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
{ | |
"name":"Miquel Camps Orteza", | |
"tagline":"freelance developer and betabeers organizer", | |
"photo":"http://graph.facebook.com/miquel.camps/picture?type=large", | |
"location":{ | |
"city":"Alcorcón, Madrid", | |
"country":"Spain" | |
}, | |
"url":"http://miquelcamps.com", | |
"birthdate":"1986-06-02", |
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
javascript:for(i=0;i<$('div.button-group').size();i++){$('div.button-group:eq('+i+')').find('A').click();setTimeout(function(){location.reload();},6000);} |
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
hhtml | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Document</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
%| | |
</body> |
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
javascript:var newdiv = document.createElement('div');newdiv.innerHTML = '<img src="http://i.imgur.com/YdmGHYG.gif" style="position:fixed;right:0;bottom:0"><audio autoplay><source src="http://40mp3.com/music/user-files-30/0000/all-genre/074%20-%20Its%20Not%20Unusual%20-%20Tom%20Jones%20-%201391998460.mp3" type="audio/mpeg"></audio>';document.body.appendChild(newdiv); |
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
javascript:var div_new = document.createElement('div');div_new.innerHTML = "<style>*{font-family:'comic sans ms';}</style>";document.body.appendChild(div_new); |
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 | |
function getSlug($str, $replace=array(' con ', ' de ', ' para ', ' y ', ' en ', ' of '), $delimiter='-') { | |
if( !empty($replace) ) $str = str_replace((array)$replace, ' ', $str); | |
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str); | |
$clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean); | |
$clean = strtolower(trim($clean, '-')); | |
$clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean); | |
$clean = str_replace('--','-', $clean); | |
return $clean; |
OlderNewer