Skip to content

Instantly share code, notes, and snippets.

View edigreat's full-sized avatar

Heriberto edigreat

View GitHub Profile
@edigreat
edigreat / Ejercicios.pl
Last active December 15, 2015 22:34
Ejercicios de Prolog
/***********************************************
* 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"
@edigreat
edigreat / BufferTCL.tcl
Last active December 15, 2015 22:35
Simulacion de un Router como un buffer
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
@edigreat
edigreat / EjerciciosHaskell.hs
Last active May 25, 2021 19:11
Ejercicios Haskell
------------------------------------------------------
-- 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
@edigreat
edigreat / FizzBuzHw.groovy
Last active December 26, 2015 22:09
FizzBuzz with Groovy
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)
@edigreat
edigreat / Helios_WL10.3.0
Created September 24, 2013 16:11
Integracion Eclipse Helios y weblogic 10.3.0
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)
@edigreat
edigreat / gist:6653623
Created September 21, 2013 19:55
tmux configuration file (.tmux.conf)
# 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
@edigreat
edigreat / gist:6653376
Created September 21, 2013 19:20
vim configuration file (.vimrc)
" 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