{{ message }}

Instantly share code, notes, and snippets.

🎯
Focusing

# Nicolas F nicolasfig

🎯
Focusing
• Bogota
Created Sep 30, 2012
HTML: Starting template
View gist:3805464

Created Oct 1, 2012
Llena matrices
View Matrices.py
 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)):
Created Oct 1, 2012
Llena matrices con numeros aleatorios
View Matriz_aleatorio.py
 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))
Created Oct 2, 2012
Very basic template for a tumblr theme
View Theme_0.html
 {Title}
Created Oct 5, 2012
Llena matrices con metodos
View Matrices.py
 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):
Created Oct 5, 2012
java: Calcula el numero euler basado en el factorial
View euler.java
 public class Euler { public static long fact(int x) { long prod = 1; for (int i = 1; i < x; i++) { prod = prod * i; } return prod; } public static double euler(){
Created Oct 6, 2012
python: This file contains several matrix operations
View matrices.py
 #------------------------------------------------------------------------------- # Name: Matrix # Purpose: # # Author: Nicolas Figueroa # # Created: 06/10/2012 # Copyright: (c) Nicolas Figueroa 2012 #------------------------------------------------------------------------------- import random
Created Oct 6, 2012
View ClaseMatrices.py
 class Matriz: def __init__(self, columnas, filas): self.filas= filas self.columnas= columnas print("filas: ",filas,"columnas: ",columnas) def llenarMattriz(self, filas, columnas):
Created Oct 7, 2012
python: Matrix operations using objecs "poorly structured"
View MatrixOp.py
 #------------------------------------------------------------------------------- # Name: Matrix # Purpose: # # Author: Nicolas Figueroa # # Created: 06/10/2012 # Copyright: (c) Nicolas Figueroa 2012 #------------------------------------------------------------------------------- import random
Created Oct 9, 2012
python: Programa de matrices para pygroup
View claseMatriz.py
 """ Realizado por: Rafael Baron Castro Cod: 20102020012 Nicolas Figueroa Beltran Cod: 20102020032 """ class Matriz: #constructor y atributos de la clase Matriz def __init__(self, filas, columnas): self.matriz=[]