Skip to content

Instantly share code, notes, and snippets.

@DRMD431LU
DRMD431LU / main.py.py
Created October 14, 2017 02:12
main.py created by DRMD431LU - https://repl.it/McE8/8
class Nodo:
def __init__(self):
self.dato=None
self.izq=None
self.der=None
def insertar(self,valor):
if self.dato is None:
self.dato=valor
self.izq=Nodo()
self.der=Nodo()
@DRMD431LU
DRMD431LU / main.py.py
Created October 14, 2017 02:34
main.py created by DRMD431LU - https://repl.it/McE8/10
class Nodo:
def __init__(self):
self.dato=None
self.izq=None
self.der=None
def insertar(self,valor):
if self.dato is None:
@DRMD431LU
DRMD431LU / Arboles AVL.py
Last active October 28, 2017 19:45
null created by DRMD431LU - https://repl.it/McIi/9
class Nodo:
def __init__(self):
self.dato=None
self.izq=None
self.der=None
def insertar(self,valor):#METODO POR QUE ES UNA FUNCION DENTRO DE UNA CLASE QUE UTILISA ATRIBUTOS Y METODOS
if self.dato is None:#CASO BASE
self.dato=valor
#include <iostream>
#include<SDL2/SDL.h>
int main(int argc, char *argv[]) {
SDL_Window *window= nullptr;
SDL_Surface *screen;
if(SDL_Init(SDL_INIT_VIDEO)<0){
std::cout<< "Todo mal\n";
return 1;
@DRMD431LU
DRMD431LU / Comparar3numeros.c
Created September 13, 2018 03:56
comparar 3 numeros
#include <stdio.h>
Int main(){
Int A,B,C=0;
Int Mayor=0;
//Int B=0;
printf("Ingrese el valor de la variable A: \n")
scanf(&A);
getchar();
def comparar3():
A=input("Ingrese el numero A: ")
B=input("Ingrese el numero B: ")
C=input("Ingrese el numero C: ")
if (A>B):
Mayor=A
else:
Mayor=B
if(Mayor>C):
Mayor=Mayor
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>Mi primer página web
<title>Página principal</title>
</head>
<body>
<p> Esta es mi primer página web <br>
<i>Esto tiene otro estilo </i>
</p>
using System;
//Esto es un comentario
//System;
public class Program
//siempre debe de ir una clase porque es poo.
{
public static void Main()
{
//Declaramos nuestras dos variables
//siempre deben llevar identificador -> float.
<!DOCTYPE html>
<!-- se utiliza el lenguaje español por convencion y utf-8 como estandar -->
<html lan="es">
<meta charset = "UTF-8">
<head>
<title>Mi primer proyecto </title>
</head>
<body>
<h1>Hola Mundo </h1>
@DRMD431LU
DRMD431LU / Primeros_pasos_PhotoAPP.html
Created January 20, 2019 18:21
aplicacion web de fotos
<html>
<head>
<title>
Aplicacion de Fotos. "PhotoAPP"
</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
</head>
<body>
<ul>