This file contains 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 intersections(a, b) { | |
var R = a.r, | |
r = b.r, | |
dx = b.x - a.x, | |
dy = b.y - a.y, | |
d = Math.sqrt(dx * dx + dy * dy), | |
x = (d * d - r * r + R * R) / (2 * d), | |
y = Math.sqrt(R * R - x * x); | |
dx /= d; | |
dy /= d; |
This file contains 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
# Assume we are in your home directory | |
cd ~/ | |
# Clone the repo from GitLab using the `--mirror` option | |
$ git clone --mirror [email protected]:mario/my-repo.git | |
# Change into newly created repo directory | |
$ cd ~/my-repo.git | |
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |