├── Ayudas ├── Ayuda-proy2.c ├── Entrada-Salida │ ├── EscribirArchivo.class │ ├── EscribirArchivo.java │ ├── LeerArchivo.class │ ├── LeerArchivo.java │ ├── LeerTeclado.class │ ├── LeerTeclado.java │ ├── UsandoScanner.class │ ├── UsandoScanner.java │ ├── archivonuevo.txt │ └── lorem-ipsum.txt ├── Proy1.c ├── matrices.py ├── prog.py └── proy2.py ├── Flask ├── .gitignore ├── Requirements.txt └── proyecto │ ├── routes.py │ ├── static │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.css.map │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap.css │ │ ├── bootstrap.css.map │ │ ├── bootstrap.min.css │ │ └── main.css │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── npm.js │ └── templates │ ├── head.html │ ├── index.html │ ├── layout.html │ ├── pamn.html │ ├── paw.html │ └── tacos.html ├── Laboratorio ├── Lab09 │ ├── Practica 10 │ │ ├── Alumno.class │ │ ├── Alumno.java │ │ ├── CalificacionException.class │ │ ├── CalificacionException.java │ │ ├── Errores.class │ │ ├── Errores.java │ │ ├── Prueba.class │ │ └── Prueba.java │ ├── Practica 11 │ │ ├── EscrituraArchivo.class │ │ ├── EscrituraArchivo.java │ │ ├── LecturaArchivo.class │ │ ├── LecturaArchivo.java │ │ ├── LecturaTeclado.class │ │ ├── LecturaTeclado.java │ │ ├── hola.txt │ │ └── prueba.txt │ ├── Practica 12 │ │ ├── LeerTeclado.java │ │ ├── Proceso.class │ │ ├── Proceso.java │ │ ├── Proceso2.class │ │ ├── Proceso2.java │ │ ├── PruebaProceso.class │ │ ├── PruebaProceso.java │ │ ├── PruebaProceso2.class │ │ └── PruebaProceso2.java │ ├── Practica 13 │ │ ├── Cliente.class │ │ ├── Cliente.java │ │ ├── Hilo.class │ │ ├── Hilo.java │ │ ├── Servidor.class │ │ ├── Servidor.java │ │ ├── ServidorMultiUsuario.class │ │ └── ServidorMultiUsuario.java │ ├── Practica 3 │ │ ├── a.out │ │ ├── hola.doc │ │ ├── hola.txt │ │ ├── numeros.txt │ │ ├── prog1.c │ │ ├── prog2.c │ │ ├── prog3.c │ │ ├── prog4.c │ │ ├── prog5.c │ │ └── prog6.c │ ├── Practica 8 │ │ ├── Alumno.class │ │ ├── Alumno.java │ │ ├── Alumno.py │ │ ├── Ingeniero.class │ │ ├── Ingeniero.java │ │ ├── Prueba.class │ │ └── Prueba.java │ └── Practica-1-2 │ │ ├── prog1.c │ │ ├── prog2.c │ │ ├── prog3.c │ │ ├── prog4.c │ │ └── prog5.c └── Lab15 │ ├── .ipynb_checkpoints │ └── Untitled-checkpoint.ipynb │ ├── Pract11 │ ├── EscribirArchivo.java │ ├── LeerArchivo.class │ ├── LeerArchivo.java │ ├── LeerTeclado.class │ ├── LeerTeclado.java │ ├── LeerTecladoScanner.class │ ├── LeerTecladoScanner.java │ └── hola.txt │ ├── Practica 10 │ ├── Alumno.class │ ├── Alumno.java │ ├── AlumnoException.class │ ├── AlumnoException.java │ ├── PruebaError.class │ └── PruebaError.java │ ├── Practica 12 │ ├── Proceso.class │ ├── Proceso.java │ ├── PruebaProceso.class │ └── PruebaProceso.java │ ├── Practica 13 │ ├── Cliente.class │ ├── Cliente.java │ ├── Servidor.class │ └── Servidor.java │ ├── Untitled.ipynb │ ├── a.out │ ├── factorial.py │ ├── fibonacci.py │ ├── numeros.txt │ ├── practica 8 │ ├── Alumno.class │ ├── Alumno.java │ ├── Cchachero.java │ ├── Ingeniero.class │ ├── Ingeniero.java │ ├── Medico.class │ ├── Medico.java │ ├── Prueba.class │ ├── Prueba.java │ ├── Talachero.class │ └── Talachero.java │ ├── prog1.c │ ├── prog10.py │ ├── prog11.py │ ├── prog2.c │ ├── prog3.c │ ├── prog4.c │ ├── prog5.c │ ├── prog6.c │ ├── prog7.c │ ├── prog8.c │ ├── prog9.c │ └── untitled.txt ├── Proyectos Resueltos ├── proy1-a.c └── proy1-b.c ├── README.md └── Teoria ├── Teo05 ├── Cliente.class ├── Cliente.java ├── Hilo.class ├── Hilo.java ├── PruebaArchivo.class ├── PruebaArchivo.java ├── Servidor.class ├── Servidor.java ├── ServidorMultiUsuario.class ├── ServidorMultiUsuario.java ├── Ventas.class ├── Ventas.java ├── Ventas2.class ├── Ventas2.java ├── a.out ├── numeros.txt ├── prog1.c ├── prog10.c ├── prog2.c ├── prog3.c ├── prog4.c ├── prog5.c ├── prog6.c ├── prog7.c ├── prog8.c └── prog9.c └── Teo17 ├── Alumno.class ├── Alumno.java ├── Clase.class ├── Clase.java ├── Cliente.class ├── Cliente.java ├── Ingenieria.class ├── Ingenieria.java ├── Proceso.class ├── Proceso.java ├── Prueba.class ├── Prueba.java ├── PruebaClase.class ├── PruebaClase.java ├── Servidor.class ├── Servidor.java ├── ServidorMultiUsuario.class ├── ServidorMultiUsuario.java ├── a.out ├── numeros.txt ├── pagina.html ├── prog1.c ├── prog10.c ├── prog11.c ├── prog12.c ├── prog13.py ├── prog2.c ├── prog3.c ├── prog4.c ├── prog5.c ├── prog6.c ├── prog7.c ├── prog8.c └── prog9.c /Ayudas/Ayuda-proy2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | char cadena[] = "01000|San Ángel|Colonia|Álvaro Obregón|Distrito Federal|Ciudad de México|01001|09|01001||09|010|0001|Urbano|01"; 6 | char *guarda_apuntador; 7 | char *elemento; 8 | 9 | // Obtenemos el primer item de nuestra cadena, a su vez, guardamos el avance en guarda_apuntador 10 | elemento = strtok_r(cadena, "|", &guarda_apuntador); 11 | printf("%s", elemento); 12 | 13 | // avanzaremos por toda la cadena mientras el elemento que saquemos no sea NULL 14 | while(elemento != NULL){ 15 | 16 | // Avanzamos por la cadena, solo que usaremos a guarda_apuntador, tanto para obtener la cadena como guardar el avance 17 | elemento = strtok_r(NULL, "|", &guarda_apuntador); 18 | 19 | //Se imprime el elemento que obtenemos de la cadena original 20 | printf("\n%s", elemento); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/EscribirArchivo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Ayudas/Entrada-Salida/EscribirArchivo.class -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/EscribirArchivo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class EscribirArchivo{ 4 | 5 | public static void main(String args[]) throws IOException { 6 | 7 | FileWriter fw = new FileWriter("archivonuevo.txt"); 8 | BufferedWriter bw = new BufferedWriter(fw); 9 | 10 | 11 | bw.write("Este es un contenido"); 12 | bw.close(); 13 | 14 | 15 | } 16 | } -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/LeerArchivo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Ayudas/Entrada-Salida/LeerArchivo.class -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/LeerArchivo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class LeerArchivo{ 4 | 5 | public static void main(String args[]) throws IOException{ 6 | 7 | FileReader fr = new FileReader("lorem-ipsum.txt"); 8 | BufferedReader br = new BufferedReader(fr); 9 | String cadena=""; 10 | 11 | System.out.println("El archivo contiene"); 12 | while(cadena != null){ 13 | 14 | cadena = br.readLine(); 15 | System.out.println(cadena); 16 | 17 | } 18 | 19 | } 20 | 21 | 22 | } -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/LeerTeclado.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Ayudas/Entrada-Salida/LeerTeclado.class -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/LeerTeclado.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class LeerTeclado{ 4 | 5 | public static void main(String args[]) throws IOException{ 6 | 7 | InputStreamReader isr = new InputStreamReader(System.in); 8 | BufferedReader br = new BufferedReader(isr); 9 | String cadena; 10 | 11 | System.out.println("Teclea una cadena: "); 12 | cadena = br.readLine(); 13 | System.out.println("Usted tecleo: " + cadena); 14 | 15 | } 16 | 17 | 18 | } -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/UsandoScanner.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Ayudas/Entrada-Salida/UsandoScanner.class -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/UsandoScanner.java: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | public class UsandoScanner{ 4 | 5 | public static void main(String args[]){ 6 | 7 | // Creamos un objeto para lectura desde el teclado 8 | Scanner teclado = new Scanner(System.in); 9 | 10 | // Creamos variables que usaremos 11 | int entero; 12 | double flotante; 13 | String cadena; 14 | 15 | System.out.print("Introduzca una cadena: "); 16 | cadena = teclado.nextLine(); 17 | System.out.println("Usted tecleo la siguiente cadena: " + cadena); 18 | 19 | System.out.print("Introduzca un numero entero: "); 20 | entero = teclado.nextInt(); 21 | System.out.println("Su numero " + entero + " multiplicado por 5 da: " + (entero * 5)); 22 | 23 | System.out.print("Introduzca un numero del tipo flotante: "); 24 | flotante = teclado.nextDouble(); 25 | System.out.println("Su numero " + flotante + " multiplicado por 2 da: " + (flotante * 2)); 26 | 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/archivonuevo.txt: -------------------------------------------------------------------------------- 1 | Este es un contenido -------------------------------------------------------------------------------- /Ayudas/Entrada-Salida/lorem-ipsum.txt: -------------------------------------------------------------------------------- 1 | Lucas ipsum dolor sit amet hutt kashyyyk skywalker skywalker jango thrawn jade darth darth skywalker. Amidala hutt boba luuke fett luuke. Coruscant moff fisto zabrak lobot maul lobot jango. Baba skywalker mara c-3po skywalker watto. Maul skywalker anakin calrissian qui-gon. Naboo organa leia mandalorians coruscant lars yoda darth palpatine. R2-d2 vader coruscant fett wedge jar mandalore. Jinn moff lars jinn. Sebulba calamari skywalker moff watto yavin. Skywalker moff vader sith. Calrissian calrissian hoth hutt. 2 | 3 | Leia lando ventress skywalker organa ben anakin. Wampa tatooine lando palpatine sith obi-wan. Lando mace moff leia. Skywalker antilles owen solo moff qui-gon antilles ben skywalker. Antilles skywalker yoda hutt yoda. Wedge mara solo fett wicket yoda moff boba hutt. Ackbar moff chewbacca greedo. Hutt solo solo kashyyyk. Wicket boba dantooine c-3p0. Anakin solo fisto solo binks zabrak kamino windu. Luke endor jinn dooku sidious kashyyyk. Skywalker ahsoka antilles twi'lek leia watto. Wedge skywalker fett wicket r2-d2 dantooine coruscant kenobi. 4 | 5 | Owen c-3p0 solo yoda. Jabba darth luke windu darth coruscant organa. Calrissian jabba lobot lobot tatooine palpatine leia luke. Hoth darth mara luke. Yoda dantooine jinn dooku moff antilles mon tatooine obi-wan. Skywalker windu tatooine mara lando boba. Kessel skywalker jabba binks fisto han vader moff. Luuke anakin tusken raider grievous boba luke. Anakin darth yavin darth calrissian leia moff mothma. Darth grievous lars gonk. Hutt yoda c-3p0 wookiee skywalker calamari. Qui-gonn darth darth fett moff dantooine leia solo. 6 | 7 | Lando droid antilles kenobi kessel. Darth sebulba jinn binks darth binks. Mara jabba coruscant cade moff sebulba vader darth. Grievous solo mon ahsoka ewok sidious calrissian endor anakin. Mon jade zabrak fett gonk organa. Kenobi dagobah windu gonk. Darth sidious dantooine mara. Leia leia lando ahsoka ventress yavin yavin tusken raider hutt. Thrawn leia calamari organa. Mace biggs ponda yoda. Mon padmé maul solo. Kenobi calamari ackbar ahsoka twi'lek tatooine mon. Organa anakin gonk boba solo jabba kessel. 8 | 9 | Ventress mara luke jawa jinn wedge. Darth jango yavin darth lando calamari dagobah chewbacca. Endor solo hutt mara wedge luke k-3po. Binks fisto jade maul secura. Grievous dagobah yoda jade twi'lek organa amidala. Coruscant darth padmé antilles darth qui-gonn jango. Antilles skywalker ackbar kamino mustafar. Ben c-3po alderaan cade. Dantooine binks chewbacca cade ponda skywalker dooku solo. Jade skywalker mace ahsoka cade chewbacca. Solo kamino mandalore darth hutt. Endor r2-d2 kit kashyyyk kenobi endor jar. -------------------------------------------------------------------------------- /Ayudas/Proy1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Progama que permite leer datos y colocarlos en un arreglo dinámico manejado por un apuntador a enteros 3 | Además devuelve el total de ceros capturados por el usuario 4 | */ 5 | 6 | #include 7 | #include 8 | 9 | int main(){ 10 | /*Declaramos nuestras variables */ 11 | 12 | int *p; //manejará los datos que sean capturados por el usuario 13 | int n; //manejará el total de datos que el usuario desea capturar 14 | int i; //será la variable por la cual vamos a iterar 15 | int total_ceros = 0; 16 | 17 | // Solicitados al usuario indique el total de datos a ser capturados 18 | printf("Indique cuantos datos serán capturados: "); 19 | scanf("%d", &n); 20 | 21 | // alojamos memoria sufiente que será manejada por el apuntador p (*p) 22 | 23 | p = (int *)malloc(sizeof(int)); 24 | 25 | // empezamos a iterar sobre i para solicitar valores 26 | for(i=0; i< n; i++){ 27 | printf("introduzca el valor i = %d ", i); 28 | scanf("%d", (p+i)); 29 | } 30 | 31 | printf("Usted introdujo los siguientes datos: "); 32 | for(i=0;i") 10 | def pamn(alumno): 11 | return render_template("pamn.html", name = alumno) 12 | 13 | 14 | if __name__ == '__main__': 15 | app.run(debug=True) -------------------------------------------------------------------------------- /Flask/proyecto/static/css/bootstrap-theme.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | .btn-default, 7 | .btn-primary, 8 | .btn-success, 9 | .btn-info, 10 | .btn-warning, 11 | .btn-danger { 12 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); 13 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 14 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075); 15 | } 16 | .btn-default:active, 17 | .btn-primary:active, 18 | .btn-success:active, 19 | .btn-info:active, 20 | .btn-warning:active, 21 | .btn-danger:active, 22 | .btn-default.active, 23 | .btn-primary.active, 24 | .btn-success.active, 25 | .btn-info.active, 26 | .btn-warning.active, 27 | .btn-danger.active { 28 | -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 29 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); 30 | } 31 | .btn-default.disabled, 32 | .btn-primary.disabled, 33 | .btn-success.disabled, 34 | .btn-info.disabled, 35 | .btn-warning.disabled, 36 | .btn-danger.disabled, 37 | .btn-default[disabled], 38 | .btn-primary[disabled], 39 | .btn-success[disabled], 40 | .btn-info[disabled], 41 | .btn-warning[disabled], 42 | .btn-danger[disabled], 43 | fieldset[disabled] .btn-default, 44 | fieldset[disabled] .btn-primary, 45 | fieldset[disabled] .btn-success, 46 | fieldset[disabled] .btn-info, 47 | fieldset[disabled] .btn-warning, 48 | fieldset[disabled] .btn-danger { 49 | -webkit-box-shadow: none; 50 | box-shadow: none; 51 | } 52 | .btn-default .badge, 53 | .btn-primary .badge, 54 | .btn-success .badge, 55 | .btn-info .badge, 56 | .btn-warning .badge, 57 | .btn-danger .badge { 58 | text-shadow: none; 59 | } 60 | .btn:active, 61 | .btn.active { 62 | background-image: none; 63 | } 64 | .btn-default { 65 | text-shadow: 0 1px 0 #fff; 66 | background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%); 67 | background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%); 68 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); 69 | background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%); 70 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0); 71 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 72 | background-repeat: repeat-x; 73 | border-color: #dbdbdb; 74 | border-color: #ccc; 75 | } 76 | .btn-default:hover, 77 | .btn-default:focus { 78 | background-color: #e0e0e0; 79 | background-position: 0 -15px; 80 | } 81 | .btn-default:active, 82 | .btn-default.active { 83 | background-color: #e0e0e0; 84 | border-color: #dbdbdb; 85 | } 86 | .btn-default.disabled, 87 | .btn-default[disabled], 88 | fieldset[disabled] .btn-default, 89 | .btn-default.disabled:hover, 90 | .btn-default[disabled]:hover, 91 | fieldset[disabled] .btn-default:hover, 92 | .btn-default.disabled:focus, 93 | .btn-default[disabled]:focus, 94 | fieldset[disabled] .btn-default:focus, 95 | .btn-default.disabled.focus, 96 | .btn-default[disabled].focus, 97 | fieldset[disabled] .btn-default.focus, 98 | .btn-default.disabled:active, 99 | .btn-default[disabled]:active, 100 | fieldset[disabled] .btn-default:active, 101 | .btn-default.disabled.active, 102 | .btn-default[disabled].active, 103 | fieldset[disabled] .btn-default.active { 104 | background-color: #e0e0e0; 105 | background-image: none; 106 | } 107 | .btn-primary { 108 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%); 109 | background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%); 110 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88)); 111 | background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%); 112 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0); 113 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 114 | background-repeat: repeat-x; 115 | border-color: #245580; 116 | } 117 | .btn-primary:hover, 118 | .btn-primary:focus { 119 | background-color: #265a88; 120 | background-position: 0 -15px; 121 | } 122 | .btn-primary:active, 123 | .btn-primary.active { 124 | background-color: #265a88; 125 | border-color: #245580; 126 | } 127 | .btn-primary.disabled, 128 | .btn-primary[disabled], 129 | fieldset[disabled] .btn-primary, 130 | .btn-primary.disabled:hover, 131 | .btn-primary[disabled]:hover, 132 | fieldset[disabled] .btn-primary:hover, 133 | .btn-primary.disabled:focus, 134 | .btn-primary[disabled]:focus, 135 | fieldset[disabled] .btn-primary:focus, 136 | .btn-primary.disabled.focus, 137 | .btn-primary[disabled].focus, 138 | fieldset[disabled] .btn-primary.focus, 139 | .btn-primary.disabled:active, 140 | .btn-primary[disabled]:active, 141 | fieldset[disabled] .btn-primary:active, 142 | .btn-primary.disabled.active, 143 | .btn-primary[disabled].active, 144 | fieldset[disabled] .btn-primary.active { 145 | background-color: #265a88; 146 | background-image: none; 147 | } 148 | .btn-success { 149 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%); 150 | background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%); 151 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641)); 152 | background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%); 153 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0); 154 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 155 | background-repeat: repeat-x; 156 | border-color: #3e8f3e; 157 | } 158 | .btn-success:hover, 159 | .btn-success:focus { 160 | background-color: #419641; 161 | background-position: 0 -15px; 162 | } 163 | .btn-success:active, 164 | .btn-success.active { 165 | background-color: #419641; 166 | border-color: #3e8f3e; 167 | } 168 | .btn-success.disabled, 169 | .btn-success[disabled], 170 | fieldset[disabled] .btn-success, 171 | .btn-success.disabled:hover, 172 | .btn-success[disabled]:hover, 173 | fieldset[disabled] .btn-success:hover, 174 | .btn-success.disabled:focus, 175 | .btn-success[disabled]:focus, 176 | fieldset[disabled] .btn-success:focus, 177 | .btn-success.disabled.focus, 178 | .btn-success[disabled].focus, 179 | fieldset[disabled] .btn-success.focus, 180 | .btn-success.disabled:active, 181 | .btn-success[disabled]:active, 182 | fieldset[disabled] .btn-success:active, 183 | .btn-success.disabled.active, 184 | .btn-success[disabled].active, 185 | fieldset[disabled] .btn-success.active { 186 | background-color: #419641; 187 | background-image: none; 188 | } 189 | .btn-info { 190 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 191 | background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%); 192 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2)); 193 | background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%); 194 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0); 195 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 196 | background-repeat: repeat-x; 197 | border-color: #28a4c9; 198 | } 199 | .btn-info:hover, 200 | .btn-info:focus { 201 | background-color: #2aabd2; 202 | background-position: 0 -15px; 203 | } 204 | .btn-info:active, 205 | .btn-info.active { 206 | background-color: #2aabd2; 207 | border-color: #28a4c9; 208 | } 209 | .btn-info.disabled, 210 | .btn-info[disabled], 211 | fieldset[disabled] .btn-info, 212 | .btn-info.disabled:hover, 213 | .btn-info[disabled]:hover, 214 | fieldset[disabled] .btn-info:hover, 215 | .btn-info.disabled:focus, 216 | .btn-info[disabled]:focus, 217 | fieldset[disabled] .btn-info:focus, 218 | .btn-info.disabled.focus, 219 | .btn-info[disabled].focus, 220 | fieldset[disabled] .btn-info.focus, 221 | .btn-info.disabled:active, 222 | .btn-info[disabled]:active, 223 | fieldset[disabled] .btn-info:active, 224 | .btn-info.disabled.active, 225 | .btn-info[disabled].active, 226 | fieldset[disabled] .btn-info.active { 227 | background-color: #2aabd2; 228 | background-image: none; 229 | } 230 | .btn-warning { 231 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 232 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%); 233 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316)); 234 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%); 235 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0); 236 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 237 | background-repeat: repeat-x; 238 | border-color: #e38d13; 239 | } 240 | .btn-warning:hover, 241 | .btn-warning:focus { 242 | background-color: #eb9316; 243 | background-position: 0 -15px; 244 | } 245 | .btn-warning:active, 246 | .btn-warning.active { 247 | background-color: #eb9316; 248 | border-color: #e38d13; 249 | } 250 | .btn-warning.disabled, 251 | .btn-warning[disabled], 252 | fieldset[disabled] .btn-warning, 253 | .btn-warning.disabled:hover, 254 | .btn-warning[disabled]:hover, 255 | fieldset[disabled] .btn-warning:hover, 256 | .btn-warning.disabled:focus, 257 | .btn-warning[disabled]:focus, 258 | fieldset[disabled] .btn-warning:focus, 259 | .btn-warning.disabled.focus, 260 | .btn-warning[disabled].focus, 261 | fieldset[disabled] .btn-warning.focus, 262 | .btn-warning.disabled:active, 263 | .btn-warning[disabled]:active, 264 | fieldset[disabled] .btn-warning:active, 265 | .btn-warning.disabled.active, 266 | .btn-warning[disabled].active, 267 | fieldset[disabled] .btn-warning.active { 268 | background-color: #eb9316; 269 | background-image: none; 270 | } 271 | .btn-danger { 272 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 273 | background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%); 274 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a)); 275 | background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%); 276 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0); 277 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 278 | background-repeat: repeat-x; 279 | border-color: #b92c28; 280 | } 281 | .btn-danger:hover, 282 | .btn-danger:focus { 283 | background-color: #c12e2a; 284 | background-position: 0 -15px; 285 | } 286 | .btn-danger:active, 287 | .btn-danger.active { 288 | background-color: #c12e2a; 289 | border-color: #b92c28; 290 | } 291 | .btn-danger.disabled, 292 | .btn-danger[disabled], 293 | fieldset[disabled] .btn-danger, 294 | .btn-danger.disabled:hover, 295 | .btn-danger[disabled]:hover, 296 | fieldset[disabled] .btn-danger:hover, 297 | .btn-danger.disabled:focus, 298 | .btn-danger[disabled]:focus, 299 | fieldset[disabled] .btn-danger:focus, 300 | .btn-danger.disabled.focus, 301 | .btn-danger[disabled].focus, 302 | fieldset[disabled] .btn-danger.focus, 303 | .btn-danger.disabled:active, 304 | .btn-danger[disabled]:active, 305 | fieldset[disabled] .btn-danger:active, 306 | .btn-danger.disabled.active, 307 | .btn-danger[disabled].active, 308 | fieldset[disabled] .btn-danger.active { 309 | background-color: #c12e2a; 310 | background-image: none; 311 | } 312 | .thumbnail, 313 | .img-thumbnail { 314 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 315 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 316 | } 317 | .dropdown-menu > li > a:hover, 318 | .dropdown-menu > li > a:focus { 319 | background-color: #e8e8e8; 320 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 321 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 322 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 323 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 324 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 325 | background-repeat: repeat-x; 326 | } 327 | .dropdown-menu > .active > a, 328 | .dropdown-menu > .active > a:hover, 329 | .dropdown-menu > .active > a:focus { 330 | background-color: #2e6da4; 331 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 332 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 333 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 334 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 335 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 336 | background-repeat: repeat-x; 337 | } 338 | .navbar-default { 339 | background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%); 340 | background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%); 341 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8)); 342 | background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%); 343 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0); 344 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 345 | background-repeat: repeat-x; 346 | border-radius: 4px; 347 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 348 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075); 349 | } 350 | .navbar-default .navbar-nav > .open > a, 351 | .navbar-default .navbar-nav > .active > a { 352 | background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 353 | background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%); 354 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2)); 355 | background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%); 356 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0); 357 | background-repeat: repeat-x; 358 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 359 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075); 360 | } 361 | .navbar-brand, 362 | .navbar-nav > li > a { 363 | text-shadow: 0 1px 0 rgba(255, 255, 255, .25); 364 | } 365 | .navbar-inverse { 366 | background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%); 367 | background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%); 368 | background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222)); 369 | background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%); 370 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0); 371 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); 372 | background-repeat: repeat-x; 373 | border-radius: 4px; 374 | } 375 | .navbar-inverse .navbar-nav > .open > a, 376 | .navbar-inverse .navbar-nav > .active > a { 377 | background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%); 378 | background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%); 379 | background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f)); 380 | background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%); 381 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0); 382 | background-repeat: repeat-x; 383 | -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 384 | box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25); 385 | } 386 | .navbar-inverse .navbar-brand, 387 | .navbar-inverse .navbar-nav > li > a { 388 | text-shadow: 0 -1px 0 rgba(0, 0, 0, .25); 389 | } 390 | .navbar-static-top, 391 | .navbar-fixed-top, 392 | .navbar-fixed-bottom { 393 | border-radius: 0; 394 | } 395 | @media (max-width: 767px) { 396 | .navbar .navbar-nav .open .dropdown-menu > .active > a, 397 | .navbar .navbar-nav .open .dropdown-menu > .active > a:hover, 398 | .navbar .navbar-nav .open .dropdown-menu > .active > a:focus { 399 | color: #fff; 400 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 401 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 402 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 403 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 404 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 405 | background-repeat: repeat-x; 406 | } 407 | } 408 | .alert { 409 | text-shadow: 0 1px 0 rgba(255, 255, 255, .2); 410 | -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 411 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05); 412 | } 413 | .alert-success { 414 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 415 | background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%); 416 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc)); 417 | background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%); 418 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); 419 | background-repeat: repeat-x; 420 | border-color: #b2dba1; 421 | } 422 | .alert-info { 423 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 424 | background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%); 425 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0)); 426 | background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%); 427 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); 428 | background-repeat: repeat-x; 429 | border-color: #9acfea; 430 | } 431 | .alert-warning { 432 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 433 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%); 434 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0)); 435 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%); 436 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0); 437 | background-repeat: repeat-x; 438 | border-color: #f5e79e; 439 | } 440 | .alert-danger { 441 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 442 | background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%); 443 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3)); 444 | background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%); 445 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0); 446 | background-repeat: repeat-x; 447 | border-color: #dca7a7; 448 | } 449 | .progress { 450 | background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 451 | background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%); 452 | background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5)); 453 | background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%); 454 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0); 455 | background-repeat: repeat-x; 456 | } 457 | .progress-bar { 458 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%); 459 | background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%); 460 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090)); 461 | background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%); 462 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0); 463 | background-repeat: repeat-x; 464 | } 465 | .progress-bar-success { 466 | background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%); 467 | background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%); 468 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44)); 469 | background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%); 470 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0); 471 | background-repeat: repeat-x; 472 | } 473 | .progress-bar-info { 474 | background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 475 | background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%); 476 | background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5)); 477 | background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%); 478 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0); 479 | background-repeat: repeat-x; 480 | } 481 | .progress-bar-warning { 482 | background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 483 | background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%); 484 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f)); 485 | background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%); 486 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0); 487 | background-repeat: repeat-x; 488 | } 489 | .progress-bar-danger { 490 | background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%); 491 | background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%); 492 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c)); 493 | background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%); 494 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0); 495 | background-repeat: repeat-x; 496 | } 497 | .progress-bar-striped { 498 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 499 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 500 | background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); 501 | } 502 | .list-group { 503 | border-radius: 4px; 504 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 505 | box-shadow: 0 1px 2px rgba(0, 0, 0, .075); 506 | } 507 | .list-group-item.active, 508 | .list-group-item.active:hover, 509 | .list-group-item.active:focus { 510 | text-shadow: 0 -1px 0 #286090; 511 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%); 512 | background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%); 513 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a)); 514 | background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%); 515 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0); 516 | background-repeat: repeat-x; 517 | border-color: #2b669a; 518 | } 519 | .list-group-item.active .badge, 520 | .list-group-item.active:hover .badge, 521 | .list-group-item.active:focus .badge { 522 | text-shadow: none; 523 | } 524 | .panel { 525 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 526 | box-shadow: 0 1px 2px rgba(0, 0, 0, .05); 527 | } 528 | .panel-default > .panel-heading { 529 | background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 530 | background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%); 531 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8)); 532 | background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%); 533 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0); 534 | background-repeat: repeat-x; 535 | } 536 | .panel-primary > .panel-heading { 537 | background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 538 | background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); 539 | background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4)); 540 | background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); 541 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); 542 | background-repeat: repeat-x; 543 | } 544 | .panel-success > .panel-heading { 545 | background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 546 | background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%); 547 | background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6)); 548 | background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%); 549 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0); 550 | background-repeat: repeat-x; 551 | } 552 | .panel-info > .panel-heading { 553 | background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 554 | background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%); 555 | background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3)); 556 | background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%); 557 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0); 558 | background-repeat: repeat-x; 559 | } 560 | .panel-warning > .panel-heading { 561 | background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 562 | background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%); 563 | background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc)); 564 | background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%); 565 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0); 566 | background-repeat: repeat-x; 567 | } 568 | .panel-danger > .panel-heading { 569 | background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 570 | background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%); 571 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc)); 572 | background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%); 573 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0); 574 | background-repeat: repeat-x; 575 | } 576 | .well { 577 | background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 578 | background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%); 579 | background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5)); 580 | background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%); 581 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0); 582 | background-repeat: repeat-x; 583 | border-color: #dcdcdc; 584 | -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 585 | box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1); 586 | } 587 | /*# sourceMappingURL=bootstrap-theme.css.map */ 588 | -------------------------------------------------------------------------------- /Flask/proyecto/static/css/bootstrap-theme.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{-webkit-box-shadow:none;box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-o-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-o-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-o-linear-gradient(top,#dbdbdb 0,#e2e2e2 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(to bottom,#dbdbdb 0,#e2e2e2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-o-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-o-linear-gradient(top,#080808 0,#0f0f0f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(to bottom,#080808 0,#0f0f0f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-o-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);background-repeat:repeat-x;border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-o-linear-gradient(top,#337ab7 0,#286090 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(to bottom,#337ab7 0,#286090 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-o-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-o-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-o-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-o-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);background-repeat:repeat-x}.progress-bar-striped{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2b669a 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(to bottom,#337ab7 0,#2b669a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-o-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-o-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-o-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-o-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} -------------------------------------------------------------------------------- /Flask/proyecto/static/css/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | } 4 | .starter-template { 5 | padding: 40px 15px; 6 | text-align: center; 7 | } -------------------------------------------------------------------------------- /Flask/proyecto/static/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Flask/proyecto/static/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /Flask/proyecto/static/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Flask/proyecto/static/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /Flask/proyecto/static/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Flask/proyecto/static/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /Flask/proyecto/static/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Flask/proyecto/static/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /Flask/proyecto/static/js/bootstrap.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.5",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.5",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.5",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.5",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.5",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.5",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.5",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); -------------------------------------------------------------------------------- /Flask/proyecto/static/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /Flask/proyecto/templates/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Pagina de Alumnos Reprobados 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Flask/proyecto/templates/index.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | 3 | {% block content %} 4 | 5 | aqui va lo del block content 6 | 9 |
10 |

