This file contains hidden or 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
<html> | |
<head> | |
<script> | |
function AbrirVentana(url) | |
{ | |
window.open(url) | |
} | |
</script> | |
</head> |
This file contains hidden or 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
# cuando te pida un telefono elegi uno de los numeros que se encuentran abajo | |
# c/u tiene su saldo establecido suerte | |
telefono_saldos = { | |
"235234541":23.0, # siii aca !! | |
"234556343":40.7, | |
"444562212":0.23 | |
} | |
recargado = { | |
'a12345b+12345':500, |
This file contains hidden or 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 -*- | |
ayuda = """ | |
"ADD":añadir una nueva empresa, | |
"USE":seleccionar una empresa de la lista por su nombre, USE [nombre de la empresa]. | |
"VETERANO":obtener los datos del empleado con mayor antiguedad en la empresa. | |
"COMPARAR":comparar la empresa seleccionada con otra ingresando el nombre de esta ultima COMPARAR [nombre de la empresa] | |
"FUSIONAR":fusionar la empresa selaccionada con otra ingresando el nombre de esta ultima FUSIONAR [nombre de la empresa] | |
"SET":reescribir atributos de la empresa seleccionada [ opciones: NOMBRE, DESCRIPCION], SET [opcion] [valor] | |
"EMPRESAS":lista todas las empreas existentes | |
"DELETE": borra una empresa pasando el nombre como argumento. De no recibir argumento borra la empresa seleccionada, DELETE [nombre de la empresa] |
This file contains hidden or 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 PIL import ImageGrab | |
import time | |
import smtplib | |
import os | |
import threading | |
import email | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.base import MIMEBase | |
from email.mime.text import MIMEText | |
from email.utils import COMMASPACE, formatdate |
This file contains hidden or 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 mycarousel_initCallback(carousel) | |
{ | |
// Disable autoscrolling if the user clicks the prev or next button. | |
carousel.buttonNext.bind('click', function() { | |
carousel.startAuto(0); | |
}); | |
carousel.buttonPrev.bind('click', function() { | |
carousel.startAuto(0); | |
}); |
This file contains hidden or 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 Programador: | |
__brainState = False | |
def setBrainState(self,value): | |
if "si" == value: | |
self.__brainState = True | |
elif "no" == value: | |
self.__brainState = False | |
else: | |
print "el estado del cerebro que quiere establecer no es el correcto" |
This file contains hidden or 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 Hola: | |
def __init__(self): | |
print "hola soy el objeto Hola" | |
def miMetodo(self): | |
print "Mi metodo de tipo Hola" | |
class Chau: | |
def miMetodo(self): |
This file contains hidden or 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 Empleado(): | |
__nombre = None # podes definir atributos fuera del __init__ | |
def __init__(self,nombre = None): # poniendo nombre = None seteas de forma | |
# predeterminada el parametro nombre para que sea nulo si no se le asigna ningun valor al parametro | |
# self solo existe dentro de la definicion de la clase del objeto y no afuera | |
# self representa la instancia misma del objeto por lo que no exite si no existe | |
# una instancia del objeto | |
self.setNombre(nombre) | |
This file contains hidden or 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
<?php | |
########## app ID and app SECRET (Replace with yours) ############# | |
$appId = 'xxxxxx'; //Facebook App ID | |
$appSecret = 'xxxxxxxxxxxxxx'; // Facebook App Secret | |
$return_url = 'http://yoursite.com/connect_script/'; //path to script folder | |
$fbPermissions = 'publish_stream,email'; //more permissions : https://developers.facebook.com/docs/authentication/permissions/ | |
########## MySql details (Replace with yours) ############# | |
$db_username = "xxxxxx"; //Database Username | |
$db_password = "xxxxxx"; //Database Password |
This file contains hidden or 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
SELECT a.nom_alumno,group_concat(r.nom_ramos) | |
FROM alumnos a | |
LEFT JOIN tiene t ON t.idalumno_FK = a.id_alumno | |
LEFT JOIN ramos r ON t.idramos_FK = r.idramos | |
GROUP BY a.id_alumno; |