Skip to content

Instantly share code, notes, and snippets.

View variux's full-sized avatar

Andrés Zúñiga variux

View GitHub Profile
@variux
variux / buscaminas.py
Last active February 8, 2019 15:33
Buscaminas [Proyecto hecho para Valeria Delgado]
import random
import csv
#Arreglo de buscaminas
buscaminas = []
#Puntaje de jugadores
jugador1 = 0
jugador2 = 0
#Pasa turnos
@variux
variux / personas.py
Last active February 8, 2019 15:33
Personas [Codigo hecho para Luis Rubi]
class ListaPersonas():
lista_personas = []
def insertar(self, nombre, edad, sexo):
self.lista_personas.append([nombre, edad, sexo])
def obtener_personas(self):
return self.lista_personas
def obtener_edades(self):
lista_edades = []
@variux
variux / estacion.py
Last active December 4, 2018 03:33
Proyecto de Valeria [03/12/18]
import csv
import os
import numpy as np
import matplotlib.pyplot as plt
class CsvHandler():
file_route = None
@variux
variux / head.html
Created December 3, 2018 16:02
Codigo del head
<link href="//amp.azure.net/libs/amp/2.2.2/skins/amp-default/azuremediaplayer.min.css" rel="stylesheet">
<script src="//amp.azure.net/libs/amp/2.2.2/azuremediaplayer.min.js"></script>
@variux
variux / videotag.html
Created December 3, 2018 16:03
Video Tag Azure media player
<video id="azuremediaplayer" class="azuremediaplayer amp-default-skin amp-big-play-centered" tabindex="0"></video>
@variux
variux / amp.js
Created December 3, 2018 16:05
Código Javascript Azure Media Player
var myOptions = {
"nativeControlsForTouch": false,
controls: true,
autoplay: true,
width: "640",
height: "400",
}
myPlayer = amp("azuremediaplayer", myOptions);
myPlayer.src([
{
@variux
variux / velocidad.py
Last active February 11, 2019 04:05
proyecto alejandro miranda
import numpy
import pandas as pd
import matplotlib.pyplot as plt
numpy.set_printoptions(suppress=True)
def aceleracion(velocidad):
return (3-(0.000062*(velocidad**2)))
def velocidad(tiempo):
return (0.00001*(tiempo**3) - 0.00488*(tiempo**2) + 0.75795*tiempo + 181.3566)
def datos_velocidad_turbohelice(incremento):
@variux
variux / programamichael.py
Created April 11, 2019 05:24
programa michael
#programa para imprimir los números pares del 1 al 100 (Este)
for n in range(1,101):
if n % 2 == 0:
print(n)
#Programa de la sumatoria de un numermo (Fibonacci)
numero = int(input("Ingrese un numero para calcular su sumatoria:"))
a = 0
def extract_proteinid(description):
splitted = description.split(" ")
for feature in splitted:
if "protein_id" in feature:
print(feature.split("=")[1][:-1])
package automat;
import java.util.Random;
public class Cell {
public char cell_type; // attribute
public static void main(String[] args) {