Skip to content

Instantly share code, notes, and snippets.

View stevensyp's full-sized avatar
Focused

Steven Syp stevensyp

Focused
View GitHub Profile
@stevensyp
stevensyp / howto.md
Last active February 4, 2022 01:47
Sharing Xcode Snippets across Computers

Sharing Xcode Snippets across Computers

We can enable the synchronisation of Xcode snippets by moving the folder to an iCloud-synced location and using symlinks.

Primary Computer

mkdir ~/Documents/.XcodeSnippets
mv ~/Library/Developer/XCode/UserData/CodeSnippets ~/Documents/.XcodeSnippets
ln -s ~/Documents/.XcodeSnippets/CodeSnippets ~/Library/Developer/Xcode/UserData
@stevensyp
stevensyp / hello_world.py
Created March 21, 2024 01:18 — 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