git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
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
// | |
// | |
// CGVectorArithmetics.swift | |
// | |
// Created by fewlinesofcode.com on 2/6/19. | |
// Copyright © 2019 fewlinesofcode.com All rights reserved. | |
// | |
import Foundation | |
import CoreGraphics |
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
// | |
// Vector2D.swift | |
// | |
// Created by fewlinesofcode.com on 2/6/19. | |
// Copyright © 2019 fewlinesofcode.com All rights reserved. | |
// | |
import Foundation | |
struct Vector2D { |
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
- (IBAction)getImageFromWeb:(id)sender { | |
// grab the width and height of the document in our mobileView. | |
CGSize contentSize = CGSizeMake( | |
[[mobileView stringByEvaluatingJavaScriptFromString:@"document.body.scrollWidth;"] floatValue], | |
[[mobileView stringByEvaluatingJavaScriptFromString:@"document.body.scrollHeight;"] floatValue] | |
); | |
// create a new window, offscreen. | |
NSWindow *hiddenWindow = [[NSWindow alloc] initWithContentRect: NSMakeRect( -1000,-1000, contentSize.width, contentSize.height ) | |
styleMask: NSTitledWindowMask | NSClosableWindowMask backing:NSBackingStoreNonretained defer:NO]; |