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
<!-- | |
Cuando las etiquetas de script están en el cuerpo, el contenido del documento se empieza a visualizar un poco más rápido porque se manda llamar los archivos hasta después de cargar el contenido. | |
Un ejemplo que detiene la visualización del documento con una alerta de JS. | |
En realidad no se detiene la visualización pero se tarda un poco más* para mostrar el contenido. | |
* Dependiendo de otros factores. | |
Copiar y pegar cada html en un archivo y probar en un navegador. |
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
-- Bases de Datos | |
-- Crear base de datos | |
CREATE DATABASE nombre_bd | |
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; | |
-- Si no es compatible con utf8mb4 utilizar utf8 | |
-- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; |
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
/* | |
Responsive CSS | |
1. Utilizar la hoja de estilos del sitio / aplicación normalmente. | |
2. Mandar llamar esta hoja de estilos después de que se cargue la hoja de estilos del sitio. | |
<link rel="stylesheet" href="responsive.css" type="text/css"> | |
3. Agregar dentro de cada tamaño de anchura las reglas en CSS que van a modificar valores establecidos en la hoja de estilos inicial. | |
por ejemplo: | |
@media (min-width:1200px){ | |
body {width: 1000px; } | |
} |
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
#!bin/bash | |
echo "Nombre del script: " $0; | |
echo "Número de args: " $#; | |
TABLA="$1"; | |
DB="${PWD##*/}"; | |
echo $DB; | |
echo $TABLA; | |
shift; | |
# Atributos para 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
#!bin/bash | |
if [ -n "$1" ]; then | |
echo "Creando directorios."; | |
mkdir "$1"; | |
cp resource.sh "$1"/resource.sh | |
cd "$1" | |
mkdir "config"; | |
mkdir "db"; | |
mkdir "assets"; | |
mkdir "assets/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
#!/bin/sh | |
if [ -n "$1" ]; then | |
echo "Creating SOURCE and SPECS files."; | |
echo "SOURCE -> src/$1.js"; | |
tee src/"$1".js > /dev/null <<SOURCE | |
function $1(){ | |
} | |
SOURCE |
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
#!/bin/sh | |
if [ -n "$1" ]; then | |
mkdir ./"$1"; | |
mv docs.sh "$1"/docs.sh; | |
cd "$1" | |
# Change "jasmine-standalone-1.2.0.rc3.zip" - for the desired version in the next 2 lines. | |
wget https://github.com/pivotal/jasmine/downloads/jasmine-standalone-1.2.0.zip; | |
unzip jasmine-standalone-1.2.0.zip; | |
sh docs.sh "$1" | |
$EDITOR . |
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
<!-- | |
Utilizar atributos data para almacenar contenido | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> |
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> | |
<head> | |
<meta charset='utf-8'> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Ejercicios</title> | |
<link rel="stylesheet" href="estilo.css" type="text/css"> | |
</head> | |
<body> | |
<h2>Ejercicios disponibles</h2> |
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
-- BD Tutoriales | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
SET time_zone = "+00:00"; | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
NewerOlder