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 { useState, useEffect } from 'react'; | |
//consumir API Rest con fetch | |
const useServices = () => { | |
const configServiceDefault = { | |
type: 'GET', | |
urls: '', | |
parameters: null, | |
isrequest: false |
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
public class QuestionA { | |
public static final String VALIDATE = "true"; | |
public static void main(String []args) { | |
if(Boolean.valueOf(VALIDATE).equals(true)) { | |
System.out.println("Entro..."); | |
} | |
} | |
} |
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 {useState,useEffect} from "react" | |
function useFetch(url, initialState, options) { | |
// data: donde llega la info | |
// loading: saber si esta cargando la data | |
// error: el tipo de error | |
const [data, setData] = useState(initialState) | |
const [loading, setLoading] = useState(false) | |
const [error, setError] = useState(null) |
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 | |
# Descarga oh-my-posh y lo guarda en /usr/local/bin | |
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh | |
# Otorga permisos de ejecución al archivo descargado | |
sudo chmod +x /usr/local/bin/oh-my-posh | |
# Crea un directorio llamado .poshthemes en tu directorio home para almacenar los temas | |
mkdir ~/.poshthemes | |
# Descarga el archivo zip de temas de oh-my-posh en el directorio .poshthemes | |
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip |