This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Libcpuid < Formula | |
desc "A small C library for x86 CPU detection and feature extraction " | |
homepage "https://github.com/anrieff/libcpuid" | |
head "https://github.com/anrieff/libcpuid.git" | |
depends_on "automake" => :build | |
depends_on "libtool" => :build | |
depends_on "autoconf" => :build | |
def install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any, Callable, ParamSpec, Type, TypeVar | |
T = TypeVar('T') | |
P = ParamSpec('P') | |
def singleton(cls: Type[T]) -> Callable[P, T]: | |
""" | |
Example: | |
>>> @singleton | |
... class C: ... |
OlderNewer