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
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "cache-clean.js", | |
| "type": "shell", | |
| "command": "~/.config/composer/vendor/bin/cache-clean.js --watch", | |
| "presentation": { | |
| "reveal": "always", | |
| "panel": "dedicated" |
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
| var SHEET_NAME = "Sheet1"; // Enter sheet name where data is to be written | |
| var inputFields = ["nombre", "email", "comentarios"]; | |
| var SCRIPT_PROP = PropertiesService.getScriptProperties(); | |
| function doRequest(e) { | |
| var lock = LockService.getPublicLock(); | |
| lock.waitLock(30000); // wait 30 seconds before conceding defeat. | |
| try { | |
| var doc = SpreadsheetApp.openById(SCRIPT_PROP.getProperty("key")); | |
| var sheet = doc.getSheetByName(SHEET_NAME); | |
| var lastColumn = sheet.getLastColumn(); |
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> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Formulario de contacto</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js"></script> | |
| </head> | |
| <body> |
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
| <script> | |
| (function() { | |
| var sendGoogleOrganicReferrerOncePerSession = function() { | |
| ga('send', 'event', 'referrer', 'google / organic', document.referrer); | |
| }; | |
| var getCookie = function(name) { | |
| var value = "; " + document.cookie; | |
| var parts = value.split("; " + name + "="); | |
| if (parts.length >= 2) return parts.pop().split(";").shift(); |
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
| if(!require(tidyverse)) install.packages("tidyverse") | |
| tidyverse_update() | |
| library(tidyverse) | |
| library(MASS) | |
| tidyverse_conflicts() | |
| ggplot(Cars93, aes(MPG.highway, Price, size = Horsepower)) + geom_point() |
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
| lanzar <- function(dado = 1:6) { # Parametro opcional siendo 1,2,3,4,5,6 por defecto | |
| jugada <- sample(dado, size = 2, replace = TRUE) # Como si volvieran a estar disponibles 6 puertas en la segunda tirada | |
| sum(jugada) # La función devuelve lo que devuelve la última instrucción, la suma de las 2 tiradas | |
| } | |
| print(lanzar()) # Muestra el resultado de la llamada por defecto incluso ejecutando con "Source" en RStudio | |
| lanzar(dado = 1:12) # Usando una párametro concreto de entrada | |
| lanzar(1:4) # Al no indicar el nombre del parámetro estamos asignando valores para el primer párametro | |
| lanzar(1:8) # Lanzamos un dado de 8 lados |
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
| # Instalación y carga de paquetes | |
| if(!require(tidyverse)) install.packages("tidyverse") | |
| if(!require(patchwork)) install.packages("patchwork") | |
| tidyverse_update() | |
| library(tidyverse) # Carga ggplot2 | |
| library(patchwork) # Para distribución de gráficos | |
| library(MASS) # Carga el conjunto de datos Cars93 | |
| tidyverse_conflicts() | |
| # Entender los datos |
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
| if(!require(tidyverse)) install.packages("tidyverse") | |
| if(!require(patchwork)) install.packages("patchwork") | |
| if(!require(nycflights13)) install.packages('nycflights13') | |
| library(patchwork) | |
| library(tidyverse) | |
| # Tibbles | |
| library(nycflights13) | |
| flights # Cargamos los datos de 336,776 vuelos que partieron de Nueva York y vemos tipos de datos | |
| ?flights # Descripción del conjunto de datos |
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
| if(!require(tidyverse)) install.packages("tidyverse") | |
| if(!require(patchwork)) install.packages("patchwork") | |
| if(!require(nycflights13)) install.packages('nycflights13') | |
| if(!require(tidymodels)) install.packages("tidymodels") | |
| if(!require(modelr)) install.packages("modelr") | |
| library(tidymodels) | |
| library(modelr) | |
| library(tidymodels) | |
| library(patchwork) | |
| library(tidyverse) |