Skip to content

Instantly share code, notes, and snippets.

View piemonte's full-sized avatar

patrick piemonte piemonte

View GitHub Profile
@piemonte
piemonte / LibraryStorage.sol
Created January 23, 2023 22:46 — forked from xtremetom/LibraryStorage.sol
Dirty library storage example
pragma solidity ^0.8.9;
import {SSTORE2} from "sstore2/SSTORE2.sol";
import {DynamicBuffer} from "ethier/contracts/utils/DynamicBuffer.sol";
contract LibraryStorage {
struct Library {
address owner;
bytes details;
@piemonte
piemonte / DirectionView
Created April 14, 2023 03:57
example for using the Position library bearing utility functions
//
// DirectionView.swift
//
// The MIT License (MIT)
//
// Copyright (c) 2020-present patrick piemonte (http://patrickpiemonte.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
@piemonte
piemonte / macOS Internals.md
Created May 7, 2023 06:08 — forked from kconner/macOS Internals.md
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options: