This file contains hidden or 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
<div class="form grid_12 suffix_4"> | |
<div class="field"> | |
<label for="contact-name">Nombre *</label> | |
[text* nombre id:contact-name class:input-text] | |
</div> | |
<div class="field"> | |
<label for="contact-occupation">Ocupación/Profesión</label> | |
[text ocupacion id:contact-occupation class:input-text] |
This file contains hidden or 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 | |
class ArrayMap{ | |
private $array = array(); | |
private $map; | |
public function __construct( array $array, $delimiter = '\\' ){ | |
$this->array = $array; | |
$this->flattenMap( $this->array ); |
This file contains hidden or 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 | |
/* | |
Plugin Name: Feed Noticias Móviles | |
Plugin URI: http://www.udd.cl | |
Description: Crea un feed de noticias para consumo en aplicación móvil | |
Version: 0.1 | |
Author: Felipe Lavín (AyerViernes S.A.) | |
Author URI: http://www.ayerviernes.com | |
*/ |
This file contains hidden or 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
# Instalar utilidades para agregar repositorios PPA | |
sudo apt-get install python-software-properties python g++ make | |
# En Quantal (12.10) podrías necesitar el paquete software-properties-common para usar add-apt-repository | |
sudo apt-get install software-properties-common | |
# Agregar repositorio de node.js | |
sudo add-apt-repository ppa:chris-lea/node.js | |
# Actualizar información de repositorios |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
$('.lightbox-img').fancybox({ | |
cyclic: true, | |
index: 0, | |
onStart: function(){ | |
}, | |
onComplete: function(){ | |
var wrap = $('#fancybox-wrap'), | |
outer = $('#fancybox-outer'), | |
width = outer.width(), |
This file contains hidden or 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"?> | |
<proyectos> | |
<proyecto> | |
<descripcion> | |
<boletin>8575-05</boletin> | |
<titulo>Ley de Presupuestos del sector público para el año 2013.</titulo> | |
<fecha_ingreso>01/10/2012</fecha_ingreso> | |
<iniciativa>Mensaje</iniciativa> | |
<camara_origen>C.Diputados</camara_origen> | |
<urgencia_actual>Discusión inmediata</urgencia_actual> |
This file contains hidden or 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/bash | |
# Daniel Verner | |
# CarrotPlant LLC | |
# 2011 | |
# Backup each mysql databases into a different file, rather than one big file | |
# Optionally files can be gzipped (dbname.gz) | |
# | |
# Usage: dump_all_databases [ -u username -o output_dir -z ] | |
# | |
# -u username to connect mysql server |
This file contains hidden or 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
# BEGIN WordPress | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# uploaded files | |
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] |
This file contains hidden or 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 | |
$abs_start = microtime(true); | |
$path = __DIR__; | |
$Directory = new RecursiveDirectoryIterator('.'); | |
$img_extensions = array('jpg', 'jpeg', 'gif', 'png'); |
This file contains hidden or 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 | |
class EntriesOptions extends ArrayIterator{ | |
private $query; | |
private $cur_post; | |
public function __construct( $query_params = array(), $flags = array() ){ | |
$args = wp_parse_args( $query_params, array( | |
'post_status' => 'publish', | |
'orderby' => 'title', | |
'order' => 'ASC', |