Skip to content

Instantly share code, notes, and snippets.

#ventana_notificaciones {
position: absolute;
z-index: 1002;
top: 0;
right: 0;
bottom: 0;
left: 0;
float: left;
visibility: hidden;
width: 500px;
>Nos van a hablar de 3 funciones principales que se usan de manera agrupativa
map, función filter, reuse
#Aquí comienza el code
class automovil(object):
def __init__(self,color = "Blanco",modelo = 0,capGas = 0,gas = 0):
self.color = color
self.modelo = modelo
self.capGas = capGas
self.gas = gas
self.arrancado = False
Materia: Algoritmos y Estructura de Datos
Fecha: 22 marzo 2017
--------------------------------------------------------------------
Objetivos:
- Manejo de listas ligadas simple (listas dinámicas)
- Implementación de algoritmos en lenguaje C/C++
- Crear los casos de prueba y ejecutarlos.
@97997
97997 / a.py
Created May 3, 2017 14:44
Python exam
class Camara():
def tomarFoto(self):
print("Tomando foto")
def tomarVideo(self):
print("Grabando video")
class ReproductorMp3():
def tocar(self):
print("Tocando canción")
def parar(self):
@97997
97997 / genom.py
Created May 25, 2017 03:21
Nucleotid frequency generator for mouse ADN samples
# Author: Ao Kin Ecab Gutierrez Gonzalez Loyola
import glob
import random
#Matches all the files in folder terminated in .vcf.gz.out
files = glob.glob('*.vcf.gz.out')
#files = os.listdir('outs')
#Get contents of all files
for muestra in files:
with open(muestra) as f:
content = f.readlines()
@97997
97997 / calendar.html
Created November 22, 2017 19:14
Basic Calendar using HTML Tables, CSS and Javascript
<!doctype html>
<html>
<head>
<title>Calendario | Ecab |</title>
<meta charset="utf-8">
<!-- // Por Ao Kin Ecab Gutiérrez González L. -->
<style>
body {
line-height: 1;
@97997
97997 / calendar.html
Last active November 22, 2017 19:15
Basic HTML/CSS for a calendar using a table layout.
<!doctype html>
<html>
<head>
<title>Calendario | Ecab |</title>
<meta charset="utf-8">
<!-- // Por Ao Kin Ecab Gutiérrez González L. -->
<style>
body {
line-height: 1;
margin: 50px;
SET SERVEROUTPUT ON
DECLARE
v_today date := SYSDATE;
v_tomorrow v_today%TYPE := v_today + 1;
BEGIN
DBMS_OUTPUT.PUT_LINE('Hello world');
DBMS_OUTPUT.PUT_LINE('TODAY IS: '|| v_today);
DBMS_OUTPUT.PUT_LINE('TOMORROW IS: '|| v_tomorrow);
END;
@97997
97997 / arduino_radio.ino
Created December 4, 2017 05:03
Programa Arduino para Radio
#include<Wire.h>
#include <TEA5767Radio.h>
#include <LiquidCrystal.h>
TEA5767Radio radio = TEA5767Radio();
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
float frecuencia[17] =
{
88.7, 89.5, 90.9, 91.7, 92.7, 93.9, 94.7, 95.5, 97.1, 97.9, 98.7, 100.3, 101.1, 104.9, 106.5, 107.5, 107.9
};
@97997
97997 / kernel.cu
Created May 31, 2018 05:09
cuda_robinson
#include <cuda.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <stdio.h>