Skip to content

Instantly share code, notes, and snippets.

View aronskaya's full-sized avatar
🥥

Julia aronskaya

🥥
View GitHub Profile
@pofat
pofat / Kind.swift
Created March 12, 2021 15:49
Swift Struct Metadata
// Kind of type
public enum Kind {
case `struct`
case `enum`
case optional
case opaque
case tuple
case function
case existential
case metatype
@IsaacXen
IsaacXen / README.md
Last active July 29, 2024 08:28
(Almost) Every WWDC videos download links for aria2c.
@edenwaith
edenwaith / DiskManagement.h
Last active October 10, 2019 21:49
Get the available free space on the root drive using the method volumeFreeSpaceForDisk from the private framework DiskManagement
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#pragma mark Blocks
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown
// 1
let replicatorLayer = CAReplicatorLayer()
replicatorLayer.frame = someView.bounds
// 2
replicatorLayer.instanceCount = 30
replicatorLayer.instanceDelay = CFTimeInterval(1 / 30.0)
replicatorLayer.preservesDepth = false
replicatorLayer.instanceColor = UIColor.whiteColor().CGColor