Skip to content

Instantly share code, notes, and snippets.

View Youhan's full-sized avatar
😊

Alireza Jahandideh Youhan

😊
View GitHub Profile
@Youhan
Youhan / forecasting_metrics.py
Created March 14, 2020 03:44 — forked from bshishov/forecasting_metrics.py
Python Numpy functions for most common forecasting metrics
import numpy as np
EPSILON = 1e-10
def _error(actual: np.ndarray, predicted: np.ndarray):
""" Simple error """
return actual - predicted

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
<!-- A/B testable -->
<rec-search-form class="ab-original-searchbar hidden md:flex items-center mr-2 md:mr-4 w-full" search-url="{{ routes.search_url }}" aria-label="Search form"></rec-search-form>
<rec-algolia-autocomplete class="ab-algolia-searchbar search-bar" placeholde="test" search-url="{{ routes.search_url }}" aria-label="Search form"></rec-algolia-autocomplete>