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
#!/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/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/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
/* | |
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
-- 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
<!-- | |
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
<!-- $ es una abreviación de jQuery. --> | |
<!-- jQuery en la cabeza --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<style> | |
body {background: #eee; font-family: sans-serif; margin: 0 auto; width: 800px;} | |
#click {width: 200px; height: 100px; margin: 49% 40%; border: 1px dashed black; background: #eee; line-height: 100px; text-align: center;} |
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 rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/font-awesome/css/font-awesome.css"> | |
<!--[if IE 7]> | |
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/font-awesome/css/font-awesome-ie7.css"> | |
<![endif]--> |
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
<style> | |
body {width: 500px; height: 500px; background: #ccc;} | |
#trabajo-sucio {border: 1px solid #ccc; width: 100px; height: 100px; margin: 100px 50%; background: #fff; padding: 1em;} | |
</style> | |
<div id='trabajo-sucio'> | |
Este documento le deja al navegador el trabajo sucio | |
</div> |
OlderNewer