This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# swith to sudo | |
sudo -i | |
# create swap | |
touch /2GiB.swap | |
chattr +C /2GiB.swap | |
fallocate -l 2048m /2GiB.swap | |
chmod 600 /2GiB.swap | |
mkswap /2GiB.swap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Se fija a 12 el no de threads máximo (tantos como cores en un nodo) | |
#Se asigna al trabajo el nombre helloomp | |
export OMP_THREAD_LIMIT=12 | |
#PBS -N helloomp | |
echo "No de threads inicial: $OMP_THREAD_LIMIT" | |
#Se asigna al trabajo la cola ac #Se ejecuta HelloOMP, que está en el directorio en el que se ha ejecutado qsub | |
#PBS -q ac for ((P=OMP_THREAD_LIMIT;P>0;P=P/2)) | |
#Se imprime información del trabajo usando variables de entorno de PBS | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$errors = array( | |
'nombre' => '', | |
'pass1' => '', | |
'pass2' => '', | |
); | |
if(strlen($nombre)<3 || strlen($nombre)>150){ | |
$errors['nombre'] = 'nombre incorrecto'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Autentificacion</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Conjunto &Conjunto::operator=(Conjunto conju){ | |
Dato *aux = conju.primero; | |
conju.primero = primero; | |
primero = aux; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <windows.h> | |
using namespace std; | |
#define TAMANIO_MAXIMO 0x1000 | |
wstring ReadLine() { | |
const HANDLE stdIn = GetStdHandle(STD_INPUT_HANDLE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bin/programa: obj/racional.o obj/programaracional.o | |
g++ -o bin/programa obj/racional.o obj/programaconracional.o | |
obj/racional.o: src/racional.cpp include/racional.h | |
g++ -o obj/racional.o -c src/racional.cpp | |
obj/programaracional.o: src/programaconracional.cpp include/racional.h | |
g++ -o obj/programaconracional.o -c src/programaconracional.cpp -Iinclude |