Skip to content

Instantly share code, notes, and snippets.

View VentGrey's full-sized avatar
🤔
Dear God, what is it like in your funny little brains? It must be so boring!

Omar Purata VentGrey

🤔
Dear God, what is it like in your funny little brains? It must be so boring!
View GitHub Profile
@VentGrey
VentGrey / .vimrc
Created March 27, 2018 01:27
My vimrc
" Poner los colores en 256
set t_Co=256
" Quitar toda la mierda que trae Gvim
set go-=T
set go-=m
highlight SpellBad term=underline gui=undercurl guisp=orange
" Establecer el encoding bajo el estandar UTF-8
set enc=utf-8
.text
.file "main0-317d481089b8c8fe83113de504472633.rs"
.section .text._ZN3std2rt10lang_start17haec5f20d0f279a35E,"ax",@progbits
.hidden _ZN3std2rt10lang_start17haec5f20d0f279a35E
.globl _ZN3std2rt10lang_start17haec5f20d0f279a35E
.p2align 4, 0x90
.type _ZN3std2rt10lang_start17haec5f20d0f279a35E,@function
_ZN3std2rt10lang_start17haec5f20d0f279a35E:
.cfi_startproc
subq $40, %rsp
.file "main.c"
.section .rodata
.LC0:
.string "Hola Mundo!"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
@VentGrey
VentGrey / Proyecto.md
Last active October 15, 2018 13:24
Una lista de recomendaciones para el proyecto final de la materia "Diseño de base de datos".

Recursos para proyecto final

Solo son recomendaciones mías, nada personal o que se deba tomar en serio.


Editores de texto

  1. Notepad++ (Completo, Ligero) 🌟
  2. Visual Studio Code (Completo, posee Git, Personalizable, Extensible, Pesado) 🌟
  3. Sublime Text (Ligero, Personalizable, Requiere licencia) 🌟
@VentGrey
VentGrey / mandelbrot.c
Created February 11, 2019 16:12
Una función simple para el fractal de mandelbrot
int mand(complex<double> z0, int max)
{
complex<double> Z = z0;
for (int i = 0; i < max; i++) {
if (abs(Z) > 2.0) {
return i;
} else {
Z = Z * Z + z0;
}
@VentGrey
VentGrey / Escroto.c
Created February 11, 2019 17:32 — forked from ErnestoRdS/Escroto.c
int mandelbrotSet(double fnZ, float cnum, int nn) {
fnZ += pow(fnZ, 2) + cnum;
if(fnZ > 2)
return 0;
else if(nn == 0)
return 1;
else
return mandelbrotSet(fnZ, cnum, nn-1);
@VentGrey
VentGrey / mandelbrot.cpp
Created February 11, 2019 17:35
mandelbrotjodido.cpp
int value ( int x, int y) {
complex<float> point((float)x/width-1.5, (float)y/height-0.5);
// we divide by the image dimensions to get values smaller than 1
// then apply a translation
complex<float> z(0, 0);
unsigned int nb_iter = 0;
while (abs (z) < 2 && nb_iter <= 34) {
z = z * z + point;
nb_iter++;
}
@VentGrey
VentGrey / eval.md
Created March 3, 2019 02:26
evaluator workflow

If you want to evalue a simple but nontheless important expression like: `5 1 2 + 4 * + 3 −´

read 5
read 1
read 2
read +. + is an operator which takes 2 args, so calculate 1+2 and replace with the result (3). The expression is now 5 3 4 * + 3 -
read 4
read *. * is an operator which takes two args, so calculate 3*4 and replace with the result, 12. The expression is reduced to 5 12 + 3 -
read +. + is an operator which takes two args, so calculate 5+12, replace by the result, 17. Now, we have 17 3 -
@VentGrey
VentGrey / generic-stack.hpp
Created March 8, 2019 04:24
A simple stack implementation in C using templates (Generics)
#include <iostream>
#include <cstdlib>
using namespace std;
// No se como hacer stacks ilimitados, por lo tanto
// mantendré el tope de elementos como 100
const int MAX = 100;
@VentGrey
VentGrey / crud.c
Created November 17, 2019 09:43
A small CRUD made in C using Hero / Mission perspective.
// -- Inclusión de cabeceras
#include <stdio.h>
#include <stdlib.h>
// -- Estrucuras
typedef struct {
int id;
char nombre[20];