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 | |
// Para que muestre por pantalla el error mysql. | |
$numresults=mysql_query($query); | |
if (!$numresults){ | |
die (mysql_error()); | |
} | |
?> |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Quis Nostrud</title> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<style type="text/css"> | |
p{ | |
background-color:#FFFBDB; | |
padding:5px; |
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 | |
/* | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: | |
:: GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu | |
:: | |
:: This class is a rewritten 'GifMerge.class.php' version. | |
:: | |
:: Modification: | |
:: - Simplified and easy code, |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Event status="happened"> | |
<Song title="Physical"> | |
<Artist name="Olivia Newton John" ID="338221"> | |
</Artist> | |
<Info StartTime="21:44:11" JazlerID="4806" PlayListerID="" /> | |
</Song> | |
<Song title="Be My Baby"> | |
<Artist name="Vanessa Paradis" ID="336452"> | |
</Artist> |
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 | |
/* Obtenemos $artista y $cancion enviados mediante jquery */ | |
$artista = urlencode($_GET['artista']); | |
$cancion = urlencode($_GET['cancion']); | |
/* Enviamos la peticion al sitio api.chartlyrics.com y este | |
nos responde con formato xml */ | |
$url = "http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect?artist=$artista&song=$cancion"; | |
$str = file_get_contents($url); | |
echo $str; | |
//RESULTADO http://img233.imageshack.us/img233/9224/65030479.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
<?php | |
//...code... | |
// USE: Post wall in facebook page | |
//controller fb_connect.php | |
public function __construct() | |
{ | |
$CI = & get_instance(); | |
$CI->config->load("facebook",TRUE); | |
$config = $CI->config->item('facebook'); | |
parent::__construct($config); |
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
#parent{ | |
position: relative | |
} | |
#parent .child{ | |
position: absolute; | |
bottom: 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
/* COLOR BACKGROUND */ | |
blockquote{ | |
background-color: #F7F7F7; | |
} | |
.layout-1{ | |
background-color: #fff; | |
} |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Welcome extends CI_Controller { | |
/** | |
* Index Page for this controller. | |
* | |
* Maps to the following URL | |
* http://example.com/index.php/welcome | |
* - or - |
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 re | |
import subprocess | |
def is_running(process): | |
s = subprocess.Popen(["ps", "axw"],stdout=subprocess.PIPE) | |
for x in s.stdout: | |
if re.search(process, x): |
OlderNewer