Skip to content

Instantly share code, notes, and snippets.

View eliseuegewarth's full-sized avatar

Eliseu Egewarth eliseuegewarth

View GitHub Profile
@eliseuegewarth
eliseuegewarth / get_duration.py
Last active October 1, 2020 17:50
Get timedelta duration from 2 datetime.time
import datetime
def get_duration(s1="00:00:00", s2="00:00:00"):
time_fmt = '%H:%M:%S'
time_delta = datetime.datetime.strptime(s2, time_fmt) - datetime.datetime.strptime(s1, time_fmt)
return str(time_delta)
# s1 = '09:58:00'
# s2 = '16:44:00'

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: git@github.com/myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo.

How do I add images to a wiki page?

You need to clone the wiki repo and edit it on your system.