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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Carrito de Compras</title> | |
<link rel="stylesheet" type="text/css" href="/easy-autocomplete.min.css" /> | |
<link rel="stylesheet" type="text/css" href="/easy-autocomplete.themes.min.css" /> | |
</head> | |
<body> | |
<table id="hay_tabla"> |
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
import os | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | |
# Absolute filesystem path to the directory that will hold user-uploaded files. | |
# Example: "/var/www/example.com/media/" | |
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') | |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
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
import os | |
def mostrar_puntajes(): | |
'''obtiene los puntajes almacenados en puntajes.csv y los muestra en la | |
pantalla''' | |
print("## Puntajes ##\n") | |
with open('puntajes.csv') as puntajes_file: |
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
/*jslint nomen: true, debug: true, evil: true, vars: false, browser: true, | |
devel: true */ | |
/*global $ */ | |
(function(){ | |
var Iniciar = function(config) { | |
this.config = config; |
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/sh | |
# make sure requirements.txt is up to date with every commit | |
# by comparing the output of pip freeze | |
source [virtualenv_path]/bin/activate | |
pip freeze | diff requirements.txt - > /dev/null | |
if [ $? != 0 ] | |
then | |
echo "Missing python module dependencies in requirements.txt. Run 'pip freeze > requirements.txt' to update." | |
deactivate |
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
''' | |
A | |
Realize una funcion | |
que cree una lista con los platos ofrecidos por un restaurante. | |
De cada plato se conoce codigo, nombre, precio y destino con | |
la siguiente estructura: | |
[codigo,nombre,precio,destino] siendo los destinos | |
posibles "S" salon, "D", delivery O "A" ambos. La carga | |
de platos finaliza cuando se ingresa el plato cuya | |
descripcion sea igual a la palabra "fin" |
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
# -*- coding: utf-8 -*- | |
alphabet = u'abcdefgahijkmnñlopqrsuvwxyz' | |
def score(word): | |
points = 0 | |
i = 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
import sys | |
class Cuadrado: | |
char_a = '*' | |
char_b = ' ' | |
def __init__(self, width): |
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
var imcon; | |
! function() { | |
imcon = { | |
_: { | |
checked: false, | |
con: false, | |
conFuncs: [ | |
"assert", "clear", "count", "debug", "dir", "dirxml", | |
"error", "group", "groupCollapsed", "groupEnd", "info", | |
"log", "markTimeline", "profile", "profileEnd", "table", |
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 Combo(selector) { | |
var selectores = document.getElementsByClassName(selector.name); | |
for (var i = 0; i<selectores.length; i++) { | |
selectores[i].selectedIndex = selector.selectedIndex; | |
} | |
} |