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
/*********************************************** | |
* Identificacion : Ejercicios.pl | |
* Version : 1.0 | |
* Posgrado : MCC UNAM | |
* Instalacion : SWI-Prolog version 6.6.6 | |
* Fecha de Entrega : Diciembre 2014 | |
***********************************************/ | |
%EJERCICIO 1% | |
/* INCISO A. Predicados "x_pert_arb" |
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
set ns [new Simulator] | |
set numeroNodos 5 | |
#Creamos un archivo de trace | |
set mytrace [open out.tr w] | |
$ns trace-all $mytrace | |
#Creamos un trace de nam | |
set myNam [open out.nam w] | |
$ns namtrace-all $myNam | |
#Procedimiento de finalizacion |
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
------------------------------------------------------ | |
-- Identificacion : EjerciciosHaskell.hs | |
-- Version: : 1.0 | |
-- Nombre del posgrado : MCC UNAM | |
-- Instalacion : GHCi, version 7.6.3 requerido | |
-- Fecha de Entrega : Noviembre 2014 | |
------------------------------------------------------- | |
module TareaHaskell where | |
import Data.List | |
{- Ejercicio 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
class FizzBuzz { | |
String isPrintable ( divisor1=3, divisor2=5, number ) { | |
(number % (divisor1 * divisor2) == 0) ? "FIZZBUZZ" : | |
(number % divisor2 == 0) ? "BUZZ": | |
(number % divisor1 == 0) ? "FIZZ": "$number" | |
} | |
Map calcula(List lista){ | |
if(lista.size()==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
No tener el proyecto en eclipse (borrarlo en caso de ser necesario) | |
Borrar los archivos ocultos de eclipse a la altura del pom.xml | |
.classpath | |
.project | |
.settings | |
.springbeans (solo para STS) | |
Generar el soporte para WTP (puede requerir conexion de internet, probado con maven 3) |
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
# use C-a, since it's on the home row and easier to hit than C-b | |
set -g prefix C-z | |
unbind-key C-b | |
#Changing the default delay | |
set -sg escape-time 1 | |
#change zero base index | |
set -g base-index 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
" Pathogen | |
execute pathogen#infect() | |
call pathogen#helptags() " generate helptags for everything in 'runtimepath' | |
syntax on | |
filetype plugin indent on | |
set number | |
colorscheme desert | |
set background=dark |