test

11 |
12 | 13 | {% endblock %} -------------------------------------------------------------------------------- /Flask/proyecto/templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 29 | 30 |
31 | 32 | 33 | {% block content %} 34 | 35 | {% endblock %} 36 | 37 |
38 |
39 |

Este es el footer

40 |
41 | 42 | -------------------------------------------------------------------------------- /Flask/proyecto/templates/pamn.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | 3 | {% block content %} 4 | 5 | 6 | Alumno: {{ name | capitalize}} 7 | 8 | {% endblock %} -------------------------------------------------------------------------------- /Flask/proyecto/templates/paw.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | 3 | {% block content %} 4 | 5 |
6 |

Paw saluda a: {{ nombre | capitalize }}

7 |
8 | 9 | 10 | {% endblock %} -------------------------------------------------------------------------------- /Flask/proyecto/templates/tacos.html: -------------------------------------------------------------------------------- 1 | esta es la página de tacos -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/Alumno.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 10/Alumno.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/Alumno.java: -------------------------------------------------------------------------------- 1 | public class Alumno{ 2 | 3 | void reprobar(int calificacion)throws ArithmeticException{ 4 | System.out.println(calificacion/0); 5 | } 6 | 7 | void evaluar(int calificacion) throws CalificacionException{ 8 | if(calificacion < 6){ 9 | throw new CalificacionException("Alumno reprobado!!!! "); 10 | } 11 | 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/CalificacionException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 10/CalificacionException.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/CalificacionException.java: -------------------------------------------------------------------------------- 1 | public class CalificacionException extends ArithmeticException{ 2 | 3 | public CalificacionException(String mensaje){ 4 | super(mensaje); 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/Errores.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 10/Errores.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/Errores.java: -------------------------------------------------------------------------------- 1 | public class Errores{ 2 | 3 | public static void main(String args[]){ 4 | try{ 5 | int i = 1/0; 6 | System.out.println(i); 7 | System.out.println(args[1]); 8 | }catch(ArithmeticException var){ 9 | System.out.println("Error, eso no se puede :P"); 10 | }catch(ArrayIndexOutOfBoundsException var){ 11 | System.out.println("Te falta un parametro"); 12 | }finally{ 13 | System.out.println("Bloque finally"); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/Prueba.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 10/Prueba.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 10/Prueba.java: -------------------------------------------------------------------------------- 1 | public class Prueba{ 2 | 3 | public static void main(String args[])throws ArithmeticException{ 4 | Alumno paw = new Alumno(); 5 | paw.evaluar(4); 6 | } 7 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/EscrituraArchivo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 11/EscrituraArchivo.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/EscrituraArchivo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class EscrituraArchivo{ 4 | 5 | public static void main(String args[]) throws IOException{ 6 | 7 | FileWriter archivo = new FileWriter("hola.txt"); 8 | //InputStreamReader isr = new InputStreamReader(archivo); 9 | //BufferedReader br = new BufferedReader(archivo); 10 | 11 | archivo.append("Hola mundo"); 12 | archivo.close(); 13 | } 14 | } 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/LecturaArchivo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 11/LecturaArchivo.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/LecturaArchivo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class LecturaArchivo{ 4 | 5 | public static void main(String args[]) throws IOException{ 6 | 7 | FileReader archivo = new FileReader("prueba.txt"); 8 | //InputStreamReader isr = new InputStreamReader(archivo); 9 | BufferedReader br = new BufferedReader(archivo); 10 | String cadena; 11 | cadena = ""; 12 | while(cadena != null){ 13 | System.out.println("Teclea algo: :)"); 14 | cadena = br.readLine(); 15 | System.out.println("usted tecleo: " + cadena); 16 | } 17 | 18 | } 19 | } 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/LecturaTeclado.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 11/LecturaTeclado.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/LecturaTeclado.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class LecturaTeclado{ 4 | 5 | public static void main(String args[]) throws IOException{ 6 | 7 | InputStreamReader isr = new InputStreamReader(System.in); 8 | BufferedReader br = new BufferedReader(isr); 9 | String cadena; 10 | cadena = ""; 11 | while(cadena.compareTo("salir")!=0){ 12 | System.out.println("Teclea algo: :)"); 13 | cadena = br.readLine(); 14 | System.out.println("usted tecleo: " + cadena); 15 | } 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/hola.txt: -------------------------------------------------------------------------------- 1 | Hola mundo -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 11/prueba.txt: -------------------------------------------------------------------------------- 1 | hola 2 | adios 3 | si 4 | no 5 | jeje 6 | jaja 7 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/LeerTeclado.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class LeerTeclado{ 4 | 5 | public static void main(String args[]){ 6 | 7 | InputStreamReader teclado = new InputStreamReader(System.in); 8 | BufferedReader entrada = new BufferedReader(teclado); 9 | String cadena; 10 | 11 | System.out.println("Teclea algo: "); 12 | cadena = entrada.readLine(); 13 | System.out.println("Tecleaste: " + cadena); 14 | 15 | 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/Proceso.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 12/Proceso.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/Proceso.java: -------------------------------------------------------------------------------- 1 | public class Proceso extends Thread{ 2 | private int contador = 10; 3 | private static int hilos = 0; 4 | private int tiempo = 1000; 5 | 6 | public Proceso(int prioridad){ 7 | super("Hilo " + ++hilos); 8 | setPriority(prioridad); 9 | } 10 | 11 | public Proceso(int tiempo){ 12 | this.tiempo = tiempo; 13 | } 14 | 15 | public String toString(){ 16 | return getName() + " : " + contador; 17 | } 18 | 19 | public void run(){ 20 | while(contador > 0){ 21 | System.out.println(this); 22 | contador--; 23 | try{ 24 | sleep(1000); 25 | }catch(InterruptedException var){ 26 | 27 | } 28 | } 29 | } 30 | 31 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/Proceso2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 12/Proceso2.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/Proceso2.java: -------------------------------------------------------------------------------- 1 | public class Proceso2 implements Runnable{ 2 | private int contador = 10; 3 | private static int hilos = 0; 4 | private int tiempo = 1000; 5 | private String id; 6 | 7 | public Proceso2(){ 8 | hilos++; 9 | id = "Hilo " + hilos; 10 | } 11 | 12 | public Proceso2(int tiempo){ 13 | hilos++; 14 | id = "Hilo " + hilos; 15 | this.tiempo = tiempo; 16 | } 17 | 18 | // public String toString(){ 19 | // return getName() + " : " + contador; 20 | // } 21 | 22 | public void run(){ 23 | while(contador > 0){ 24 | System.out.println(id + ": " + contador); 25 | contador--; 26 | try{ 27 | Thread.sleep(1000); 28 | }catch(InterruptedException var){ 29 | 30 | } 31 | } 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/PruebaProceso.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 12/PruebaProceso.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/PruebaProceso.java: -------------------------------------------------------------------------------- 1 | public class PruebaProceso{ 2 | 3 | public static void main(String args[]){ 4 | int i; 5 | Thread hilo; 6 | Thread hilo9, hilo10; 7 | for( i = 0; i< 8; i++){ 8 | hilo = new Proceso(Thread.MAX_PRIORITY); 9 | hilo.start(); 10 | } 11 | 12 | hilo9 = new Proceso(2000); 13 | hilo10 = new Proceso(500); 14 | 15 | hilo9.start(); 16 | hilo10.start(); 17 | 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/PruebaProceso2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 12/PruebaProceso2.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 12/PruebaProceso2.java: -------------------------------------------------------------------------------- 1 | public class PruebaProceso2{ 2 | 3 | public static void main(String args[]){ 4 | int i; 5 | Thread hilo; 6 | Thread hilo9, hilo10; 7 | for( i = 0; i< 8; i++){ 8 | hilo = new Thread(new Proceso2()); 9 | hilo.start(); 10 | } 11 | 12 | hilo9 = new Thread(new Proceso2(2000)); 13 | hilo10 = new Thread(new Proceso2(500)); 14 | 15 | hilo9.start(); 16 | hilo10.start(); 17 | 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/Cliente.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 13/Cliente.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/Cliente.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.net.*; 3 | 4 | 5 | public class Cliente{ 6 | 7 | public static void main(String args[])throws UnknownHostException, IOException{ 8 | Socket cliente; 9 | InputStreamReader isr; 10 | BufferedReader entrada; 11 | PrintWriter salida; 12 | String cadena; 13 | 14 | cliente = new Socket("localhost", 80); 15 | System.out.println("Cliente conectado..."); 16 | 17 | isr = new InputStreamReader(cliente.getInputStream()); 18 | entrada = new BufferedReader(isr); 19 | 20 | salida = new PrintWriter(cliente.getOutputStream()); 21 | 22 | salida.println("get index.html"); 23 | salida.flush(); 24 | 25 | cadena = entrada.readLine(); 26 | while(cadena != null){ 27 | System.out.println(cadena); 28 | cadena = entrada.readLine(); 29 | } 30 | 31 | entrada.close(); 32 | salida.close(); 33 | cliente.close(); 34 | 35 | 36 | } 37 | 38 | } 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/Hilo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 13/Hilo.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/Hilo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.net.*; 3 | 4 | public class Hilo extends Thread{ 5 | 6 | Socket cliente; 7 | InputStreamReader isr; 8 | BufferedReader entrada; 9 | PrintWriter salida; 10 | String cadena; 11 | 12 | public Hilo(Socket cliente){ 13 | this.cliente = cliente; 14 | } 15 | 16 | public void run(){ 17 | try{ 18 | isr = new InputStreamReader(cliente.getInputStream()); 19 | entrada = new BufferedReader(isr); 20 | 21 | salida = new PrintWriter(cliente.getOutputStream()); 22 | 23 | salida.println("Chacales..."); 24 | salida.flush(); 25 | 26 | cadena = entrada.readLine(); 27 | System.out.println("Un chaca escribio: " + cadena); 28 | 29 | entrada.close(); 30 | salida.close(); 31 | cliente.close(); 32 | 33 | 34 | }catch(IOException var){ 35 | 36 | } 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/Servidor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 13/Servidor.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/Servidor.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.net.*; 3 | 4 | 5 | public class Servidor{ 6 | 7 | public static void main(String args[])throws UnknownHostException, IOException{ 8 | 9 | ServerSocket servidor; 10 | Socket cliente; 11 | InputStreamReader isr; 12 | BufferedReader entrada; 13 | PrintWriter salida; 14 | String cadena; 15 | int i = 0; 16 | 17 | servidor = new ServerSocket(9999); 18 | 19 | while(i< 3){ 20 | 21 | cliente = servidor.accept(); 22 | 23 | isr = new InputStreamReader(cliente.getInputStream()); 24 | entrada = new BufferedReader(isr); 25 | 26 | salida = new PrintWriter(cliente.getOutputStream()); 27 | 28 | salida.println("Bienvenido chaca #:)"+ (i+1)); 29 | salida.flush(); 30 | 31 | salida.println("Teclea algo: "); 32 | salida.flush(); 33 | cadena = entrada.readLine(); 34 | System.out.println("El chaca tecleo: " + cadena); 35 | salida.println("Tu tecleaste: " + cadena); 36 | salida.flush(); 37 | 38 | entrada.close(); 39 | salida.close(); 40 | cliente.close(); 41 | i++; 42 | 43 | } 44 | 45 | } 46 | 47 | } 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/ServidorMultiUsuario.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 13/ServidorMultiUsuario.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 13/ServidorMultiUsuario.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.net.*; 3 | 4 | 5 | public class ServidorMultiUsuario{ 6 | 7 | public static void main(String args[])throws UnknownHostException, IOException{ 8 | 9 | ServerSocket servidor; 10 | Socket cliente; 11 | int i = 0; 12 | 13 | servidor = new ServerSocket(9999); 14 | 15 | while(i< 3){ 16 | 17 | cliente = servidor.accept(); 18 | Hilo hilo = new Hilo(cliente); 19 | hilo.start(); 20 | 21 | } 22 | 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 3/a.out -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/hola.doc: -------------------------------------------------------------------------------- 1 | La suma de x + y es: 25 -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/hola.txt: -------------------------------------------------------------------------------- 1 | La suma de x + y es: 25 -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/numeros.txt: -------------------------------------------------------------------------------- 1 | 2,3,4,5,6,7,8,9 2 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | FILE *fp; 5 | char c; 6 | 7 | fp = fopen("hola.txt", "r"); 8 | 9 | if(fp == NULL){ 10 | printf("El archivo no se encuentra"); 11 | return 0; 12 | } 13 | 14 | while(!feof(fp)){ 15 | c = fgetc(fp); 16 | printf("%c ", c); 17 | } 18 | } 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | FILE *fp; 5 | char c[5]; 6 | 7 | fp = fopen("hola.txt", "r"); 8 | 9 | if(fp == NULL){ 10 | printf("El archivo no se encuentra"); 11 | return 0; 12 | } 13 | 14 | while(!feof(fp)){ 15 | fgets(c, 5, fp); 16 | printf("%s ", c); 17 | } 18 | 19 | fclose(fp); 20 | } 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | FILE *fp; 5 | char c[5]={'a', 'e', 'i','o','u'}; 6 | int i; 7 | 8 | fp = fopen("hola.txt", "a"); 9 | 10 | if(fp == NULL){ 11 | printf("El archivo no se encuentra"); 12 | return 0; 13 | } 14 | 15 | for(i=0;i<5;i++){ 16 | fputs(c, fp); 17 | } 18 | 19 | fclose(fp); 20 | } 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/prog4.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | FILE *fp; 5 | char c[5]={'a', 'e', 'i', 'o', 'u'}; 6 | 7 | fp = fopen("hola.txt", "w"); 8 | 9 | fputs(c, fp); 10 | fputs(c, fp); 11 | 12 | fclose(fp); 13 | } 14 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/prog5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | FILE *fp; 5 | int x=5, y=20; 6 | 7 | fp = fopen("hola.doc", "w"); 8 | 9 | fprintf(fp, "La suma de x + y es: %d", (x+y)); 10 | 11 | fclose(fp); 12 | } 13 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 3/prog6.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | FILE *fp; 5 | int total = 0; 6 | int numero; 7 | 8 | fp = fopen("numeros.txt", "r"); 9 | 10 | while(!feof(fp)){ 11 | fscanf(fp, "%d,", &numero); 12 | total = total + numero; 13 | } 14 | 15 | printf("%d", total); 16 | 17 | fclose(fp); 18 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 8/Alumno.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 8/Alumno.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 8/Alumno.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | public class Alumno{ 4 | private String nombre; 5 | int edad; 6 | 7 | public Alumno(){ 8 | nombre = "nadie"; 9 | edad = 0; 10 | } 11 | 12 | public Alumno(String nombre, int edad){ 13 | this.nombre = nombre; 14 | this.edad = edad; 15 | } 16 | 17 | public void setNombre(String nombre){ 18 | this.nombre = nombre; 19 | } 20 | 21 | public String getNombre(){ 22 | return this.nombre; 23 | } 24 | 25 | public String toString(){ 26 | return "Yo me llamo " + nombre + " y mi edad es: " + edad; 27 | } 28 | 29 | void leer(){ 30 | System.out.println("...Leyendo..."); 31 | } 32 | 33 | void escribir(){ 34 | System.out.println("...Escribiendo..."); 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 8/Alumno.py: -------------------------------------------------------------------------------- 1 | class Alumno(): 2 | nombre="" 3 | edad = 0 4 | 5 | def __init__(self): 6 | self.nombre = "nobody" 7 | self.edad = 0 8 | 9 | def leer(self): 10 | print("...leyendo...") 11 | 12 | def escribir(self): 13 | print("...escribiendo...") 14 | 15 | dormilon = Alumno() 16 | despierto = Alumno() 17 | dormilon.leer() 18 | despierto.escribir() 19 | print("yo soy " , dormilon.nombre) -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 8/Ingeniero.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 8/Ingeniero.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 8/Ingeniero.java: -------------------------------------------------------------------------------- 1 | public class Ingeniero extends Alumno{ 2 | 3 | public Ingeniero(){ 4 | super("Master", 22); 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 8/Prueba.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab09/Practica 8/Prueba.class -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica 8/Prueba.java: -------------------------------------------------------------------------------- 1 | public class Prueba{ 2 | 3 | public static void main(String args[]){ 4 | 5 | Alumno pedro = new Alumno(); 6 | Alumno karla = new Alumno("Karla", 22); 7 | Ingeniero paw = new Ingeniero(); 8 | 9 | pedro.leer(); 10 | pedro.escribir(); 11 | 12 | pedro.setNombre("Josue"); 13 | 14 | System.out.println(pedro); 15 | System.out.println(karla); 16 | System.out.println(paw); 17 | 18 | 19 | } 20 | 21 | 22 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica-1-2/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int arreglo[10]={2,4,6,1,0,-1,9,2,5,6}; 6 | int i,j; 7 | int temp; 8 | 9 | for(i=0;i<10;i++){ 10 | for(j= i+1; j< 10; j++){ 11 | if(arreglo[i]< arreglo[j]){ 12 | temp = arreglo[i]; 13 | arreglo[i] = arreglo[j]; 14 | arreglo[j] = temp; 15 | } 16 | } 17 | } 18 | 19 | for(i =0; i<10;i++){ 20 | printf("\n%d", arreglo[i]); 21 | 22 | } 23 | 24 | return 0; 25 | } 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica-1-2/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int matriz[3][3]={{3,4,2},{3,4,2},{4,3,2}}; 6 | int i, j; 7 | 8 | for(i = 0 ; i<3; i++){ 9 | for(j = 0; j<3; j++){ 10 | printf("\n%p [%d][%d]", &matriz[i][j], i, j); 11 | } 12 | 13 | } 14 | 15 | 16 | } -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica-1-2/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | 6 | struct Alumno{ 7 | char nombre[20]; 8 | int edad; 9 | char sexo; 10 | }; 11 | 12 | int n = 2; 13 | struct Alumno *fi; 14 | 15 | fi.edad = 20; 16 | fi.sexo ='M'; 17 | strcpy(fi.nombre, "Bryan"); 18 | 19 | printf("\n %s %c %d", fi.nombre, fi.sexo, fi.edad); 20 | 21 | } 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica-1-2/prog4.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main(){ 6 | 7 | struct Alumno{ 8 | char nombre[20]; 9 | int edad; 10 | char sexo; 11 | }; 12 | 13 | struct Alumno *fi; 14 | fi = (struct Alumno *)malloc(sizeof(struct Alumno)); 15 | fi->edad = 20; 16 | fi->sexo ='M'; 17 | strcpy(fi->nombre, "Bryan"); 18 | 19 | printf("\n %s %c %d", fi->nombre, fi->sexo, fi->edad); 20 | 21 | } 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Laboratorio/Lab09/Practica-1-2/prog5.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main(){ 6 | 7 | int *p; 8 | int x= 25; 9 | 10 | p = &x; 11 | *p = 45; 12 | printf("\n%p -> %p", p, &x); 13 | printf("\n%d -> %d", *p, x); 14 | printf("\n"); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/.ipynb_checkpoints/Untitled-checkpoint.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [], 3 | "metadata": {}, 4 | "nbformat": 4, 5 | "nbformat_minor": 0 6 | } 7 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/EscribirArchivo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class EscribirArchivo{ 4 | 5 | public static void main(String args[]) throws IOException { 6 | 7 | FileWriter fw = new FileWriter("archivonuevo.txt"); 8 | BufferedWriter bw = new BufferedWriter(fw); 9 | 10 | bw.write("Este es un contenido"); 11 | bw.close(); 12 | } 13 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/LeerArchivo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Pract11/LeerArchivo.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/LeerArchivo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class LeerArchivo{ 4 | 5 | public static void main(String args[])throws IOException{ 6 | 7 | FileReader archivo = new FileReader("hola.txt"); 8 | BufferedReader entrada = new BufferedReader(archivo); 9 | String cadena=""; 10 | 11 | do{ 12 | cadena = entrada.readLine(); 13 | System.out.println(cadena); 14 | }while(cadena != null);c 15 | 16 | entrada.close(); 17 | 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/LeerTeclado.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Pract11/LeerTeclado.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/LeerTeclado.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class LeerTeclado{ 4 | 5 | public static void main(String args[])throws IOException{ 6 | 7 | InputStreamReader teclado = new InputStreamReader(System.in); 8 | BufferedReader entrada = new BufferedReader(teclado); 9 | String cadena; 10 | 11 | System.out.println("Teclea algo: "); 12 | cadena = entrada.readLine(); 13 | System.out.println("Tecleaste: " + cadena); 14 | 15 | 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/LeerTecladoScanner.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Pract11/LeerTecladoScanner.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/LeerTecladoScanner.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.util.Scanner; 3 | 4 | public class LeerTecladoScanner{ 5 | 6 | public static void main(String args[])throws IOException{ 7 | 8 | Scanner teclado = new Scanner(System.in); 9 | String cadena; 10 | int numero; 11 | 12 | System.out.println("Teclea algo: "); 13 | cadena = teclado.nextLine(); 14 | System.out.println("Tecleaste: " + cadena); 15 | 16 | System.out.println("Teclea un numero: "); 17 | numero = teclado.nextInt(); 18 | System.out.println("Tu numero * 2 es: " + (numero * 2)); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Pract11/hola.txt: -------------------------------------------------------------------------------- 1 | Todos 2 | mis 3 | alumnos 4 | van 5 | a 6 | reprobar 7 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 10/Alumno.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Practica 10/Alumno.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 10/Alumno.java: -------------------------------------------------------------------------------- 1 | public class Alumno{ 2 | 3 | void evalua(int calificacion)throws AlumnoException{ 4 | if(calificacion <=5){ 5 | throw new AlumnoException(); 6 | } 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 10/AlumnoException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Practica 10/AlumnoException.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 10/AlumnoException.java: -------------------------------------------------------------------------------- 1 | public class AlumnoException extends Exception{ 2 | 3 | public AlumnoException(){ 4 | super("Este alumno esta reprobado"); 5 | } 6 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 10/PruebaError.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Practica 10/PruebaError.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 10/PruebaError.java: -------------------------------------------------------------------------------- 1 | public class PruebaError{ 2 | 3 | public static void main(String args[]){ 4 | try{ 5 | String param = args[0]; 6 | System.out.println("El parametro es:" + param); 7 | 8 | Alumno fer = new Alumno(); 9 | fer.evalua(4); 10 | 11 | }catch(ArrayIndexOutOfBoundsException var){ 12 | System.out.println("Falta parámetro"); 13 | }catch(AlumnoException var){ 14 | System.out.println("Alumnito reprobado"); 15 | }finally{ 16 | System.out.println("Gracias por participar :)"); 17 | } 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 12/Proceso.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Practica 12/Proceso.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 12/Proceso.java: -------------------------------------------------------------------------------- 1 | public class Proceso implements Runnable{ 2 | 3 | private static int totalHilos = 0; 4 | int contador = 10; 5 | int id; 6 | int tiempo = 1000; 7 | 8 | public Proceso(int tiempo){ 9 | totalHilos = totalHilos + 1; 10 | id = totalHilos; 11 | this.tiempo = tiempo; 12 | } 13 | 14 | public String toString(){ 15 | return "Hilo " + id + ": " + contador; 16 | } 17 | 18 | 19 | public void run(){ 20 | while(contador > 0){ 21 | System.out.println(this); 22 | contador--; 23 | // try{ 24 | // sleep(tiempo); 25 | // }catch(InterruptedException e){ 26 | 27 | // } 28 | } 29 | } 30 | 31 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 12/PruebaProceso.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Practica 12/PruebaProceso.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 12/PruebaProceso.java: -------------------------------------------------------------------------------- 1 | public class PruebaProceso{ 2 | 3 | public static void main(String args[]){ 4 | 5 | Proceso hilo = new Proceso(500); 6 | Thread otroHilo = new Thread(new Proceso(2000)); 7 | //hilo.start(); 8 | otroHilo.start(); 9 | } 10 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 13/Cliente.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Practica 13/Cliente.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 13/Cliente.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class Cliente{ 5 | 6 | public static void main(String args[])throws UnknownHostException, IOException{ 7 | 8 | Socket cliente; 9 | InputStreamReader isr; 10 | BufferedReader entrada; 11 | PrintWriter salida; 12 | String cadena; 13 | 14 | cliente = new Socket("localhost", 80); 15 | 16 | isr = new InputStreamReader(cliente.getInputStream()); 17 | entrada = new BufferedReader(isr); 18 | salida = new PrintWriter(cliente.getOutputStream()); 19 | 20 | salida.println("get index.html"); 21 | salida.flush(); 22 | 23 | cadena = entrada.readLine(); 24 | 25 | while(cadena != null){ 26 | System.out.println(cadena); 27 | cadena = entrada.readLine(); 28 | } 29 | 30 | salida.close(); 31 | entrada.close(); 32 | cliente.close(); 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 13/Servidor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/Practica 13/Servidor.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/Practica 13/Servidor.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class Servidor{ 5 | 6 | public static void main(String args[])throws UnknownHostException, IOException{ 7 | 8 | ServerSocket servidor; 9 | Socket cliente; 10 | InputStreamReader isr; 11 | BufferedReader entrada; 12 | PrintWriter salida; 13 | String cadena; 14 | 15 | servidor = new ServerSocket(8080); 16 | System.out.println("Servidor listo..."); 17 | cliente = servidor.accept(); 18 | 19 | System.out.println("Un cliente conectado..."); 20 | 21 | isr = new InputStreamReader(cliente.getInputStream()); 22 | entrada = new BufferedReader(isr); 23 | salida = new PrintWriter(cliente.getOutputStream()); 24 | 25 | salida.println("Saludos buen alumno!!"); 26 | salida.flush(); 27 | 28 | cadena = entrada.readLine(); 29 | salida.println("Usted escribio: " + cadena); 30 | System.out.println("El usuario escribio: " + cadena); 31 | 32 | salida.close(); 33 | entrada.close(); 34 | cliente.close(); 35 | 36 | } 37 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/Untitled.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [], 3 | "metadata": {}, 4 | "nbformat": 4, 5 | "nbformat_minor": 0 6 | } 7 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/a.out -------------------------------------------------------------------------------- /Laboratorio/Lab15/factorial.py: -------------------------------------------------------------------------------- 1 | n = 5 2 | total = 1 3 | for i in range(1,n+1): 4 | total = total * i 5 | print total 6 | 7 | print ("hola") -------------------------------------------------------------------------------- /Laboratorio/Lab15/fibonacci.py: -------------------------------------------------------------------------------- 1 | #coding: UTF-8 2 | n = 10 3 | sem1 = 0 4 | sem2 = 1 5 | nuevo = 0 6 | for i in range(1,n+1): 7 | nuevo = sem1 + sem2 8 | print(nuevo) 9 | sem1 = sem2 10 | sem2 = nuevo 11 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/numeros.txt: -------------------------------------------------------------------------------- 1 | a 2 | Esta clase esta coqui 3 | El numero magico es: 2222a 4 | Esta clase esta coqui 5 | El numero magico es: 2222a 6 | Esta clase esta coqui 7 | El numero magico es: 2222a 8 | Esta clase esta coqui 9 | El numero magico es: 2222a 10 | Esta clase esta coqui 11 | El numero magico es: 2222a 12 | Esta clase esta coqui 13 | El numero magico es: 2222 -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Alumno.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/practica 8/Alumno.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Alumno.java: -------------------------------------------------------------------------------- 1 | public abstract class Alumno{ 2 | int id = 0; 3 | String nombre; 4 | int edad; 5 | static int contador = 0; 6 | 7 | public Alumno(){ 8 | edad = 0; 9 | nombre = "nobody"; 10 | contador = contador +1; 11 | id = contador; 12 | } 13 | 14 | public Alumno(String nombre, int edad){ 15 | this.nombre = nombre; 16 | this.edad = edad; 17 | } 18 | 19 | public String toString(){ 20 | return "Yo soy " + nombre + " y mi id es: " + id; 21 | } 22 | 23 | abstract void leer(); 24 | 25 | void escribir(){ 26 | System.out.println("... escribiendo ..."); 27 | } 28 | } 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Cchachero.java: -------------------------------------------------------------------------------- 1 | public class Cchachero implements Talachero{ 2 | 3 | public Cchachero(){ 4 | System.out.println("Cuiden sus carteras..."); 5 | } 6 | 7 | public void reparar(){ 8 | System.out.println("... Cch en su habitat natural..."); 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Ingeniero.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/practica 8/Ingeniero.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Ingeniero.java: -------------------------------------------------------------------------------- 1 | public class Ingeniero extends Alumno implements Talachero{ 2 | 3 | String esGuapo = "Si"; 4 | 5 | void crear(){ 6 | System.out.println("Creando al mundo..."); 7 | } 8 | 9 | //override 10 | void leer(){ 11 | System.out.println("Los inges leen y ya..."); 12 | } 13 | 14 | public void reparar(){ 15 | System.out.println("Reparando..."); 16 | } 17 | 18 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Medico.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/practica 8/Medico.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Medico.java: -------------------------------------------------------------------------------- 1 | public class Medico extends Alumno{ 2 | 3 | void operar(){ 4 | System.out.println("Estoy operando... "); 5 | } 6 | 7 | //override 8 | void leer(){ 9 | System.out.println("Los medicos leen mucho..."); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Prueba.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/practica 8/Prueba.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Prueba.java: -------------------------------------------------------------------------------- 1 | public class Prueba{ 2 | 3 | public static void main(String args[]){ 4 | Ingeniero fer = new Ingeniero(); 5 | Medico simi = new Medico(); 6 | 7 | Alumno gil = new Ingeniero(); 8 | 9 | simi.leer(); 10 | fer.leer(); 11 | gil.leer(); 12 | ((Ingeniero) gil).crear(); 13 | 14 | System.out.println(fer); 15 | System.out.println(simi); 16 | System.out.println(gil); 17 | fer.reparar(); 18 | 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Talachero.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/practica 8/Talachero.class -------------------------------------------------------------------------------- /Laboratorio/Lab15/practica 8/Talachero.java: -------------------------------------------------------------------------------- 1 | public interface Talachero{ 2 | 3 | public void reparar(); 4 | 5 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int x[10] = {2,-1,4,8,0,-3,10,7,9,0}; 5 | int i, j; 6 | int temp; 7 | 8 | for(i = 0; i < 10; i++){ 9 | for(j = i+1; j< 10; j++){ 10 | if(x[i]> x[j]){ 11 | temp = x[i]; 12 | x[i] = x[j]; 13 | x[j] = temp; 14 | } 15 | } 16 | } 17 | 18 | for(i = 0; i< 10; i++){ 19 | printf("\n%d", x[i]); 20 | } 21 | } 22 | 23 | 24 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog10.py: -------------------------------------------------------------------------------- 1 | var = range(1,100,5) 2 | print(range(1,100,5)) 3 | 4 | lista=['lalo', 'lola', 3, 5, 9,10] 5 | for item in var: 6 | print item -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog11.py: -------------------------------------------------------------------------------- 1 | otra_var = int(raw_input("un numero")) 2 | var = input("Mete un numero: ") 3 | print var 4 | print otra_var + 100 -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | 6 | struct Alumno{ 7 | char nombre[20]; 8 | int edad; 9 | char sexo; 10 | }; 11 | int n = 2; 12 | struct Alumno fi[18100]; 13 | fi[n].edad = 20; 14 | fi[n].sexo = 'M'; 15 | strcpy(fi[n].nombre, "Brayan"); 16 | 17 | printf("%s %c %d", fi[n].nombre, fi[n].sexo, fi[n].edad); 18 | } 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main(){ 6 | 7 | struct Alumno{ 8 | char nombre[20]; 9 | int edad; 10 | char sexo; 11 | }; 12 | 13 | struct Alumno *fi; 14 | 15 | for(i = 0; i< n; i++){ 16 | fi = (struct Alumno *)malloc(sizeof(struct Alumno)); 17 | fi->edad = 20; 18 | fi->sexo = 'M'; 19 | strcpy(fi->nombre, "Brayan"); 20 | 21 | printf("%s %c %d", fi->nombre, fi->sexo, fi->edad); 22 | } 23 | free(fi); 24 | } 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog4.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main(){ 6 | 7 | struct Alumno{ 8 | char nombre[20]; 9 | int edad; 10 | char sexo; 11 | struct Alumno *sig; 12 | }; 13 | int n = 3, i; 14 | struct Alumno *fi, *inicio; 15 | inicio = (struct Alumno *)malloc(sizeof(struct Alumno)); 16 | inicio->sig = NULL; 17 | n = 3; 18 | for(i = 0; i< n; i++){ 19 | fi = (struct Alumno *)malloc(sizeof(struct Alumno)); 20 | fi->sig = NULL; 21 | fi->sig = inicio->sig; 22 | inicio->sig = fi; 23 | fi->edad = 20; 24 | fi->sexo = 'M'; 25 | printf("Metele un nombre:"); 26 | gets(fi->nombre); 27 | //strcpy(fi->nombre, "Brayan"); 28 | } 29 | 30 | struct Alumno *temp = inicio; 31 | while(temp != NULL){ 32 | printf("\n%s", temp->nombre); 33 | temp = temp->sig; 34 | } 35 | 36 | } 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c; 7 | int total = 0; 8 | int numero; 9 | 10 | 11 | fp = fopen("numeros.txt", "r"); // Read 12 | 13 | if(fp == NULL){ 14 | printf("No se encuentra el archivo"); 15 | return 1; 16 | } 17 | 18 | while(!feof(fp)){ 19 | fscanf(fp, "%d,", &numero); 20 | total = total + numero; 21 | printf("%d ", numero); 22 | } 23 | 24 | printf("\n\n%d", total); 25 | } 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog6.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c[5]; 7 | 8 | 9 | fp = fopen("numeros.txt", "r"); // Read 10 | 11 | if(fp == NULL){ 12 | printf("No se encuentra el archivo"); 13 | return 1; 14 | } 15 | 16 | while(!feof(fp)){ 17 | fgets(c, 5, fp); 18 | printf("\n %s", c); 19 | } 20 | } 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog7.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c[5]; 7 | 8 | 9 | fp = fopen("numeros.txt", "r"); // Read 10 | 11 | if(fp == NULL){ 12 | printf("No se encuentra el archivo"); 13 | return 1; 14 | } 15 | 16 | while(!feof(fp)){ 17 | fgets(c, 5, fp); 18 | printf("\n %s", c); 19 | } 20 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog8.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c; 7 | int total = 0; 8 | int numero = 2222; 9 | 10 | 11 | fp = fopen("numeros.txt", "w"); // Read 12 | 13 | fputc('a', fp); 14 | fputs("\nEsta clase esta coqui", fp); 15 | fprintf(fp, "\nEl numero magico es: %d", numero); 16 | 17 | fclose(fp); 18 | 19 | } 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Laboratorio/Lab15/prog9.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c; 7 | int total = 0; 8 | int numero = 2222; 9 | 10 | 11 | fp = fopen("numeros.txt", "a"); // Read 12 | 13 | fputc('a', fp); 14 | fputs("\nEsta clase esta coqui", fp); 15 | fprintf(fp, "\nEl numero magico es: %d", numero); 16 | 17 | fclose(fp); 18 | 19 | } -------------------------------------------------------------------------------- /Laboratorio/Lab15/untitled.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Laboratorio/Lab15/untitled.txt -------------------------------------------------------------------------------- /Proyectos Resueltos/proy1-a.c: -------------------------------------------------------------------------------- 1 | // Proyecto no. 1, Solucion A 2 | // Usar un apuntador y tratarlo como matriz de n * m , 3 | // Indicar cuantos ceros tiene la matriz 4 | // Prohibido usar declaraciones de cualquier tipo de arrelos 5 | 6 | #include 7 | #include 8 | 9 | int main(){ 10 | 11 | int col, ren; //manejaran los tamannos de renglones y columnas de mi matriz 12 | int *p ; // manejará la matriz 13 | int i, j; // iteradores que se necesitaran en los "for" 14 | 15 | int offset=0; // variable que me desplazara cada cierto numero de columnas 16 | 17 | int total_ceros =0; //variable que manejara el total de ceros 18 | 19 | printf("Cuantos renglones?:"); 20 | scanf("%d", &ren); 21 | 22 | printf("\nCuantas columnas?:"); 23 | scanf("%d", &col); 24 | 25 | //Calculamos el tamanno de la matriz 26 | 27 | p = (int *)malloc((col * ren) * sizeof(int)); 28 | 29 | //Ahora pedimos nuestros datos 30 | for(i=0;i 7 | #include 8 | 9 | int main(){ 10 | 11 | int col, ren; //manejaran los tamannos de renglones y columnas de mi matriz 12 | int *p ; // manejará la matriz 13 | int i, j; // iteradores que se necesitaran en los "for" 14 | 15 | int offset=0; // variable que me desplazara cada cierto numero de columnas 16 | 17 | int total_ceros =0; //variable que manejara el total de ceros 18 | 19 | printf("Cuantos renglones?:"); 20 | scanf("%d", &ren); 21 | 22 | printf("\nCuantas columnas?:"); 23 | scanf("%d", &col); 24 | 25 | //Calculamos el tamanno de la matriz 26 | 27 | p = (int *)malloc((col * ren) * sizeof(int)); 28 | 29 | //Ahora pedimos nuestros datos 30 | for(i=0;i " + cadena); 47 | arreglo[i].salida.println(nickname + " dijo> " + cadena); 48 | arreglo[i].salida.flush(); 49 | } 50 | } 51 | 52 | } 53 | 54 | // cliente.close(); 55 | // salida.close(); 56 | // entrada.close(); 57 | }catch(IOException e){ 58 | 59 | } 60 | 61 | } 62 | 63 | 64 | } -------------------------------------------------------------------------------- /Teoria/Teo05/PruebaArchivo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo05/PruebaArchivo.class -------------------------------------------------------------------------------- /Teoria/Teo05/PruebaArchivo.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | 3 | public class PruebaArchivo{ 4 | 5 | public static void main(String args[]) throws IOException{ 6 | 7 | //InputStreamReader isr = new InputStreamReader(System.in); 8 | FileReader fr = new FileReader("Hola.txt"); 9 | BufferedReader br = new BufferedReader(fr); 10 | 11 | System.out.println("Teclea... :)"); 12 | String cadena = br.readLine(); 13 | System.out.println(cadena); 14 | 15 | fr.close(); 16 | 17 | } 18 | } -------------------------------------------------------------------------------- /Teoria/Teo05/Servidor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo05/Servidor.class -------------------------------------------------------------------------------- /Teoria/Teo05/Servidor.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class Servidor{ 5 | 6 | public static void main(String args[])throws IOException, UnknownHostException{ 7 | 8 | ServerSocket servidor; 9 | Socket cliente; 10 | InputStreamReader isr; 11 | BufferedReader entrada; 12 | PrintWriter salida; 13 | String cadena; 14 | int i = 0; 15 | 16 | servidor = new ServerSocket(9090); 17 | System.out.println("Server up and running!! :D"); 18 | while(i < 3){ 19 | 20 | cliente = servidor.accept(); 21 | System.out.println("1 user connected, :D"); 22 | 23 | isr = new InputStreamReader(cliente.getInputStream()); 24 | entrada = new BufferedReader(isr); 25 | salida = new PrintWriter(cliente.getOutputStream()); 26 | 27 | salida.println("Bienvenido vato!!, teclea algo :)"); 28 | salida.flush(); 29 | 30 | cadena = entrada.readLine(); 31 | System.out.println("El vato tecleo " + cadena); 32 | salida.println("Ey ese, usted tecleo: " + cadena); 33 | salida.flush(); 34 | 35 | cliente.close(); 36 | salida.close(); 37 | entrada.close(); 38 | 39 | i++; 40 | } 41 | 42 | 43 | } 44 | } -------------------------------------------------------------------------------- /Teoria/Teo05/ServidorMultiUsuario.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo05/ServidorMultiUsuario.class -------------------------------------------------------------------------------- /Teoria/Teo05/ServidorMultiUsuario.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class ServidorMultiUsuario{ 5 | 6 | static Hilo arregloHilos[] = new Hilo[3]; 7 | 8 | public static void main(String args[])throws IOException, UnknownHostException{ 9 | 10 | ServerSocket servidor; 11 | Socket cliente; 12 | 13 | int i = 0; 14 | 15 | servidor = new ServerSocket(9090); 16 | System.out.println("Server up and running!! :D"); 17 | while(i < 3){ 18 | 19 | cliente = servidor.accept(); 20 | 21 | arregloHilos[i] = new Hilo(cliente, arregloHilos); 22 | arregloHilos[i].start(); 23 | 24 | 25 | i++; 26 | } 27 | 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /Teoria/Teo05/Ventas.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo05/Ventas.class -------------------------------------------------------------------------------- /Teoria/Teo05/Ventas.java: -------------------------------------------------------------------------------- 1 | public class Ventas{ 2 | 3 | public static void main(String args[]){ 4 | String producto=""; 5 | String cantidad=""; 6 | try{ 7 | producto = args[0]; 8 | cantidad = args[1]; 9 | System.out.println("Usted quiere " + producto + " " + cantidad +" unidades"); 10 | }catch(ArrayIndexOutOfBoundsException var){ 11 | System.out.println("Te hace falta los parametros producto y cantidad"); 12 | }finally{ 13 | System.out.println("Gracias por usar el sistema :) "); 14 | } 15 | } 16 | 17 | 18 | } -------------------------------------------------------------------------------- /Teoria/Teo05/Ventas2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo05/Ventas2.class -------------------------------------------------------------------------------- /Teoria/Teo05/Ventas2.java: -------------------------------------------------------------------------------- 1 | public class Ventas2{ 2 | 3 | public static void main(String args[]){ 4 | String producto=""; 5 | String cantidad=""; 6 | producto = args[0]; 7 | cantidad = args[1]; 8 | System.out.println("Usted quiere " + producto + " " + cantidad +" unidades"); 9 | 10 | } 11 | 12 | 13 | } -------------------------------------------------------------------------------- /Teoria/Teo05/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo05/a.out -------------------------------------------------------------------------------- /Teoria/Teo05/numeros.txt: -------------------------------------------------------------------------------- 1 | ABBBBLa salida es de: 200ABBBBLa salida es de: 200ABBBBLa salida es de: 200ABBBBLa salida es de: 200ABBBBLa salida es de: 200ABBBBLa salida es de: 200ABBBBLa salida es de: 200ABBBBLa salida es de: 200 -------------------------------------------------------------------------------- /Teoria/Teo05/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int x; 6 | int y; 7 | char c; 8 | 9 | printf("\n%p", &x); 10 | printf("\n%p", &y); 11 | printf("\n%p", &c); 12 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog10.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | 7 | fp = fopen("numeros.txt", "a"); 8 | int total = 200; 9 | 10 | fputc('A',fp); 11 | fputs("BBBB",fp); 12 | fprintf(fp, "La salida es de: %d", total); 13 | 14 | 15 | fclose(fp); 16 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int *p; 6 | 7 | printf("\n%p", &p); 8 | printf("\n%p", p); 9 | printf("\n%c", *p); 10 | printf("\n"); 11 | 12 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int *p; 6 | int x; 7 | 8 | x = 27; 9 | 10 | p = &x; 11 | 12 | *p = 3; 13 | 14 | printf("\n %p -> %p", p, &x); 15 | printf("\n %d -> %d", *p, x); 16 | printf("\n"); 17 | 18 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog4.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | void *p; 6 | int x = 10; 7 | char c = 'A'; 8 | 9 | p = &x; 10 | p = &c; 11 | printf("\n%p -> %p", p, &x); 12 | printf("\n%p -> %p", p, &c); 13 | printf("\n"); 14 | 15 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int *p; 6 | 7 | int n ; 8 | p = (int *)malloc(n * sizeof(int)); 9 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog6.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main(){ 6 | struct Alumno{ 7 | char nombre[20]; 8 | int edad; 9 | char sexo; 10 | struct Alumno *sig; 11 | }; 12 | 13 | int n=5, i; 14 | struct Alumno *fi, *inicio; 15 | inicio = (struct Alumno *)malloc(sizeof(struct Alumno)); 16 | inicio->sig = NULL; 17 | for(i=0;isig = inicio->sig; 20 | inicio->sig = fi; 21 | printf("Teclea un nombre: "); 22 | gets(fi->nombre); 23 | } 24 | 25 | struct Alumno *temp; 26 | temp = inicio->sig; 27 | while(temp != NULL){ 28 | printf("%s ",temp->nombre); 29 | temp = temp->sig; 30 | } 31 | 32 | } 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Teoria/Teo05/prog7.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c; 7 | 8 | fp = fopen("numeros.txt", "r"); 9 | 10 | if(fp == NULL){ 11 | printf("No existe el archivo"); 12 | return 1; 13 | } 14 | 15 | while(c != EOF){ 16 | c = fgetc(fp); 17 | printf("\n %c", c); 18 | } 19 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog8.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c[5]; 7 | 8 | fp = fopen("numeros.txt", "r"); 9 | 10 | if(fp == NULL){ 11 | printf("No existe el archivo"); 12 | return 1; 13 | } 14 | 15 | while(!feof(fp)){ 16 | fgets(c, 5,fp); 17 | printf("\n %s", c); 18 | } 19 | } -------------------------------------------------------------------------------- /Teoria/Teo05/prog9.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c[5]; 7 | int numero; 8 | 9 | fp = fopen("numeros.txt", "r"); 10 | 11 | if(fp == NULL){ 12 | printf("No existe el archivo"); 13 | return 1; 14 | } 15 | 16 | while(!feof(fp)){ 17 | fscanf(fp,"%d,", &numero); 18 | if(numero%2 == 0) printf("\n %d", numero); 19 | } 20 | } -------------------------------------------------------------------------------- /Teoria/Teo17/Alumno.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/Alumno.class -------------------------------------------------------------------------------- /Teoria/Teo17/Alumno.java: -------------------------------------------------------------------------------- 1 | public abstract class Alumno{ 2 | 3 | public abstract void leer(); 4 | 5 | public void deportes(){ 6 | System.out.println("Deportes"); 7 | } 8 | } -------------------------------------------------------------------------------- /Teoria/Teo17/Clase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/Clase.class -------------------------------------------------------------------------------- /Teoria/Teo17/Clase.java: -------------------------------------------------------------------------------- 1 | public class Clase extends Thread{ 2 | int total=0; 3 | int i = 0; 4 | static int contador = 0; 5 | 6 | public Clase(int total){ 7 | this.total = total; 8 | } 9 | 10 | public String toString(){ 11 | contador++; 12 | return "hilo " + contador; 13 | } 14 | public void run(){ 15 | while(i< total){ 16 | System.out.println(this + " - " + i); 17 | i++; 18 | } 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /Teoria/Teo17/Cliente.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/Cliente.class -------------------------------------------------------------------------------- /Teoria/Teo17/Cliente.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class Cliente{ 5 | 6 | public static void main(String args[]) throws IOException, UnknownHostException{ 7 | 8 | Socket socket; 9 | InputStreamReader entrada; 10 | BufferedReader br; 11 | String cadena; 12 | PrintWriter salida; 13 | 14 | socket = new Socket("localhost", 80); 15 | 16 | salida = new PrintWriter(socket.getOutputStream()); 17 | entrada = new InputStreamReader(socket.getInputStream()); 18 | br = new BufferedReader(entrada); 19 | 20 | salida.println("get index.html"); 21 | salida.flush(); 22 | 23 | cadena = br.readLine(); 24 | 25 | while(cadena != null){ 26 | System.out.println(cadena); 27 | cadena = br.readLine(); 28 | } 29 | 30 | salida.close(); 31 | br.close(); 32 | socket.close(); 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /Teoria/Teo17/Ingenieria.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/Ingenieria.class -------------------------------------------------------------------------------- /Teoria/Teo17/Ingenieria.java: -------------------------------------------------------------------------------- 1 | public class Ingenieria extends Alumno{ 2 | 3 | 4 | public void leer(){ 5 | System.out.println("leer"); 6 | } 7 | 8 | } -------------------------------------------------------------------------------- /Teoria/Teo17/Proceso.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/Proceso.class -------------------------------------------------------------------------------- /Teoria/Teo17/Proceso.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class Proceso extends Thread{ 5 | 6 | Socket cliente; 7 | InputStreamReader entrada; 8 | BufferedReader br; 9 | String cadena, nickname; 10 | PrintWriter salida; 11 | Proceso arreglo[]; 12 | 13 | 14 | public Proceso(Socket cliente, Proceso arr[]){ 15 | this.cliente = cliente; 16 | this.arreglo = arr; 17 | } 18 | 19 | public void run(){ 20 | int i; 21 | try{ 22 | 23 | salida = new PrintWriter(cliente.getOutputStream()); 24 | entrada = new InputStreamReader(cliente.getInputStream()); 25 | br = new BufferedReader(entrada); 26 | 27 | salida.println("Hola cliente, cual es tu nickname?"); 28 | salida.flush(); 29 | 30 | nickname = br.readLine(); 31 | salida.println("Bienvenido " + nickname); 32 | salida.flush(); 33 | 34 | for(i=0; i<3 ;i++){ 35 | if(arreglo[i]!=null && arreglo[i]!= this){ 36 | arreglo[i].salida.println("Acaba de entrar un nuevo usuario..."); 37 | arreglo[i].salida.flush(); 38 | } 39 | } 40 | 41 | while(true){ 42 | cadena = br.readLine(); 43 | if(cadena.compareTo("quit")==0) break; 44 | for(i=0; i<3 ;i++){ 45 | if(arreglo[i]!=null && arreglo[i]!= this){ 46 | arreglo[i].salida.println( nickname + " dijo:" + cadena); 47 | arreglo[i].salida.flush(); 48 | } 49 | } 50 | } 51 | 52 | for(i=0; i<3 ;i++){ 53 | if(arreglo[i]!=null && arreglo[i]!= this){ 54 | arreglo[i].salida.println("Acaba de irse " + nickname); 55 | arreglo[i].salida.flush(); 56 | } 57 | } 58 | 59 | // salida.close(); 60 | // br.close(); 61 | // cliente.close(); 62 | }catch(IOException var){ 63 | System.out.println("Error de I/O"); 64 | } 65 | } 66 | 67 | 68 | } -------------------------------------------------------------------------------- /Teoria/Teo17/Prueba.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/Prueba.class -------------------------------------------------------------------------------- /Teoria/Teo17/Prueba.java: -------------------------------------------------------------------------------- 1 | public class Prueba{ 2 | 3 | public static void main(String args[]){ 4 | 5 | Ingenieria paw = new Ingenieria(); 6 | paw.leer(); 7 | } 8 | } -------------------------------------------------------------------------------- /Teoria/Teo17/PruebaClase.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/PruebaClase.class -------------------------------------------------------------------------------- /Teoria/Teo17/PruebaClase.java: -------------------------------------------------------------------------------- 1 | public class PruebaClase{ 2 | 3 | public static void main(String args[]){ 4 | 5 | Clase obj = new Clase(10); 6 | Clase obj2 = new Clase(20); 7 | 8 | obj.start(); 9 | obj2.start(); 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /Teoria/Teo17/Servidor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/Servidor.class -------------------------------------------------------------------------------- /Teoria/Teo17/Servidor.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class Servidor{ 5 | 6 | public static void main(String args[]) throws IOException, UnknownHostException{ 7 | 8 | Socket cliente; 9 | ServerSocket servidor; 10 | InputStreamReader entrada; 11 | BufferedReader br; 12 | String cadena; 13 | PrintWriter salida; 14 | 15 | servidor = new ServerSocket(8080); 16 | System.out.println("Yo soy el servidor..."); 17 | int i = 0; 18 | while(i<3){ 19 | 20 | 21 | cliente = servidor.accept(); 22 | 23 | i++; 24 | } 25 | System.out.println("Fin del servidor..."); 26 | 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /Teoria/Teo17/ServidorMultiUsuario.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/ServidorMultiUsuario.class -------------------------------------------------------------------------------- /Teoria/Teo17/ServidorMultiUsuario.java: -------------------------------------------------------------------------------- 1 | import java.net.*; 2 | import java.io.*; 3 | 4 | public class ServidorMultiUsuario{ 5 | public static final Proceso arreglo[] = new Proceso[3]; 6 | 7 | public static void main(String args[]) throws IOException, UnknownHostException{ 8 | 9 | Socket cliente; 10 | ServerSocket servidor; 11 | 12 | servidor = new ServerSocket(8080); 13 | System.out.println("Yo soy el servidor..."); 14 | int i = 0; 15 | while(i<3){ 16 | 17 | cliente = servidor.accept(); 18 | (arreglo[i] = new Proceso(cliente, arreglo)).start(); 19 | i++; 20 | } 21 | System.out.println("Fin del servidor..."); 22 | 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /Teoria/Teo17/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashbit/2016-1/a48e4d62644104d6943391f7842ec61aead60dc0/Teoria/Teo17/a.out -------------------------------------------------------------------------------- /Teoria/Teo17/numeros.txt: -------------------------------------------------------------------------------- 1 | Hola tu 2 | -------------------------------------------------------------------------------- /Teoria/Teo17/pagina.html: -------------------------------------------------------------------------------- 1 |

Detras Del Miedo


Malditas Ganas


Me Interesa


Belico


Soy De Rancho


-------------------------------------------------------------------------------- /Teoria/Teo17/prog1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Programa que muestra la direcciones de variables primitivas 3 | 4 | */ 5 | 6 | #include 7 | 8 | int main(){ 9 | int x; 10 | int y; 11 | char c; 12 | 13 | x = 30; 14 | y = 50; 15 | 16 | printf("\n%p", &x); 17 | printf("\n%p", &y); 18 | printf("\n%p", &c); 19 | printf("\n"); 20 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog10.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | 6 | struct Alumno{ 7 | char nombre[20]; 8 | char sexo; 9 | int edad; 10 | }; 11 | 12 | struct Alumno fi[12300]; 13 | 14 | fi[2].sexo = 'M'; 15 | fi[2].edad = 21; 16 | strcpy(fi[2].nombre, "Caroline"); 17 | 18 | printf("\n %s %c %d", fi[2].nombre, fi[2].sexo, fi[2].edad); 19 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog11.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main(){ 6 | 7 | struct Alumno{ 8 | char nombre[20]; 9 | char sexo; 10 | int edad; 11 | struct Alumno *sig; 12 | }; 13 | 14 | int i; 15 | struct Alumno *fi, *inicio, *temp, actual; 16 | 17 | inicio = (struct Alumno *)malloc(sizeof(struct Alumno)); 18 | inicio->sig = NULL; 19 | 20 | for(i=0;i<3;i++){ 21 | fi = (struct Alumno *)malloc(sizeof(struct Alumno)); 22 | 23 | fi->sig = inicio->sig; 24 | inicio->sig = fi; 25 | 26 | actual = fi; 27 | 28 | printf("Teclea un nombre: "); 29 | gets(fi->nombre); 30 | } 31 | 32 | temp = inicio->sig; 33 | 34 | while(temp != NULL){ 35 | printf("%s ", temp->nombre); 36 | temp = temp->sig; 37 | } 38 | 39 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog12.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | FILE *fp; 6 | char c; 7 | 8 | fp = fopen("numeros.txt", "r"); 9 | 10 | if(fp == NULL){ 11 | printf("No existe el archivo"); 12 | return 0; 13 | } 14 | 15 | while(c != EOF){ 16 | c = fgetc(fp); 17 | printf("\n%c", c); 18 | } 19 | 20 | fclose(fp); 21 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog13.py: -------------------------------------------------------------------------------- 1 | #coding: UTF-8 2 | #Este progama crea una pagina HTML con los ultimos cinco resultados que nos arroja Spotify 3 | 4 | #Primero importamos los paquetes que requerimos para nuestro programa 5 | import json 6 | import sys 7 | import requests 8 | from collections import Counter 9 | 10 | #Creamos un archivo que nos permita crear nuestra página WEB 11 | archivo = open("pagina.html", "w") 12 | 13 | #Nos conectamos al sitio de spotify, buscamos los 5 ultimos albums de "Muse" que esten en el mercado mexicano 14 | url = "https://api.spotify.com/v1/search?q=Komander&type=album&market=MX&limit=5" 15 | #Hacemos la solicitud ya que hemos construido la URL 16 | respuesta_api = requests.get(url) 17 | 18 | #Si hay respuesta sera un JSON, entonces ahora creamos objetos 19 | objetos = json.loads(respuesta_api.text) 20 | 21 | albums = objetos['albums']['items'] 22 | 23 | for album in albums: 24 | print album['name'] 25 | imagenes = album['images'] 26 | imagen = imagenes[1]['url'] 27 | mensaje ="" 28 | mensaje = "" 29 | mensaje = mensaje + "

" + album['name'] + "


" 30 | archivo.write(mensaje) 31 | 32 | archivo.close() -------------------------------------------------------------------------------- /Teoria/Teo17/prog2.c: -------------------------------------------------------------------------------- 1 | /* 2 | Programa que muestra las direcciones de un arreglo que maneja datos del tipo INT 3 | */ 4 | 5 | 6 | #include 7 | 8 | int main(){ 9 | 10 | int arreglo[10]; 11 | int i; 12 | for(i=0;i<10;i++){ 13 | printf("\n%p", &arreglo[i]); 14 | } 15 | printf("\n"); 16 | printf("\n%p", arreglo); 17 | printf("\n%p", arreglo++); 18 | printf("\n"); 19 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog3.c: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Codigo que muestra la linealidad en las direcciones de un arreglo bidimensional 4 | */ 5 | 6 | #include 7 | 8 | int main(){ 9 | 10 | int arreglo[3][3]; 11 | int i, j; 12 | for(i=0;i<3;i++){ 13 | for(j=0;j<3;j++){ 14 | printf("\n%p -> [%d][%d]", &arreglo[i][j], i, j); 15 | } 16 | } 17 | printf("\n"); 18 | printf("\n%p", arreglo); 19 | printf("\n"); 20 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog4.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int *p; 6 | int x = 25; 7 | 8 | p = &x; 9 | 10 | *p = 33; 11 | 12 | printf("\n%p -> %p", p, &x); 13 | printf("\n%d -> %d", *p, x); 14 | printf("\n"); 15 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int *p; 6 | void *temp; 7 | int x = 25; 8 | char c = 'A'; 9 | p = &x; 10 | 11 | temp = &x; 12 | temp = &c; 13 | 14 | printf("\n%p -> %p", temp, &c); 15 | // printf("\n%d -> %d", *p, x); 16 | printf("\n"); 17 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog6.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | 5 | int x[5]={3,2,5,1,0}; 6 | int *p; 7 | 8 | p = x; 9 | 10 | p++; 11 | p++;p++;p++;p++;p++; 12 | printf("\n%d", *p); 13 | printf("\n"); 14 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog7.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | 6 | int *p; 7 | 8 | p = (int *)malloc(sizeof(int)); 9 | 10 | printf("\n%p -> %d", p, *p); 11 | 12 | printf("\n"); 13 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog8.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | 6 | int *p; 7 | 8 | p = (int *)malloc(4 * sizeof(int)); 9 | 10 | p[2] = 3; 11 | printf("\n%p -> %d", p, p[2]); 12 | 13 | free(p); 14 | 15 | 16 | printf("\n"); 17 | } -------------------------------------------------------------------------------- /Teoria/Teo17/prog9.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | 6 | struct Alumno{ 7 | char nombre[20]; 8 | char sexo; 9 | int edad; 10 | }; 11 | 12 | struct Alumno puma; 13 | 14 | puma.sexo = 'M'; 15 | puma.edad = 21; 16 | strcpy(puma.nombre, "Caroline"); 17 | 18 | printf("\n %s %c %d", puma.nombre, puma.sexo, puma.edad); 19 | } --------------------------------------------------------------------------------