Skip to content

Instantly share code, notes, and snippets.

View tstrohmeier's full-sized avatar

Thomas Strohmeier tstrohmeier

View GitHub Profile
@tstrohmeier
tstrohmeier / App.tsx
Created June 14, 2021 17:12 — forked from tomasznguyen/App.tsx
When adding Google Maps to your react application using the library @react-google-maps/api, you run into issues when having multiple components loading a map. In this gist you'll find a component and a hook to resolve these issues and to simplify integrating the library in your application.
import React, { FC } from 'react';
import { GoogleMap } from '@react-google-maps/api';
import { useGoogleMaps } from './GoogleMapsProvider';
const containerStyle = {
width: '400px',
height: '400px'
};
const center = {
@tstrohmeier
tstrohmeier / multiple_ssh_setting.md
Last active February 25, 2021 12:48 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"