cd /Library/Preferences
sudo rm com.sophos.sav.plist
cd /Library/Application\ Support/Sophos/cloud/Installer.app/Contents/MacOS/tools/
sudo ./InstallationDeployer —force_remove
This file contains hidden or 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
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
+ (NSString *) platform; |
This file contains hidden or 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 UIImage (CustomColours) | |
+ (UIImage *) imageWithLinearGradientOfSize:(CGSize)size start:(UIColor *)start end:(UIColor *)end; | |
+ (UIImage *) imageWithSolidColor:(UIColor *)color size:(CGSize)size; | |
@end |
This file contains hidden or 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 AbusiveClass : NSObject | |
@end | |
@implementation AbusiveClass | |
??=define U_FUKIN_WOT_M8 self == nil | |
%:define ILL_CUT_U_BRUV ??(self handleError:>; | |
- (BOOL)handleError??<return YES;%> | |
- (instancetype)init<%if (self = <:super init??))??< | |
U_FUKIN_WOT_M8 ??!??! ILL_CUT_U_BRUV |
This file contains hidden or 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
/** | |
* Implemention from here: http://www-igm.univ-mlv.fr/~lecroq/string/node14.html#SECTION00140 | |
*/ | |
extension String { | |
private func preBmBc(forString x: String) -> [Character: Int] { | |
let m = x.characters.count | |
var bmBc = [Character: Int](/*count: alphabetSize, repeatedValue: m*/) | |
for i in 0...m - 2 { |
This file contains hidden or 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 UIKit | |
protocol LayoutAttributeConvertible { | |
var layoutAttribute: NSLayoutAttribute { get } | |
} | |
enum Edge: LayoutAttributeConvertible { | |
case left | |
case right | |
case top |
This file contains hidden or 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
main() async { | |
int frequency = 0; | |
List<String> numberArray = input.split("\n"); | |
for (int i = 0; i < numberArray.length; ++i) { | |
int number = int.parse(numberArray[i]); | |
frequency += number; | |
} | |
print("Frequency: $frequency"); | |
} |
This file contains hidden or 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
//part1 | |
void main() { | |
int floor = 0; | |
for (int i = 0; i < input.length; ++i) { | |
if (input[i] == ")") --floor; | |
else if (input[i] == "(") ++floor; | |
} | |
print(floor); | |
} |
This file contains hidden or 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
extension UIView.AnimationCurve { | |
var animationOption: UIView.AnimationOptions { | |
switch self { | |
case .easeInOut: | |
return .curveEaseInOut | |
case .easeIn: | |
return .curveEaseIn | |
case .easeOut: | |
return .curveEaseOut | |
case .linear: |
This file contains hidden or 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
extension Publisher { | |
func and<T: Publisher>(_ closure: @escaping (Output) -> T) -> AnyPublisher<(Output, T.Output), Failure> where T.Failure == Failure { | |
then { output in | |
Just(output) | |
.setFailureType(to: Failure.self) | |
.zip(closure(output)) | |
.eraseToAnyPublisher() | |
} | |
} |
OlderNewer