Skip to content

Instantly share code, notes, and snippets.

View huichops's full-sized avatar

Luis Argumedo huichops

View GitHub Profile
@huichops
huichops / .vimrc
Last active August 29, 2015 13:56
vim files
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing debian.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
@huichops
huichops / Parsiiau
Last active August 29, 2015 14:00
Script para parsear ofertas del siiau
Script para sacar los datos de la oferta academica del SIIAU
@huichops
huichops / mug.js
Last active August 29, 2015 14:10
{
content: "coffee",
milk: false,
sugar_count: 2
}
db.mug.insert({
content: "coffee",
milk: false,
sugar_count: 2
@huichops
huichops / SIIAU scrapper
Last active August 29, 2015 14:26
Small script to parse the data from SIIAU class schedules list into an associative array
Script para sacar los datos de la oferta academica del SIIAU en PHP
@huichops
huichops / animacionBasica.cpp
Created May 8, 2013 22:29
Animacion básica por frames y basada en el tiempo usando freeGlut y openGL.
#include "GL/freeglut.h"
#include "GL/gl.h"
#include <stdio.h>
double rotacion = 0.5, x = 0, velocidad = 180;
float rojo, verde, azul;
double delta;
int tiempoActual, tiempoAnterior;
void reshape(int width, int height){
#define GLUT_DISABLE_ATEXIT_HACK
#include <windows.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <stdlib.h>
#include <stdio.h>
@huichops
huichops / ecuacion.php
Created June 7, 2013 06:20
cuadratic plot
<html>
<head>
<style>
* {
margin: 0;
padding: 0;
font-family: Helvetica, Arial;
}
input[type="submit"]{
transition-duration: 0.5s;
@huichops
huichops / e_parallel.c
Created September 16, 2013 23:12
Calculo de el numero de Euler en paralelo con POSIX threads
/* * =====================================================================================
*
* Filename: e.c
*
* Description: Calculo del numero de Euler con hilos
*
* Version: 1.0
* Created: 11/09/13 16:54:45
* Revision: none
* Compiler: gcc
@huichops
huichops / canon_parallel.c
Last active December 24, 2015 02:38
Multiplicacion de matrices en paralelo con metodo de Canon
/*
* =====================================================================================
*
* Filename: canon.c
*
* Description: Multiplicacion de matrices con el algoritmo
* de Canon
*
* Version: 1.0
* Created: 22/09/13 10:36:18
@huichops
huichops / arboles.pl
Created October 30, 2013 03:17
Funciones de arboles binarios en prolog
arbol(nil).
arbol(a(_,HI,HD)):-
arbol(HI),arbol(HD).
contarNodos(nil, 0).
contarNodos(a(_,HI,HD),X):-
contarNodos(HI, A),
contarNodos(HD, B),
X is A+B+1.