Skip to content

Instantly share code, notes, and snippets.

@wware
wware / intersect_circles.py
Last active July 26, 2023 17:42
Intersection of two circles in two dimensions
from math import cos, sin, atan2
class Circle:
def __init__(self, x, y, radius):
self.x, self.y, self.radius = x, y, radius
def intersect_circles(first, second):
"""
>>> intersect_circles(Circle(0, 0, 1), Circle(1, 1, 1))
((1.5700924586837752e-16, 1.0), (1.0, 0.0))
@xerpi
xerpi / 3DS_Linux_build_instructions.md
Last active October 7, 2024 20:54
3DS Linux build instructions

Step 1: Compiling or Downloading the toolchain

Step 1.a: If you choose to download a pre-compiled toolchain (only for Linux x86-64)

  • Go to https://toolchains.bootlin.com
  • Select arch: armv6-eabihf
  • Select libc: glibc
  • Download bleeding-edge
  • Uncompress it (for example to /opt)
  • Add the bin/directory of the toolchain to $PATH
  • In my case: export PATH=$PATH:/opt/armv6-eabihf--glibc--bleeding-edge-2020.08-1
@ih2502mk
ih2502mk / list.md
Last active November 18, 2024 21:41
Quantopian Lectures Saved
@almas
almas / ubuntu-on-mbp-a1707.md
Last active November 16, 2024 11:31 — forked from rob-hills/ubuntu-22.04-mbp-a1707.md
Ubuntu LTS on MacBook Pro 2017 (A1707, MBP 14,3)(T1 chip)

Summary

Notes to install Ubuntu 22.04.4LTS (Upgraded to 24.04LTS) up and running on my 2017 MacBook Pro 15 inch (MacBookPro14,3).

Now everything except the TouchID (Fingerprint), Suspend and Hibernation seems to work for me.

About Ubuntu 24.04LTS: I tried to install Ubuntu 24.04 and didn't have success. There was a crash issue during installation. https://bugs.launchpad.net/subiquity/+bug/2065310 But I installed 22.04 and upgraded it to the 24.04LTS later and it working same as 22.04.4.

Useful References (not mentioned in the text)