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
export const STATUS = { | |
CONFIRMED: 'confirmed', | |
DEATHS: 'deaths', | |
RECOVERED: 'recovered', | |
}; | |
class CovidApi { | |
constructor() { | |
this.baseUrl = 'https://api.covid19api.com'; | |
this.country = { |
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 React from 'react'; | |
import { View } from 'react-native'; | |
import LinearGradient from 'react-native-linear-gradient'; | |
class SkeletonLocationLoader extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
backgroundColor: '#F1F1F1', | |
highlightColor: '#FFF', |
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 isoStatesCodes = [ | |
{ | |
code: 'MX-AGU', | |
name: 'Aguascalientes', | |
}, | |
{ | |
code: 'MX-BCN', | |
name: 'Baja California', | |
}, | |
{ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Full Height Background Image | elporfirio.com</title> | |
<style> | |
body, html { | |
height: 100%; | |
margin: 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
import React from "react"; | |
import "./App.css"; | |
function FormatNumber({ number }) { | |
return ( | |
<span style={{ color: "red" }}> | |
{new Intl.NumberFormat("ES-MX", { | |
style: "currency", | |
currency: "MXN" | |
}).format(number)} |
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
<?php | |
include('vendor/rmccue/requests/library/Requests.php'); | |
Requests::register_autoloader(); | |
$url = 'https://jsonplaceholder.typicode.com/posts'; | |
$postData = array([ | |
'title' => 'Hola Mundo', |
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
<?php | |
include('vendor/rmccue/requests/library/Requests.php'); | |
Requests::register_autoloader(); | |
$url = 'https://jsonplaceholder.typicode.com/posts'; | |
$response = Requests::get($url); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Tutorial jQuery Remasterizado</title> | |
<link href="style.css" rel="stylesheet"> | |
</head> | |
<body> | |
<button id="showContainer" type="button">Mostrar mensaje</button> | |
<button id="hideContainer" type="button">Ocultar mensaje</button> |