Skip to content

Instantly share code, notes, and snippets.

@Angelk90
Angelk90 / hello_world.py
Created March 18, 2024 10:29 — forked from matthen/hello_world.py
Hello world in python, using genetic algorithm
"""Hello world, with a genetic algorithm.
https://twitter.com/matthen2/status/1769368467067621791
"""
import random
import time
from dataclasses import dataclass
from itertools import chain
from typing import Iterable, List
@Angelk90
Angelk90 / script.sh
Created February 8, 2024 17:51 — forked from mtilson/script.sh
what are GitHub 'refs/pull/*' refspecs and how to get full copy of GitHub repo [git] [github]
#!/usr/bin/env bash
# we are going to fetch all refs (including 'refs/pull/*') from Git remote
# 'repo-to-fetch', which points to public GitHub repo defined by URL
# '${repoURL}' where the GitHub user account '${userName}' has write access
# for more details on GitHub 'refs/pull/*' refspecs see [1]
userName=mxxxxxx
userEmail=mxxxxxx@xxxxx.xxx
repoURL=https://github.com/txxxx-xx/gxx-xxxx.git
https://stackoverflow.com/questions/66366897
https://regex101.com/r/pB7nOl/1