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
@interface UIView (MPAdditions) | |
@end | |
@implementation UIView (MPAdditions) | |
- (id)debugQuickLookObject { | |
if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) { | |
return nil; | |
} | |
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
#!/usr/bin/env bash | |
# ---------------------------------------------------- | |
# | |
# Automated setup for a Ubuntu server with git, ruby, rvm, nginx. | |
# (Used at Carbonmade) | |
# | |
# Usage: | |
# - SCP this file to your server: scp ubuntu_setup.sh you@server:~ | |
# - Make it executable: chmod +x ubuntu_setup.sh | |
# - Run it: bash ubuntu_setup.sh |
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
// | |
// UIImage+vImageScaling.h | |
// UIImage+vImageScaling | |
// | |
// Created by Matt Donnelly on 03/07/2013. | |
// Copyright (c) 2013 Matt Donnelly. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
#! /bin/sh | |
# Takes a provisioning profile and installs it into the system path. | |
# This requires poking inside the provisioning profile and searching for the | |
# UUID present at the end of the file. | |
set -e | |
if [[ -z "$1" ]] | |
then |
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
# Uncrustify 0.60 | |
newlines = auto | |
input_tab_size = 4 | |
output_tab_size = 4 | |
string_escape_char = 92 | |
string_escape_char2 = 0 | |
tok_split_gte = false | |
utf8_bom = ignore | |
utf8_byte = false | |
utf8_force = false |
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
import Combine | |
private protocol LockImplementation { | |
mutating func lock() | |
mutating func `try`() -> Bool | |
mutating func unlock() | |
} | |
private struct UnfairLock: LockImplementation { | |
private var unfairLock = os_unfair_lock_s() |
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
// Created by react-native-create-bridge | |
// import RCTBridgeModule | |
#if __has_include(<React/RCTBridgeModule.h>) | |
#import <React/RCTBridgeModule.h> | |
#elif __has_include(“RCTBridgeModule.h”) | |
#import “RCTBridgeModule.h” | |
#else | |
#import “React/RCTBridgeModule.h” // Required when used as a Pod in a Swift project | |
#endif |
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
// | |
// ContentView.swift | |
// SwiftUIPlayground | |
// | |
// Created by BJ Homer on 4/26/21. | |
// | |
import SwiftUI | |
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
@implementation MySharedThing | |
+ (id)sharedInstance | |
{ | |
DEFINE_SHARED_INSTANCE_USING_BLOCK(^{ | |
return [[self alloc] init]; | |
}); | |
} | |
@end |
OlderNewer