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
$ cd / | |
$ ls | |
dir cmwrq | |
dir ftrccld | |
dir jjlbmtw | |
dir jpncfpb | |
dir mddr | |
dir mthvntdd | |
55644 pjts.dzh | |
dir ptzsl |
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 UIKit | |
import PlaygroundSupport | |
class ViewController: UIViewController { | |
var notesTextView: UITextView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
notesTextView = UITextView(frame: CGRect(x: 0, y: 0, width: 100, height: 100)) | |
view.addSubview(notesTextView) |
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 UIKit | |
import PlaygroundSupport | |
final class ViewController: UITableViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
tableView.register(TableViewCell.self, forCellReuseIdentifier: "\(TableViewCell.self)") | |
} |
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
// | |
// ObjcViewController.m | |
// FilterCam | |
// | |
// Created by B Gay on 11/3/17. | |
// Copyright © 2017 B Gay. All rights reserved. | |
// | |
#import "ObjcViewController.h" | |
#import <AVFoundation/AVFoundation.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
// | |
// ViewController.swift | |
// CameraFilter | |
// | |
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController, AVCaptureVideoDataOutputSampleBufferDelegate { | |
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 UIKit | |
class SpringyCollectionViewFlowLayout: UICollectionViewFlowLayout | |
{ | |
lazy var dynamicAnimator: UIDynamicAnimator = | |
{ | |
return UIDynamicAnimator(collectionViewLayout: self) | |
}() | |
var visibleIndexPathsSet = Set<IndexPath>() |
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 UIKit | |
import PlaygroundSupport | |
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource | |
{ | |
let tableView = UITableView(frame: CGRect.zero, style: .plain) | |
let containerView = UIView(frame: CGRect(x: 0, y: 0, width: 300, height: 300)) | |
var text = ["dog 🐶", "cat 🐱", "mouse 🐭", "bird 🐦", "rat 🐀", "chicken 🐔"] |
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 UIKit | |
import PlaygroundSupport | |
extension UIView | |
{ | |
var snapshot: UIImage? | |
{ | |
UIGraphicsBeginImageContextWithOptions(self.bounds.size, false, 0) | |
self.drawHierarchy(in: self.bounds, afterScreenUpdates: true) | |
let image = UIGraphicsGetImageFromCurrentImageContext() |
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 <UIKit/UIKit.h> | |
IB_DESIGNABLE | |
@interface KerningLabel : UILabel | |
@property (nonatomic) IBInspectable CGFloat kerning; | |
@end |
NewerOlder