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
| # EXAMPLE > DEFAULT BRIDGE NETWORK | |
| START MYSQL WITH CUSTOM ROOT PASSWORD | |
| docker run -e MYSQL_ROOT_PASSWORD=hotch mysql | |
| START MYSQL CLIENT | |
| docker exec -it <CONTAINER_ID> bash | |
| GET MYSQL ROOT PASSWORD | |
| docker exec <CONTAINER_ID> env |
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
| Algoritmo sin_titulo | |
| T = 10 | |
| Dimension arreglo[T] | |
| arreglo[0] <- 100 | |
| arreglo[1] <- 20 | |
| arreglo[2] <- 5 | |
| arreglo[3] <- 1 | |
| arreglo[4] <- 16 | |
| arreglo[5] <- 3 |
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
| Algoritmo ordenamiento_por_insercion | |
| T = 10 | |
| Dimension arreglo[T] | |
| arreglo[0] <- 100 | |
| arreglo[1] <- 20 | |
| arreglo[2] <- 5 | |
| arreglo[3] <- 1 | |
| arreglo[4] <- 16 | |
| arreglo[5] <- 3 |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Document</title> | |
| <style> | |
| .main { | |
| display: flex; |
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
| #include <stdio.h> | |
| int main(void) | |
| { | |
| printf("char size: %lu bytes\n", sizeof(char)); | |
| printf("int size: %lu bytes\n", sizeof(int)); | |
| printf("short size: %lu bytes\n", sizeof(short)); | |
| printf("long size: %lu bytes\n", sizeof(long)); | |
| printf("float size: %lu bytes\n", sizeof(float)); | |
| printf("double size: %lu bytes\n", sizeof(double)); |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
| # add docker format to environment | |
| export FORMAT="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED{{.CreatedAt}}\nSTATUS\t{{.Status}}\n" | |
| # list docker containers pretty formatted | |
| docker ps --format=$FORMAT |
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 type="text/javascript" src="/jquery.min.js"></script> | |
| <title>Mime type checker</title> | |
| <script> | |
| $(function () { | |
| var result = $('div#result'); | |
| if (window.FileReader && window.Blob) { | |
| $('span#submit').click(function () { | |
| var files = $('input#file').get(0).files; |
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
| [ | |
| 2020-08-04T00:00:00.000Z, | |
| 2020-08-06T00:00:00.000Z, | |
| 2020-08-11T00:00:00.000Z, | |
| 2020-08-13T00:00:00.000Z, | |
| 2020-08-18T00:00:00.000Z, | |
| 2020-08-20T00:00:00.000Z, | |
| 2020-08-25T00:00:00.000Z, | |
| 2020-08-27T00:00:00.000Z, | |
| 2020-09-01T00:00:00.000Z |
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
| const startDate = "2020-08-03"; | |
| const matchDays = [1, 2]; | |
| const fields = ["Field 1", "Field 2"]; | |
| const teams = ["A", "B", "C", "D"]; | |
| const numberOfRematches = 3; | |
| const getCombinations = (data) => { | |
| let output = []; | |
| for (let i = 0; i < teams.length - 1; i++) { |