This file contains hidden or 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
/* | |
* C++ - Unir 2 listas circulares simples | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Une un una lista L1 con L2 y muestra la L1 que es la final | |
* Site: martincruz.me | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; |
This file contains hidden or 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
/* | |
* C++ - Colas Dobles | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Inserta y elimina por delante y detras de la cola | |
* Site: martincruz.me | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; |
This file contains hidden or 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
/* | |
* C++ - Colas con prioridad | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Se encola caracteres de acuerdo a su prioridad(entero) ingresada. | |
* Site: martincruz.me | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; |
This file contains hidden or 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
/* | |
* C++ - Frase Palindroma / Pilas(stack) | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Verifica si la frase es palindroma usando una pila | |
* Site: martincruz.me | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <stdlib.h> |
This file contains hidden or 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
/* | |
* C++ - Balanceo de simbolos de Agrupacion | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Verifica si los simbolos de agrupacion de una expresion fue bien ingresada | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <stdlib.h> |
This file contains hidden or 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
/* | |
* C++ - Invertir cadena / Pilas(stack) | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Invierte los caracteres de una cadena usando una pila | |
* Site: martincruz.me | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <stdlib.h> |
This file contains hidden or 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
/* | |
* UBIGEO - Perú | |
*/ | |
CREATE TABLE IF NOT EXISTS `departamentos` ( | |
`IdDepartamento` int(11) NOT NULL AUTO_INCREMENT, | |
`Departamento` varchar(1000) DEFAULT NULL, | |
PRIMARY KEY (`IdDepartamento`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ; |
This file contains hidden or 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
Laravel 5 - Deploy to Heroku | |
Martin Cruz Otiniano | |
> composer create-project laravel/laravel my_name_app | |
> cd my_name_app | |
> git init | |
> git add -A | |
> git commit -m "Initial commit" |
This file contains hidden or 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
package me.martincruz.main; | |
import java.awt.BorderLayout; | |
import java.awt.Canvas; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import javax.swing.JFrame; |
This file contains hidden or 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
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android |