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
# ---------------------------------------------------------------------- | |
# ROOT/ folder .htaccess | |
# ---------------------------------------------------------------------- | |
# Laravel Note: | |
# Note: Laravel is designed to protect your application code, | |
# and local storage by placing only files that are necessarily | |
# public in the public folder. It is recommended that you either | |
# set the public folder as your site's documentRoot (also known as a web root) | |
# or to place the contents of public into your site's root directory | |
# and place all of Laravel's other files outside the web root. |
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
// http://forums.laravel.io/viewtopic.php?id=1943#p12005 | |
Route::get('settings/(account|notifications|profile)', array( | |
'as' => 'settings', | |
'uses' => 'account.settings@(:1)' | |
)); | |
URL::to_route('settings', 'profile'); |
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
getlaravelfn() | |
{ | |
if [ -z "$1" ] | |
then | |
echo 'Error: No project name entered.' | |
return | |
else | |
curl -L -o laravel-master.zip https://github.com/laravel/laravel/archive/master.zip; | |
unzip laravel-master.zip; | |
rm laravel-master.zip; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Viewport, Resolution and Mouse pointer Location of current page</title> | |
</head> | |
<body> | |
Viewport Width = <span id="viewportwidth"></span><br/> | |
Viewport Height = <span id="viewportheight"></span><br/> | |
Resolution Height = <span id="resolutionheight"></span><br/> | |
Resolution Width = <span id="resolutionwidth"></span><br/> |
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
.video-container | |
{ | |
position: relative; | |
overflow: hidden; | |
padding-top: 30px; | |
padding-bottom: 56.25%; | |
height: 0; | |
} | |
.video-container iframe, .video-container object, .video-container embed | |
{ |
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 id="top"></div> | |
<div id="right"></div> | |
<div id="bottom"></div> | |
<div id="left"></div> | |
<p>Ejercicio con triángulos css</p> |
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
.transparent { | |
filter: alpha(opacity=50); | |
-moz-opacity: 0.5; | |
-khtml-opacity: 0.5; | |
opacity: 0.5; | |
} |
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
// hasClass | |
function hasClass(elem, className) { | |
return new RegExp(' ' + className + ' ').test(' ' + elem.className + ' '); | |
} | |
// toggleClass | |
function toggleClass(elem, className) { | |
var newClass = ' ' + elem.className.replace( /[\t\r\n]/g, " " ) + ' '; | |
if (hasClass(elem, className)) { | |
while (newClass.indexOf(" " + className + " ") >= 0 ) { | |
newClass = newClass.replace( " " + className + " " , " " ); |
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
$('imageelement').fadeOut(function() { | |
$(this).load(function() { | |
$(this).fadeIn(); | |
}).attr('src', AnotherSource); | |
}); |
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
// Programa Javascript para sumar tiempos, 00:00 minutos y segundos | |
var tiempos = new Array(); | |
var sumMinutos = 0; | |
var sumSegundos = 0; | |
var posicion = 0; | |
var minutos = '00'; | |
var segundos = '00'; |