Skip to content

Instantly share code, notes, and snippets.

@DRMD431LU
DRMD431LU / web-servers.md
Created February 10, 2019 04:57 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@DRMD431LU
DRMD431LU / one-line-web-server.md
Created February 10, 2019 04:57 — forked from henriquemenezes/one-line-web-server.md
List of one-line web servers

One-line Web Servers

Python 2.x

python -m SimpleHTTPServer 8080

Python 3.x

@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>
<!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>
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>
<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>
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
@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();
#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 / 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