#Configurando Git y GitHub en OSX y Linux ##GIT GIT en un software de control de versiones que fue diseñado por Linus Torvalds, desde sus inicios fue pensado para que operara cono un software de bajo nivel y que otros se encargaran de crear la interfaz grafica o front-end. pero hoy en día GIT es un software de control de versiones con funcionalidad plena, 100% en la terminal. Si bien es cierto que hoy en día existen varios software con interfaz gráfica, que nos permiten operar con GIT, aquí lista de Guis para Git, en este post nos concentraremos en la instalación y configuración de GIT desde la terminal tanto en Linux como en OSX. ###Instalando GIT en Linux La instalación de GIT en Linux es extremadamente fácil, dependiendo de la versión de Linux que estés usando va a cambiar el gestor de paquetes que necesitemos usar, pero antes de instalar primero verifiquemos si es que ya esta instalado, para la cu
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
function getCoords(elem) { | |
let box = elem.getBoundingClientRect(); | |
return { | |
top: box.top + window.pageYOffset, | |
left: box.left + windows.pageXOffset | |
} | |
} | |
// add an element with the coordinates obtained |
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
{"lastUpload":"2020-12-07T00:05:08.400Z","extensionVersion":"v3.4.3"} |
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 breakpoints = { | |
xs: "480px", | |
sm: "768px", | |
md: "992px", | |
lg: "1200px", | |
xg: "1600px", | |
}; | |
// how to use them |
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
import { breakpoints } from "./_variables"; | |
import { css } from "styled-components"; | |
export const respondTo = Object.keys(breakpoints).reduce( | |
(accumulator, label) => { | |
accumulator[label] = (...args) => css` | |
@media (min-width: ${breakpoints[label]}) { | |
${css(...args)}; | |
} | |
`; |
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
async getMarkers() { | |
const events = await firebase.firestore().collection('events') | |
events.get().then((querySnapshot) => { | |
const tempDoc = querySnapshot.docs.map((doc) => { | |
return { id: doc.id, ...doc.data() } | |
}) | |
console.log(tempDoc) | |
}) | |
} |
Create a repo. Make sure there is at least one file in it (even just the README) Generate ssh key:
ssh-keygen -t rsa -C "[email protected]"
Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings. Test SSH key:
ssh -T [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
este es un gist de prueba | |
esta creado por el interes de aprender de una manera correcta github cli |
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
import { Collection, MongoClient } from 'mongodb' | |
import User from '../lib/User' | |
import * as bcrypt from 'bcrypt' | |
import aggregateRooms from '../Room/Shared/mongodb/aggregateRooms' | |
let users: Collection | |
export type UserFromDB = { | |
_id: string | |
name: string |
OlderNewer