Skip to content

Instantly share code, notes, and snippets.

View grazulis's full-sized avatar

Gary Leeming grazulis

  • University of Liverpool
  • Liverpool
View GitHub Profile
@grazulis
grazulis / dyson-mass
Created May 31, 2023 06:57
Calculate mass needed for Dyson sphere
import math
def calculate_dyson_sphere_mass():
# Constants
radius_au = 1.0 # Radius of Dyson sphere in AU
thickness = 3 # Thickness of the shell in meters
density = 5520.0 # Density of the shell material in kg/m^3
solar_system_mass = 1.99e30 # Total mass of the solar system in kg, including the Sun.
solar_planet_mass = 2.846e27 # Mass of just planets in kg, by adding up masses of the planets
@grazulis
grazulis / osx_bootstrap.sh
Created December 23, 2020 14:26 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
### Keybase proof
I hereby claim:
* I am grazulis on github.
* I am grazulis (https://keybase.io/grazulis) on keybase.
* I have a public key whose fingerprint is 558C 32C0 F5BA C9E1 4BFB 1C84 35B0 6AC8 06C8 8622
To claim this, I am signing this object: