This file contains 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
function spreadsheetToPDF(key) { | |
var oauthConfig = UrlFetchApp.addOAuthService("spreadsheets"); | |
var scope = "https://spreadsheets.google.com/feeds" | |
oauthConfig.setConsumerKey("anonymous"); | |
oauthConfig.setConsumerSecret("anonymous"); | |
oauthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?scope="+scope); | |
oauthConfig.setAuthorizationUrl("https://accounts.google.com/OAuthAuthorizeToken"); | |
oauthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken"); |
This file contains 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
#!/bin/bash | |
# Moverse a la carpeta del repo primero | |
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do | |
git branch --track "${branch##*/}" "$branch" | |
done | |
git fetch --all | |
git pull --all |
This file contains 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 { cancel } = actions | |
const playerMachine = Machine( | |
{ | |
id: 'player', | |
initial: 'idle', | |
context: { | |
promotion: 0, | |
promotionCounter: 0 | |
}, |
This file contains 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
inactive | |
TEXT -> active | |
active | |
wellcome | |
NOMBRE -> userData | |
userData | |
lastName | |
APELLIDO -> tyc | |
tyc | |
ACEPTAR -> identity |
This file contains 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
import { useTranslation } from "@refinedev/core" | |
import { FaChevronLeft, FaChevronRight } from "react-icons/fa6" | |
import dayjs from "dayjs"; | |
import weekday from "dayjs/plugin/weekday"; | |
import weekOfYear from "dayjs/plugin/weekOfYear"; | |
import { HTMLAttributes, useEffect, useState } from "react"; | |
dayjs.extend(weekOfYear); | |
function getNumberOfDaysInMonth(year: string, month: string) { |
This file contains 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
import dayjs from 'dayjs'; | |
import minMax from 'dayjs/plugin/minMax.js' | |
dayjs.extend(minMax); | |
function findDifference(list1, list2) { | |
const result = {}; | |
// Loop through each range in list1 | |
while (list1.length > 0) { | |
const range1 = list1.pop() |