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
<link href="ruta-al-archivo.css" rel="stylesheet" /> |
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="es"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Nuestro primer ejemplo completo con HTML</title> | |
</head> | |
<body> | |
<h1>Primeros pasos con <abbr lang="en" title="HyperText Markup Language">HTML</abbr></h1> | |
<p>Podemos definir seis niveles de encabezados:</p> | |
<h1>El encabezado de primer nivel se escribe como <h1></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
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>¡Nuestro primer esqueleto HTML!</title> | |
</head> | |
<body> | |
<!-- Aquí es donde va nuestro contenido --> | |
</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
i { | |
$positions: (izq, der); | |
$colors: (w, b); | |
@for $i from 1 through 2 { | |
@each $position in $positions { | |
@each $color in $colors { | |
&.#{ $position }_0#{ $i }_#{ $color } { | |
@include fx_item(#{ $position }_0#{ $i }_#{ $color }); | |
} | |
} |
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 | |
//asumiendo que campo es un campo de formulario de tipo array | |
foreach($_POST as $k1 => $v1) { | |
if($k1 === 'campo' && is_array($v1)) { | |
foreach($campo as $k2 => $v2) { | |
$this->form_validation->set_rules('campo['.$k2.']', 'campo'.$k2, 'required'); | |
} | |
} | |
} |
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
BITOKE = { | |
external_links: -> | |
$('a[rel=external]', '.main_content').click -> | |
window.open($(this).attr('href')) | |
return false | |
lava_lamp: -> | |
#move($('a.current', '.main_menu'), 0) | |
_a_list = $('a', '.main_menu') |
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
$ -> | |
#Colorbox | |
$('a.popup', '#content').colorbox(colorboxOpts) | |
#General | |
$('nav.categories a span, h2 span').hide() | |
$('.slideshow .banner').cycle | |
fx: 'scrollLeft' | |
speed: 1500 |
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
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS add_has_detail_column $$ | |
CREATE PROCEDURE add_has_detail_column() | |
BEGIN | |
IF NOT EXISTS(SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME= 'events' AND COLUMN_NAME = 'has_detail') THEN | |
ALTER TABLE `events` ADD COLUMN `has_detail` BOOLEAN NOT NULL DEFAULT 1 AFTER `is_migrated`; | |
END IF; |
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 | |
/** | |
* CSS3 Selectors Plugin for Turbine | |
* José Manuel Lucas | |
* | |
* http://github.com/jmlweb/turbine_transitions | |
* | |
*/ |
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 | |
/** | |
* CSS3 Transitions Plugin for Turbine | |
* José Manuel Lucas | |
* | |
* http://github.com/jmlweb/turbine_transitions | |
* | |
*/ |