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
| Hay varios pasos que puedes seguir para mejorar tu lΓ³gica en la programaciΓ³n: | |
| Practica regularmente. La prΓ‘ctica es clave para mejorar en cualquier habilidad, y la programaciΓ³n no es una excepciΓ³n. Busca problemas y desafΓos en lΓnea y trata de resolverlos utilizando tus habilidades de programaciΓ³n. | |
| Aprende y utiliza diferentes lenguajes de programaciΓ³n. Cada lenguaje tiene sus propias caracterΓsticas y fortalezas, y aprender mΓΊltiples lenguajes te ayudarΓ‘ a desarrollar una comprensiΓ³n mΓ‘s profunda de la lΓ³gica de la programaciΓ³n en general. | |
| Lee y estudia el cΓ³digo de otros programadores. La mejor manera de aprender es imitando a los que ya son buenos en lo que hacen. Lee el cΓ³digo de otros programadores y trata de entender cΓ³mo se resuelven los problemas. | |
| Participa en comunidades de programaciΓ³n en lΓnea. Las comunidades de programaciΓ³n en lΓnea son una excelente manera de aprender de otros programadores y compartir tus propios conocimientos y habilidades. |
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
| Hay varios pasos que puedes seguir para mejorar tu productividad al desarrollar cΓ³digo para un proyecto: | |
| Identifica tus objetivos y prioriza tus tareas. Esto te ayudarΓ‘ a enfocarte en lo que realmente importa y te permitirΓ‘ avanzar de manera eficiente. | |
| Usa herramientas para gestionar tu tiempo y tus tareas, como un calendario o una lista de tareas pendientes. Esto te ayudarΓ‘ a organizarte y a mantener el control sobre lo que tienes que hacer. | |
| Establece un horario de trabajo y trata de cumplirlo de manera consistente. Dedica un tiempo especΓfico a cada tarea y evita distracciones como el telΓ©fono o las redes sociales. | |
| Utiliza tΓ©cnicas de programaciΓ³n eficientes y evita escribir cΓ³digo de manera repetitiva. Esto te ayudarΓ‘ a ahorrar tiempo y a mantener tu cΓ³digo limpio y fΓ‘cil de mantener. |
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
| # Una vez dentro, ejecuta el comando mysqlcheck. Este comando posee multitud de opciones, que puedes encontrar en la documentaciΓ³n oficial de MySQL. Para este tema la que necesitamos es: | |
| mysqlcheck -uroot -p --all-databases --auto-repair |
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
| let mixin_parametros = { | |
| data() { | |
| return { | |
| clave: null, | |
| tipo: 0, | |
| valor_texto: null, | |
| valor_numerico: null, | |
| valor_booleano: false, | |
| descripcion: null | |
| } |
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
| with recursive | |
| p as ( | |
| select cast(:fecha_desde as date) fecha_desde , | |
| cast(:fecha_hasta as date) fecha_hasta | |
| ), | |
| fechas as ( | |
| select cast(p.fecha_desde as date) fecha | |
| from p | |
| union | |
| select date_add(f.fecha, interval 1 day) |
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
| {% macro render_field(field) %} | |
| {% if field.type != 'HiddenField' %} | |
| <div class="field {% if field.errors %} error {% endif %}"> | |
| {{ field.label }} | |
| <div class="ui input"> | |
| {{ field }} | |
| </div> | |
| {% if field.errors %} | |
| <span>{{ field.errors[0] }}</span> | |
| {% endif %} |
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
| # programming a scheduled task | |
| import time | |
| import schedule | |
| def main(): | |
| pass | |
| if __name__ == '__main__': | |
| task_timeout_min_minutes = 15 | |
| task_timeout_max_minutes = 25 |
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 BetterJsonEncode(JSONEncoder): | |
| def default(self, obj): | |
| if isinstance(obj, date): | |
| return obj.isoformat() | |
| if isinstance(obj, datetime): | |
| return obj.isoformat() | |
| if isinstance(obj, decimal.Decimal): | |
| return float(obj) | |
| if hasattr(obj, '__getitem__') and hasattr(obj, 'keys'): | |
| return dict(obj) |
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 | |
| $fecha_desde = $_GET['fecha_desde'] ?? date('Y-m-01'); //primer dia del mes | |
| $fecha_hasta = $_GET['fecha_hasta'] ?? date('Y-m-t'); //ultimo dia del mes |
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
| application | |
| android:networkSecurityConfig="@xml/network_security_config" | |
| android:usesCleartextTraffic="true" | |
| network_security_config | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <network-security-config> | |
| <base-config cleartextTrafficPermitted="true" /> | |
| <domain-config cleartextTrafficPermitted="false"> |