Skip to content

Instantly share code, notes, and snippets.

View oca159's full-sized avatar
🏠
Working from home

Osvaldo oca159

🏠
Working from home
  • ~/.config/nvim
  • 15:42 (UTC -06:00)
View GitHub Profile
@oca159
oca159 / .zshrc
Last active December 14, 2022 22:45
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
if [ -f "$HOME/.oh-my-zsh/themes/honukai.zsh-theme" ]; then
@oca159
oca159 / switch.py
Created June 14, 2015 18:23
Simular switch en python
def f(x):
return {
'a': 1,
'b': 2,
}.get(x, "No se encontró esa opción")
/*
* C++ - Arbol binario de busqueda aplicado en archivos
* Copyright 2013 Martin Cruz Otiniano
* Description : Tiene las funciones de insertar registro en un nodo (escribir), mostrar los registros
* haciendo uso del algoritmo y eliminar archivo ABB.
* Site : www.marcsdev.com
*/
#include <iostream>
#include <stdio.h>
/*
* C++ - Metodo de dispersion (Hashing)
* Copyright 2013 Martin Cruz Otiniano
* Site: www.marcsdev.com
*/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Criba de Eratostenes - C++
* Copyright 2014 Martin Cruz Otiniano
* Description : Esta funcion devuelve un vector(STL) con los numeros primos hasta un rango n enviado como parametro.
* Site : www.marcsdev.com
*/
#include <iostream>
#include <vector>
#include <cmath>
/*
* C++ - Árboles Binarios de Búsqueda
* Copyright 2014 Martin Cruz Otiniano
* Description : Funciones de Insercion, Busqueda, Eliminacion, Recorridos por niveles(amplitud), Altura, Arbol reflejo, Contar hojas.
* Site : www.marcsdev.com
*/
#include <iostream>
#include <stdlib.h>
/*
* C++ - Autómata Finito Determinista
* Copyright 2014 Martin Cruz Otiniano
* Description: Ingresa automata, verifica palabra
* Site: www.marcsdev.com
*/
#include <iostream>
#include <vector>
#include <algorithm>
@oca159
oca159 / pilas.cpp
Last active August 29, 2015 14:22 — forked from codepainkiller/pilas.cpp
/*
* C++ - Pilas/Stack
* Copyright 2014 Martin Cruz Otiniano
* Description : Apila elemento, Desempila elemento, Mostrar pila, Destruir Pila
* Site : www.marcsdev.com
*/
#include <iostream>
using namespace std;
@oca159
oca159 / colas.cpp
Last active August 29, 2015 14:22 — forked from codepainkiller/colas.cpp
/*
* C++ - Colas/Queue
* Copyright 2014 Martin Cruz Otiniano
* Description : Encola elemento, Desesencola elemento, Mostrar cola, Vaciar cola
* Site : www.marcsdev.com
*/
#include <iostream>
using namespace std;
/*
* C++ - Listas Enlazadas simples en c++
* Copyright 2014 Martin Cruz Otiniano
*
* Description: Inserta, elimina, busca, reporta
* Site: www.marcsdev.com
*/
#include <iostream>