This file contains hidden or 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
func solution(startAtDay: String, num: Int) -> String? { | |
let days: [String] = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"] | |
guard days.contains(startAtDay) else { return nil } | |
let index = (days.firstIndex(of: startAtDay) ?? 0) + 1 | |
let value = index + num | |
let normalizedNo = (value - 1) % 7 + 1 | |
switch normalizedNo { | |
case 1: |
This file contains hidden or 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
/* | |
* Created by John Paul Manoza on Fri Nov 22 2019 | |
* | |
* Copyright (c) 2019 _______. All rights reserved. | |
*/ | |
import moment from 'moment'; | |
import { AsyncStorage } from 'react-native'; |
This file contains hidden or 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
// Playground - noun: a place where people can play | |
import UIKit | |
var million = 1000000 | |
var bestLength = 0 | |
var bestNumber = 0 | |
var number = 0 |
This file contains hidden or 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 <GPUImageThreeInputFilter.h> | |
extern NSString *const kGPUImageFourInputTextureVertexShaderString; | |
@interface GPUImageFourInputFilter : GPUImageThreeInputFilter | |
{ | |
GPUImageFramebuffer *fourthInputFramebuffer; | |
GLint filterFourthTextureCoordinateAttribute; | |
GLint filterInputTextureUniform4; |