Skip to content

Instantly share code, notes, and snippets.

View Iltotore's full-sized avatar
📚
Programming and studying

Raphaël Fromentin Iltotore

📚
Programming and studying
View GitHub Profile
@Iltotore
Iltotore / gamow.py
Created June 16, 2023 18:12
Python implementation of Gamow model for Polonium 212
from math import log, pi, sqrt, exp
"""
Authors: CALHEGAS Raphaël, DIZIN Jordan, FROMENTIN Raphaël
"""
# Constants
electron_mass = 9.1e-31
h = 6.626e-34
bar_h = h / (2 * pi)
{
"versions": {
"3.x": "https://scala-lang.org/api/3.x/",
"3.3.0": "https://scala-lang.org/api/3.3.0/",
"3.2.2": "https://scala-lang.org/api/3.2.2/",
"3.2.1": "https://scala-lang.org/api/3.2.1/",
"3.2.0": "https://scala-lang.org/api/3.2.0/",
"3.1.3": "https://scala-lang.org/api/3.1.3/",
"3.1.2": "https://scala-lang.org/api/3.1.2/",
"3.1.1": "https://scala-lang.org/api/3.1.1/",
@Iltotore
Iltotore / IntersectionTypeMirror.scala
Last active June 20, 2024 22:47
Mirror-like union and intersection types derivation
//> using scala "3.2.0"
import scala.quoted.Quotes
import scala.annotation.implicitNotFound
import scala.quoted.*
import scala.collection.View.Empty
trait IntersectionTypeMirror[A]:
@Iltotore
Iltotore / shaderfix.py
Last active April 8, 2021 08:58
Shader fix: Excluding dimension (notably for Galacticraft) - Usage: `py shaderfix.py -i <shader> (-z for zip files) (-dims for specific dimensions. Default are GC's dims)
import argparse
import os
import zipfile
class Shaderpack:
def __init__(self, path):
self.path = path