Skip to content

Instantly share code, notes, and snippets.

View nilforooshan's full-sized avatar

Mohammad Ali Nilforooshan nilforooshan

View GitHub Profile
@nilforooshan
nilforooshan / A hack for showing LaTeX formulas in GitHub markdown.md
Last active April 3, 2020 23:39
md: A hack for showing LaTeX formulas in GitHub markdown

Problem

A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:

$e^{i \pi} = -1$

Unfortunately, GitHub does not support inline formulas. The issue is tracked here.

Investigation

@nilforooshan
nilforooshan / repo-reset.md
Last active March 17, 2019 03:10 — forked from heiswayi/repo-reset.md
git: Delete commits history with git commands

Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Clone the project
git clone <REPOSITORY><PROJECT>.git