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
@97997
97997 / x360ce.ini
Created April 16, 2017 03:08
A x360ce configuration file containing some of my most used controllers,. 4 players multiplayer gaming session
; Pad 1 is Logitech F710 = PAD1=IG_c4b922303f7c11e58001444553540000
; Pad 2 is CX-506 (The white chinese wireless controller) = PAD2=IG_f608bf20b31d11e58002444553540000
; Pad 3 is Acteck 3600 = PAD3=IG_a7cb5c601c1d11e58002444553540000
; Pad 4 is Twin USB Joystick (USB Converter from PS2) = PAD4=IG_8438ed10299411e58001444553540000
; The filename should be x360ce.ini
; This file is used as config for x360ce 3.2.8.77 32bits and requires xinput1_3.dll to be present to load correctly
[Options]
UseInitBeep=1
Log=0
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
};