yarn add --dev \
@babel/core \
@babel/cli \
@babel/preset-env \
@babel/preset-typescript \
typescript
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
// Handling Adding the new User to the Server | |
const handleAddUser = async () => { | |
try { | |
const response = await fetch( | |
"https://user-dummy-api.onrender.com/users", | |
{ | |
method: "POST", | |
body: JSON.stringify(userDetails.addModal), | |
headers: { | |
"Content-Type": "application/json" |
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
content = { | |
"description": "TITLE ", | |
"public": false, | |
"files": | |
{ | |
"post1.md": { | |
"content": "THIS IS WHERE CONTENT WILL BE PUT" | |
} | |
} |
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
export const login = (email, password) => { | |
return new Promise((resolve, reject) => { | |
let endpoint = `http://api.your-domain-here.ngrok.io/api/core/v1/sessions`; | |
fetch(endpoint, { | |
method: "POST", | |
credentials: "include", | |
headers: { | |
"Content-Type": "application/json", | |
"Accept": "application/json", | |
}, |
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
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
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
#!/bin/sh | |
darkgreen='\e[2m\e[32m' | |
green='\e[m\e[1m\e[32m' | |
yellow='\e[0m\e[33m' | |
white='\e[0m\e[37m' | |
grey='\e[2m\e[37m' | |
echo "$green /\ " | |
echo "$white __________ $green/$yellow^^$green\ $white __________ " | |
echo " /..........\\\\$yellow^^^^$green\ $white/..........\ " |
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
'use strict' | |
/** | |
babel.config.js with useful plugins. | |
*/ | |
module.exports = function(api) { | |
api.cache(true); | |
api.assertVersion("^7.4.5"); | |
const presets = [ | |
[ |
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>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
Configurar Nombre que salen en los commits
git config --global user.name "dasdo"
Configurar Email
git config --global user.email [email protected]
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>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
NewerOlder