└── examples ├── README.md ├── http_client.rb ├── http_server.rb ├── stdio_server.rb ├── streamable_http_client.rb └── streamable_http_server.rb
/examples/README.md:
└── examples ├── README.md ├── http_client.rb ├── http_server.rb ├── stdio_server.rb ├── streamable_http_client.rb └── streamable_http_server.rb
/examples/README.md:
| import click | |
| import os | |
| from dotenv import load_dotenv | |
| from openai import OpenAI | |
| import requests | |
| from bs4 import BeautifulSoup | |
| load_dotenv() | |
| OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") |
| curl -o /dev/null \ | |
| -H 'Cache-Control: no-cache' \ | |
| -s \ | |
| -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total | |
| time: %{time_total} \n" \ | |
| 'https://video-storage.codigofacilito.com/hls/videos/acdbda4cc8b5aacd/hls480/video00061.ts?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly92aWRlby1zdG9yYWdlLmNvZGlnb2ZhY2lsaXRvLmNvbS8qIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzQ2NjY4MzEwfX19XX0_&Signature=L3mRWeFHiYS~TF9RYwWXFQc1A3BTQJvEXog8WiZQqFPyoQpuwpPHC6RDryH0Uw9arGmxvJ-p-cR7XqRl7BvlcrCEOZK~cDKl4HsZhUEhn1qSKzEqnkXNBoJ~87~M8-wXbHZomjZKgTIUyi59kGyDgLvOXmq2e40r6Ifc-dSgnHS9hVyNvbGDOeREBJvs8ODnrcGF3x~kyzzP1g8fhgQJgKDPgSYrb~XsyLuowxGFHlAjbGuP-yYzcX8YJ2IaI727vrK~VjhBJVwDANK71fSKQ~Gxs7~hNVa48LZbfdYkxaEDJEvjJBfntz3jwRnevsnjhz9blNh56-tVKuexC5OUiw__&Key-Pair-Id=APKAIAHLS7PK3GEUR2RQ' |
| curl -o /dev/null \ | |
| -H 'Cache-Control: no-cache' \ | |
| -s \ | |
| -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total | |
| time: %{time_total} \n" \ | |
| https://videos.codigofacilito.com/assets/logo-fd9c72981efb94fa3556a7b272d33b45ef8834027fa4fe9959a56e4b2ebaa798.png | |
| -- Selecciona todo de la tabla empleados | |
| SELECT * FROM Empleados; | |
| SELECT * FROM ASISTENCIAS; | |
| -- Selecciona solo el nombre y la edad, filtrando aquellos cuyo valor en edad sea mayor que 30 | |
| SELECT nombre, edad | |
| FROM Empleados | |
| WHERE edad > 30; |
| ├── .github | |
| └── ISSUE_TEMPLATE.md | |
| ├── .gitignore | |
| ├── .releasinator.rb | |
| ├── .rspec | |
| ├── .travis.yml | |
| ├── CHANGELOG.md | |
| ├── CONTRIBUTING.md | |
| ├── Gemfile | |
| ├── LICENSE |
| group: learning_platform | |
| description[[ The data for this dataset was generated using <http://www.generatedata.com/> | |
| * The relation _Usuario_ contains basic information about users of the learning platform. | |
| * The relation _Curso_ contains details about courses available in the system. | |
| * The relation _Progreso_Curso_ tracks the progress of users in different courses. | |
| ]] | |
| Usuario = { | |
| uID nombre rol edad |
| <?php | |
| trait ValidationInfo{ | |
| function validateRFC($rfc){ | |
| return strlen($rfc) == 13; | |
| } | |
| } | |
| $anon_class = new class() { | |
| use ValidationInfo; | |
| }; |
| <?php | |
| abstract class Employee { | |
| public $employee_id; | |
| public $name; | |
| public $phone; | |
| public $rfc; | |
| abstract public function saludar(); |
| // https://dev.to/api/articles?username=iamluisj | |
| // AJAX => Asynchronous JavaScript and XML | |
| // XMLHttpRequest | |
| // fetch | |
| async function cargarPublicaciones() { | |
| let respuesta = await fetch('https://dev.to/api/articles?username=uriel_hedz'); | |
| let jsonArticulos = await respuesta.json(); | |
| return jsonArticulos; |