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 | |
if [ "$TRAVIS_BRANCH" == "master" ]; then | |
echo -e "Publishing coverage..." | |
cd $HOME | |
git config --global user.email "[email protected]" | |
git config --global user.name "travis-ci" | |
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG gh-pages > /dev/null |
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 | |
APPS=$HOME/apps | |
mkdir -p $APPS | |
sudo pacman --noconfirm -S yaourt | |
yaourt --noconfirm -S packer | |
sudo pacman --noconfirm -S wget |
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
usuario(Usuario):-perfil(Usuario, _, _). | |
% 1.a | |
mascota(john, draik(amarillo, 100, [volar(720)], [peluca, pantalon, remera]). | |
% 1.b | |
% No hace falta definir lo que no tengo, por principio de universo cerrado va a dar falso. | |
% 1.c | |
amigo(peter, kayla). %% Puede ser bidireccional si quieren | |
amigo(kayla, joe). %% Puede ser bidireccional si quieren |
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
public class Incidente { | |
private String tag; | |
private String sector; | |
} | |
public class PersonaViolenta extends Incidente { | |
private Persona persona; | |
private String sector; | |
} |
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
-- (ataque, defensa, agallas, agresividad) | |
type Caracteristica = (Int, Int, Int, Int) | |
-- (TemaQueSabe, Area) | |
type Conocimiento = (String, String) | |
-- nombre vida caracteristicas conocimientos equipamientos | |
data Personaje = Personaje String Int Caracteristica [Conocimiento] [(Personaje -> Personaje)] |
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
nombre (n,_,_,_) = n | |
-- Punto 1 | |
-- 1.a | |
facha edad sexAppeal = (40 - edad) + sexAppeal * 3 | |
-- 1.b | |
liderazgo edad _ = edad * 10 |
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
/* | |
* EjerArchivo.c | |
* | |
* Created on: 21/08/2014 | |
* Author: utnso | |
*/ | |
//Archivo entrada:Región; Nombre y Apellido; Edad; Número Telefónico; DNI; Saldo | |
//Archivo salida:Región | Edad | DNI | Nombre y Apellido (30 chars máximo) | Número telefónico | |
//\n |
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
public bool FormLleno | |
{ | |
get | |
{ | |
var ret = true; | |
if (!HayErrores.GetValueOrDefault(false) && TipoMovimientoSeleccionado != null) | |
{ | |
// No tiene errores y hay tipo de movimiento seleccionado. |
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
/** | |
* chequea que el usuario tenga el permiso para modificar el tipo | |
* de movimiento indicado | |
*/ | |
private void authModificacionPorTM(final Movimiento aj) { | |
if (COBRANZA_APERTURA.esTipoDe(aj)) { | |
authz(MODIFICACION_APERTURA_COBRANZA); | |
} else if (COBRANZA_IMPUTACION.esTipoDe(aj)) { | |
authz(MODIFICACION_CAMBIO_IMPUT_COBRANZA); |
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
char* primerStringQueEmpiezaCon(t_list* strings, char* prefijo) { | |
bool empiezaCon(char* unaPalabra) { | |
return string_startWith(unaPalabra, prefijo); | |
} | |
return list_find(strings, empiezaCon); // le paso un puntero a función que representa un criterio | |
} |
NewerOlder