Replace in file: Alt + Cmd + F
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 'package:flutter/material.dart'; | |
void main() { | |
print('hello world'); | |
runApp( | |
MaterialApp( | |
home: PresentationCard(), | |
debugShowCheckedModeBanner: false, | |
), | |
); |
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
// | |
// Cards Validator.swift | |
// | |
// | |
// Created by Andres Acevedo on 28/06/21. | |
// This example shows how to combine Structs and Protocols to make validations of the same kind but with different specific rules. | |
import Foundation | |
/* |
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 Combine | |
import SwiftUI | |
class ObservableSlider: ObservableObject { | |
@Published public var value: Double = 0.0 | |
} | |
class YourViewController { | |
var observableSlider:ObservableSlider = ObservableSlider() | |
private var cancellables: Set<AnyCancellable> = [] |
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
//This can be done in a much simpler and efficient way, but this was my first attempt. | |
func prison(n: Int, m: Int, h: [Int], v: [Int]) -> Int { | |
// Write your code here | |
let row = Array(repeating: 1, count: m + 1) | |
var matrix : [[Int]] = Array(repeating: row , count: n + 1) | |
// process h bar removals | |
for hBar in h { | |
//hbar la barra que estamos quitando |
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 Foundation | |
func traverseFoldersDict(currentFolder:String, | |
folders:inout [String:[String]], | |
currentLevel:Int) -> String { | |
guard let childs = folders[currentFolder] else { | |
return "" | |
} | |
var levelConsolidate = [String]() | |
var result = "" |