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 | |
$tiny_mce = realpath(__DIR__ ."/../../htdocs/js/tiny_mce"); | |
require "$tiny_mce/tiny_mce_gzip.php"; | |
$compressor = new TinyMCE_Compressor(array( | |
'base_path' => $tiny_mce, | |
'filename' => 'compiled.js', | |
'compress' => false, |
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
# Asynchronously load GitHub Embeds | |
# Why? | |
# Because no web developer worth his weight in bacon salt wants to have blocking <script /> style embeds in his content. | |
# I want to be able to link to GitHub gists I write, and I want those links to show up in content aggregators as well. | |
# And then, if possibly, progressively enhance by embedding the gist. | |
# | |
# Usage, simply link to a gist. An entire gist, or an anchor tag to a particular file. | |
# | |
# Requires: jQuery and Modernizr | |
# |
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 | |
$page_title = 'Mi Pagina Web'; | |
require 'header.inc.php'; | |
?> | |
<h1>Encabezado principal</h1> | |
<p>Informacion</p> |
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 XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head profile="http://www.w3.org/2005/10/profile"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<link rel="icon" type="image/png" href="favicon.ico"> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<link rel="stylesheet" type="text/css" href="css/footer.css" /> | |
<!--[if lt IE 7]> | |
<link rel="stylesheet" type="text/css" href="css/ie7footer.css" /> | |
<![endif]--> |
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
// Set container height to highest list | |
var heights = $('.articleSection').map(function() { | |
return $(this).innerHeight(); | |
}).get(); | |
console.log(heights); | |
var max = Math.max.apply(Math, heights); | |
//$('.articlesWidget .wrapper').height(max); |
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 | |
$SEND_NOTIFICATION = FALSE; | |
$watched_file = 'file/to/watch/in_your_repository'; | |
/*----------------------------------------------------------*/ | |
if (isset($_POST['commit'])) { | |
require 'JSON.php'; // PECL script, or perhaps json_decode() is enough |
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 | |
/* | |
Page Title: My DF holidays | |
Meta Keywords: df, holidays, mine | |
*/ | |
?> | |
<p> | |
This is some nice test content. |
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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="keywords" content="<?php echo $meta_keywords ?>" /> | |
<title>My Static Site - <?php echo $page_title ?></title> | |
</head> | |
<body> | |
<h1><?php echo $page_title ?></h1> |
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'); | |
/* | |
| ------------------------------------------------------------------------- | |
| URI ROUTING | |
| ------------------------------------------------------------------------- | |
| This file lets you re-map URI requests to specific controller functions. | |
| | |
| Typically there is a one-to-one relationship between a URL string | |
| and its corresponding controller class/method. The segments in a | |
| URL normally follow this pattern: |