This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Nodo: | |
'''nodo base para las estructuras enlazadas''' | |
def __init__(self, obj): | |
self.obj = obj # objecto anfitrion del nodo | |
self.sig = None # nodo contiguo | |
class PilaColaBase: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
class nodo(): | |
def __init__ (self, sig=None): | |
sig.padre = None | |
self.sig = sig | |
if sig: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
i=0 | |
for img in $(ls $1); do | |
i=$((i + 1)); | |
cp "$1/$img" $2/image$i.jpg; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pdfminer.pdfdocument import PDFDocument | |
from pdfminer.pdfpage import PDFPage | |
from pdfminer.pdfpage import PDFTextExtractionNotAllowed | |
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
from pdfminer.converter import TextConverter | |
from pdfminer.layout import LAParams | |
from cStringIO import StringIO | |
import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>cuenta teclas</title> | |
<script language="javascript" type="text/javascript" src="script.js"></script> | |
</head> | |
<body> | |
<ul id="key_count"> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id | name | |
---|---|---|
0 | Pedro | |
1 | Juan | |
2 | Diego | |
3 | Luisa | |
4 | Marta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Teniendo en cuenta que en la sucesión de Fibonacci cada término es la suma de | |
los dos anteriores siendo los primeros cuatro términos de la sucesión (1,1,2,3) | |
: | |
Generar un programa donde se ingrese por teclado un número entero mayor a 3. El | |
programa deberá imprimir en pantalla cada elemento de la sucesión hasta alcanzar | |
una cantidad de terminos igual al número ingresado Finalmente deberá mostrará la | |
cantidad de números pares que existan en la sucesión generada. | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sort_nums(nums=[], min_index=0): | |
if min_index < len(nums): | |
for i in range(len(nums)): | |
if nums[i] > nums[min_index]: | |
nums[i], nums[min_index] = nums[min_index], nums[i] | |
break | |
sort_nums(nums, min_index + 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var MultipleChoice = function(){ | |
var radios = document.querySelectorAll("input[type=radio]"); | |
var submitBtn = document.getElementById("show_results"); | |
for(var i = 0; i < radios.length; i++) { | |
radios[i].addEventListener("click", this.selectAnswer.bind(this)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header></header> |
NewerOlder