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
## Rule Format | |
EACH RULE FOLLOWS THIS PATTERN: | |
IF [condition] | |
THEN [action] | |
VALIDATE [verification step] | |
## 1. Technology Requirements | |
IF creating React components | |
THEN use functional components only | |
VALIDATE component has no class syntax |
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
let seconds:TimeInterval = 1.0 | |
var lastSearched: Date? | |
func searchName() -> Void { | |
guard (self.lastSearched == nil) || self.lastSearched! < Date() else { | |
return | |
} | |
self.lastSearched = Date(timeIntervalSinceNow: seconds) |
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
UIDevice.current.beginGeneratingDeviceOrientationNotifications() | |
NotificationCenter.default.addObserver(self, selector: #selector(gotNote), name: NSNotification.Name.UIDeviceOrientationDidChange, object: 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
// | |
// ListViewController.swift | |
// | |
// Created by Paul McKellar on 11/1/16. | |
// Copyright © 2016 Paul McKellar. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// TypedImage.swift | |
// | |
// Created by Paul McKellar on 8/22/16. | |
// Copyright © 2016 Paul McKellar. All rights reserved. | |
// | |
import UIKit | |
import FLAnimatedImage |
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
// | |
// ImageUploader.swift | |
// | |
// Created by Paul McKellar on 10/9/16. | |
// Copyright © 2016 Paul McKellar. All rights reserved. | |
// | |
import Foundation | |
class ImageUploader: NSObject { |
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
// | |
// SignupViewController.swift | |
// | |
// Created by Paul McKellar on 10/3/16. | |
// Copyright © 2016 Paul McKellar. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
PROMPT='%{$fg_bold[green]%}%p%{$fg[green]%}%~ %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%}' | |
RPROMPT='%{$fg[$NCOLOR]%}%p %{$reset_color%}' | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="yellow"; fi | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[cyan]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}%{$fg[yellow]%}⚡%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}] " |
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
let randomRed:CGFloat = CGFloat(drand48()) | |
let randomGreen:CGFloat = CGFloat(drand48()) | |
let randomBlue:CGFloat = CGFloat(drand48()) | |
let backgroundColor = UIColor(red: randomRed, green: randomGreen, blue: randomBlue, alpha: 1.0) | |
self.animatedImageView.backgroundColor = backgroundColor | |
self.imageView.backgroundColor = backgroundColor | |
self.backgroundColor = backgroundColor |
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
// | |
// TypedImage.swift | |
// | |
// Created by Paul McKellar on 8/22/16. | |
// Copyright © 2016 Paul McKellar. All rights reserved. | |
// | |
import UIKit | |
import FLAnimatedImage |
NewerOlder