Skip to content

Instantly share code, notes, and snippets.

View jespinoza711's full-sized avatar

Julio Espinoza jespinoza711

  • Nicaragua
View GitHub Profile
@jespinoza711
jespinoza711 / vite-testing-config.md
Created October 17, 2023 04:51 — forked from Klerith/vite-testing-config.md
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalación y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@jespinoza711
jespinoza711 / AndroidManifest.xml
Created January 22, 2022 13:58 — forked from chantellosejo/AndroidManifest.xml
Android Handle Logged In/Out State on Startup
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.android">
...
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
@jespinoza711
jespinoza711 / css
Last active July 21, 2018 01:20
Css Pivot
.pvtUi {
color: #333
}
table.pvtTable {
font-family:arial;
font-size: 8pt;
text-align: left;
border-collapse: collapse;
}
@jespinoza711
jespinoza711 / style.js
Created June 7, 2018 04:19
Style Css in react
const Container = glamorous.div({
fontSize: "12pt",
margin: "25px auto",
padding: "5px"
})
const Header = glamorous.h1({
fontSize: "24pt",
fontWeight: "bold"
})
@jespinoza711
jespinoza711 / Style CSS.css
Created June 7, 2018 04:15
Style CSS Vue.js
<style scoped>
.example {
color: red;
}
</style>
<anchored-heading :level="1">
<span>Hello</span> world!
</anchored-heading>
@jespinoza711
jespinoza711 / .jsx
Last active June 7, 2018 04:06
Example React Template
createElement(
'anchored-heading', {
props: {
level: 1
}
}, [
createElement('span', 'Hello'),
' world!'
]
)
var React = require('react')
var ReactDOM = require('react-dom')
ReactDOM.render(
<h1>!Que hay de nuevo amigo !</h1>,
document.getElementById('mensaje')
)
{
"name": "clase1",
"version": "0.0.1",
"description": "Ejemplo de dependicia de paquetes en npm",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"react",
@jespinoza711
jespinoza711 / Blog.React1.index.html
Created June 5, 2016 05:28
Gist de Estructura de HTML para ejemplo de ReactJS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tutorial de React</title>
</head>
<body>
<div id='mensaje'></div>
<script type="text/javascript" src="bundle.js"></script>
</body>