This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
// | |
// UIScrollView+Parallax.swift | |
// Parallax | |
// | |
// Created by Valerio Mazzeo on 20/05/2016. | |
// Copyright © 2016 Valerio Mazzeo. All rights reserved. | |
// | |
import UIKit |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
self.label = [[UILabel alloc] initWithFrame:CGRectZero]; | |
self.label.translatesAutoresizingMaskIntoConstraints = NO; | |
self.label.backgroundColor = [UIColor redColor]; | |
self.label.textAlignment = NSTextAlignmentCenter; | |
self.label.numberOfLines = 0; | |
self.label.text = @"Valerio adjkashdjk asdjk asd adj aklsdjasl dkjasdkl askldj aklsdj aklsddj aklsdj aklsdjaklsdj aklsdj aklsd Tiziano."; |
public struct AnyEquatable: Equatable { | |
private let value: Any | |
private let equals: Any -> Bool | |
public init<E: Equatable>(_ value: E) { | |
self.value = value | |
self.equals = { ($0 as? E == value) ?? false } | |
} | |
} |
#import <Foundation/Foundation.h> | |
@interface NSBundle (TTTOverrideLanguage) | |
+ (void)ttt_overrideLanguage:(NSString *)language; | |
+ (void)ttt_resetLanguage; | |
@end |
// | |
// NSString+Reverse.h | |
// | |
// Created by Shilo White on 9/1/13. | |
// Copyright (c) 2013 Shilocity Productions. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSString (Reverse) |
// | |
// UIDeviceHardware.h | |
// | |
// Used to determine EXACT version of device software is running on. | |
#import <Foundation/Foundation.h> | |
@interface UIDeviceHardware : NSObject | |
+ (NSString *) platform; | |
+ (NSString *) platformString; |