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
#Romina Cofre | |
# Unique appearances of each character | |
# return: diccionary | |
# params: String | |
def appear(S): | |
rep = {} #diccionary | |
for c in S: |
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
#include <stdio.h> | |
struct point{ | |
int x; | |
int y; | |
}; | |
typedef struct{ //creando un nuevo tipo para coordenada del punto | |
int y; |
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
#include <opencv2/opencv.hpp> | |
using namespace cv; | |
void imfilter( const cv::Mat & image ) { | |
// Creando las ventanas | |
namedWindow( "Imagen Original", WINDOW_AUTOSIZE ); | |
namedWindow( "Imagen Filtrada", WINDOW_AUTOSIZE ); |
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
/* | |
Compilar: g++ $(pkg-config --cflags --libs opencv) loadImage.cpp -o loadImage | |
*/ | |
#include <opencv2/opencv.hpp> //incluye todas las librerias OpenCV | |
using namespace cv; | |
int main( int argc, char** argv ) { |
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
/* | |
Compile: g++ test.c -o test //para la version de OpenCV 3 + | |
gcc // deberia servir para OpenCV 2 que usen solo C | |
*/ | |
#include <stdio.h> | |
#include "opencv2/core/core.hpp" //New C++ data structures and arithmetic routines | |
//#include <opencv2/core.hpp> //tambbien sirve | |
int main(){ |
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
/***************************************** | |
Formatos de salida en lenguaje C (C99) | |
-------------------------------------- | |
Formatear la salida en el caso de printf | |
Usando backslach \ | |
Romina Cofré |
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
def mmr(texto): | |
if len(texto) == 0 : | |
return "" | |
if len(texto) == 1: | |
return texto[0].upper() | |
else: | |
return texto[0].upper()+texto[1]+mmr(texto[2:]) | |
mmr("hola") |
NewerOlder