Skip to content

Instantly share code, notes, and snippets.

View nicolasfig's full-sized avatar
🧗
Focusing

Nicolas F nicolasfig

🧗
Focusing
View GitHub Profile
@nicolasfig
nicolasfig / Matrices.py
Created October 5, 2012 16:43
Llena matrices con metodos
matriz = []
n = int(input("Ingrese el # de filas\n"))
m = int(input("Ingrese el # de columnas\n"))
"""for i in range(n):
matriz.append([])
for j in range(m):
matriz[i].append(input("Ingrese la posicion [%d][%d]" % (i,j)))
"""
def imprimir(matriz):
@nicolasfig
nicolasfig / Theme_0.html
Created October 2, 2012 02:55
Very basic template for a tumblr theme
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>{Title}</title>
</head>
<body>
<div id="head">
<div class="title">
<div class="desctiption"></div>
@nicolasfig
nicolasfig / Matrices.py
Created October 1, 2012 18:26
Llena matrices
matriz = []
n = int(input("Ingrese el # de filas\n"))
m = int(input("Ingrese el # de columnas\n"))
for i in range(n):
matriz.append([])
for j in range(m):
matriz[i].append(input("+"))
for i in range(len(matriz)):
@nicolasfig
nicolasfig / Matriz_aleatorio.py
Created October 1, 2012 18:39
Llena matrices con numeros aleatorios
import random
matriz = []
n = int(input("Ingrese el # de filas\n"))
m = int(input("Ingrese el # de columnas\n"))
for i in range(n):
matriz.append([])
for j in range(m):
matriz[i].append(random.randint(0,100))
@nicolasfig
nicolasfig / gist:3805464
Created September 30, 2012 00:16
HTML: Starting template
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="#">
</head>
<body>
</body>