I hereby claim:
- I am samwarnick on github.
- I am samwarnick (https://keybase.io/samwarnick) on keybase.
- I have a public key whose fingerprint is 832B 1123 1466 F2AF 09CC 2BA1 C976 F5BC F57A 5870
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def recurse(r, c, dishes): | |
dishes[r][c] = " " | |
# bottom | |
if r < len(dishes)-1 and dishes[r+1][c] == "#": | |
recurse(r+1, c, dishes) | |
# top | |
if r > 0 and dishes[r-1][c] == "#": | |
recurse(r-1, c, dishes) | |
# right | |
if c < 9 and dishes[r][c+1] == "#": |
fruit = ["watermelon", "apple", "oranges", "bannana"] | |
def fuzzySearch(words, term): | |
results = [] | |
if len(term) == 0: | |
return results | |
termLength = len(term) | |
for word in words: |
var 😀 = "Hello, World!" | |
print(😀) |
:root { | |
--lightblue: #65def1; | |
} | |
.nav-link { | |
font-size: 20px; | |
color: #65def1; | |
color: var(--lighblue); | |
} |
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
window = UIWindow(frame: UIScreen.main.bounds) | |
window?.rootViewController = YourFirstViewController() |
func configureViews() { | |
let authorLabel = UILabel() | |
authorLabel.defaultStlye() | |
authorLabel.text = "Created by Sam Warnick" | |
let websiteButton = UIButton(type: .system) | |
websiteButton.defaultStlye() | |
websiteButton.setTitle("samwarnick.com", for: .normal) | |
websiteButton.addTarget(self, action: #selector(STNCreditsViewController.didPressWebisteButton), for: .touchUpInside) | |
websiteButton.sizeToFit() |
/* | |
These functions are neccessary for the page indicator dots to show up. | |
They are optional functions of UIPageViewControllerDataSource, so they do not come up as overrides. | |
*/ | |
func presentationCount(for pageViewController: UIPageViewController) -> Int { | |
return orderedViewControllers.count | |
} | |
func presentationIndex(for pageViewController: UIPageViewController) -> Int { | |
return 0 |
let nextViewController = NextViewController() | |
nextViewController.modalPresentationStyle = .custom | |
nextViewController.modalTransitionStyle = .crossDissolve | |
present(nextViewController, animated: true, completion: nil) |