Posts

practica Html 4

Image
 - script.js function temperature (){     //To convert celcius to farenheit     //(CEL * 9/5) + 32     var c = document . getElementById ( "celsius" ). value ;     var f = ( c * 9 / 5 ) + 32     document . getElementById ( "fahrenheit" ). value = f } function weight (){     //To convert KGs to Pounds     // KG * 2.2     var kg = document . getElementById ( "kilo" ). value ;     var p = kg * 2.2     document . getElementById ( "pounds" ). value = p } function distance (){     //To convert KMs to Miles     // KM * 0.62137     var km = document . getElementById ( "km" ). value ;     var m = km * 0.62137     document . getElementById ( "miles" ). value = m } ---------------------------------- Medidas.html <!DOCTYPE html > <html lang = "en" >   <head>       <title> Document...

Phyton Course

/notebooks/week 1/Build a simple trading strategy.ipynb file:///Users/luissanchez/Downloads/Build+a+simple+trading+strategy.html =============================== def convertir_a_dolares(pesos:float, trm:float)-> float:     return pesos/trm      def convertir_a_pesos(dolares:float, trm:float)-> float:     return dolares*trm def ejecutar_convertir_a_dolares()->None:     pesos = float(input("Input amount in Pesos"))     trm = float (input("input TRM:"))     dolares = convertir_a_dolares(pesos,trm)     print(pesos,"Pesos son ", round(dolares,2),"dolares")      def ejecutar_convertir_a_pesos()->None:     dolares = float(input("Ingrese la cantidad en dolares: "))     trm = float(input("ingrese la TRM"))     pesos = convertir_a_pesos(dolares, trm)     print(dolares, " Dolares son.: ", round(pesos,0),"Pesos")      def mostrar_menu()-> str...

WWare_Scripts

Image
 '+-----------------------------------------------------+ ' Lab 21 - Building a Mixer Browser Using ShowGraphic '+-----------------------------------------------------+ '=========================== 'Named Script 'Name - OpenWindow 'Expression - WindowName + MixerName 'Trigger - DataChange '=========================== Dim graphicInfo as aaGraphic.GraphicInfo; graphicInfo.Identity = "InTouch:" + WindowName; if WindowName == "Mixer_Browser" then graphicInfo.GraphicName = "Mixer"; Dim cpValues [34] as aaGraphic.CustomPropertyValuePair;  cpValues[1] = new aaGraphic.CustomPropertyValuePair("Agitator.EquipState", MixerName + "_Agitator_PV", true); cpValues[2] = new aaGraphic.CustomPropertyValuePair("Inlet1.EquipStateActive", MixerName + "_Inlet1_OLS AND NOT " + MixerName + "_Inlet1_CLS", true); cpValues[3] = new aaGraphic.CustomPropertyValuePair("Inlet1.PV", ...

php Programming

<html lang="es"> <head>   <title> Tarea Unidad 3 - SENA </title>   <meta http-equiv="Content-Type"       content="text/html; charset=ISO-8859-1" />     </head>    <style>      table, th, td {   border: 2px solid blueviolet;   }     </style>     <body>         <h4> Elaborado por Luis A. Sanchez </h4>         <h3> CALCULADORA SENA MARZO - 2019</h3>          <h4>A = Adicion   R = Resta     M = Multiplicacion </h4>          <h4>L = Limpiar   D = Dividir   I = Igual </h4>                 ...