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
.video-aspect-ratio { | |
position: relative; | |
width: 100%; | |
height: 0; | |
padding-bottom: 55%; | |
iframe { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
/** | |
* Get YouTube ID from various YouTube URL | |
* @author: takien | |
* @url: http://takien.com | |
* For PHP YouTube parser, go here http://takien.com/864 | |
*/ | |
function YouTubeGetID(url){ | |
var ID = ''; | |
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
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
public function validate() | |
{ | |
$this->load->library('form_validation'); | |
$validation_rules = [ | |
[ | |
'field' => 'email', | |
'rules' => 'trim|required|valid_email' | |
], | |
[ |
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
header('Access-Control-Allow-Origin: *'); | |
header("Access-Control-Allow-Headers: X-API-KEY, Origin, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method"); | |
header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE"); | |
$method = $_SERVER['REQUEST_METHOD']; | |
if ($method == "OPTIONS") { | |
die(); | |
} |
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
// HTML | |
<div id="toggleNav"> | |
<span></span> | |
<span></span> | |
<span></span> | |
<span></span> | |
</div> | |
// CSS |
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
$('form input').each(function(i, input){ | |
specific_field = $(input).parsley(); | |
window.ParsleyUI.removeError(specific_field, 'serverError'); | |
}); | |
$.post('api/registro/guardar', serializeFormData, function(res){ | |
if ( res.success ) | |
{ | |
callback(); | |
} |
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 | |
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
// http://youtu.be/dQw4w9WgXcQ | |
// http://www.youtube.com/embed/dQw4w9WgXcQ | |
// http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
// http://www.youtube.com/?v=dQw4w9WgXcQ | |
// http://www.youtube.com/v/dQw4w9WgXcQ | |
// http://www.youtube.com/e/dQw4w9WgXcQ | |
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
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
$('.wrap').on('mousewheel', function(e){ | |
var event = e.originalEvent, | |
d = event.wheelDelta || -event.detail; | |
this.scrollTop += ( d < 0 ? 1 : -1 ) * 50; | |
e.preventDefault(); | |
}); |
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 any additional compass plugins here. | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "css" | |
sass_dir = "scss" | |
images_dir = "img" | |
javascripts_dir = "js" | |
# You can select your preferred output style here (can be overridden via the command line): |
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
-- phpMyAdmin SQL Dump | |
-- version 3.5.8 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Servidor: localhost | |
-- Tiempo de generación: 13-03-2014 a las 20:07:46 | |
-- Versión del servidor: 5.5.33-31.1 | |
-- Versión de PHP: 5.3.17 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
NewerOlder