Skip to content

Instantly share code, notes, and snippets.

View ricardosiri68's full-sized avatar

Ricardo Agustin Siri ricardosiri68

  • Nubi
  • Capital Federal
View GitHub Profile
<!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">
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
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:
/*jslint nomen: true, debug: true, evil: true, vars: false, browser: true,
devel: true */
/*global $ */
(function(){
var Iniciar = function(config) {
this.config = config;
@ricardosiri68
ricardosiri68 / pre-commit.sh
Last active November 17, 2015 23:42 — forked from milancermak/pre-commit.sh
Python pre-commit hook
#!/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
'''
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"
# -*- coding: utf-8 -*-
alphabet = u'abcdefgahijkmnñlopqrsuvwxyz'
def score(word):
points = 0
i = 1
import sys
class Cuadrado:
char_a = '*'
char_b = ' '
def __init__(self, width):
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",
function Combo(selector) {
var selectores = document.getElementsByClassName(selector.name);
for (var i = 0; i<selectores.length; i++) {
selectores[i].selectedIndex = selector.selectedIndex;
}
}