This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# Terminar cuando haya errores | |
# set -e | |
# Modo de depuración - se muestran los comandos que se están | |
# ejecutando | |
# set -x | |
# Error si una variable está sin definir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# Limpiamos el terminal | |
clear | |
# Instalación de la aplicación si no existe | |
if [[ ! $(command -v mpg321) ]]; then | |
CORRECT=1 | |
while [[ $CORRECT -ne 0 ]]; do | |
read -n1 -p "La aplicación \"mpg321\" no está instalada. ¿Instalar? [Y/n] " INSTALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# Aplicación para copiar todos los scripts que existan en | |
# el directorio establecido, indiferentemente de dónde estén, a un | |
# USB (u otro directorio) que especifiquemos. Si los ficheros | |
# ya existen, se actualiza si procede. En otro caso, los copia. | |
# Se buscan scripts con formato .sh | |
# Comprobaciones de seguridad sobre los parámetros | |
[[ $# -ne 2 ]] && echo "Usage: $0 SOURCE DESTINATION" && exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# exit on error | |
set -e | |
# define tput commands | |
# background color using ANSI escape | |
bgBlack=$(tput setab 0) # black | |
bgRed=$(tput setab 1) # red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# exit on error | |
set -e | |
# define tput commands | |
# background color using ANSI escape | |
bgBlack=$(tput setab 0) # black | |
bgRed=$(tput setab 1) # red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# exit on error | |
set -e | |
# define tput commands | |
# background color using ANSI escape | |
bgBlack=$(tput setab 0) # black | |
bgRed=$(tput setab 1) # red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exam | |
# Copyright (C) 2021 - Javinator9889 | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--VHDL VGA PONG demo | |
--An FPGA version of the classic pong game | |
--Score counts up to 9 | |
--Right player uses buttons 0 and 1 | |
--Left player uses Switch 0 (Much harder!) | |
--Button 2 resets the game and score | |
library ieee; use ieee.std_logic_1164.all; USE ieee.std_logic_arith.all; | |
entity FPGA_VGA is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--VHDL VGA PONG demo | |
--An FPGA version of the classic pong game | |
--Score counts up to 9 | |
--Right player uses buttons 0 and 1 | |
--Left player uses Switch 0 (Much harder!) | |
--Button 2 resets the game and score | |
library ieee; use ieee.std_logic_1164.all; USE ieee.std_logic_arith.all; | |
entity FPGA_VGA is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum Enumeration { | |
ONE, // Posición: 0, constructor #1 | |
TWO(2), // Posición: 1, constructor #2 | |
THREE(3, "THREE"), // Posición: 2, constructor #3 | |
FOUR, // Posición: 3, constructor #1 | |
FIVE; // Posición: 4, constructor #1 | |
private int number; | |
private String name; | |