View ChunkedArray.swift
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
// | |
// ChunkedArray.swift | |
// | |
// Created by João Santos on 25/05/2020. | |
// Copyright © 2020 João Santos. All rights reserved. | |
// | |
import Foundation | |
extension Array { |
View RemoveDuplicates.swift
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
// | |
// RemoveDuplicates.swift | |
// | |
// Created by João Santos on 25/05/2020. | |
// Copyright © 2020 João Santos. All rights reserved. | |
// | |
import Foundation | |
extension Array where Element: Equatable { |
View UIImageToGrayscale.swift
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
// | |
// UIImageToGrayscale.swift | |
// | |
// Created by João Santos on 27/11/2018. | |
// Copyright © 2018 João Santos. All rights reserved. | |
// | |
import UIKit | |
extension UIImage { |
View UIColorFromHex.swift
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
// | |
// UIColorFromHex.swift | |
// | |
// Created by João Santos on 14/05/2018. | |
// Copyright © 2018 João Santos. All rights reserved. | |
// | |
import UIKit | |
extension UIColor { |
View ContrastRatioSwift.swift
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
// | |
// ContrastRatioSwift.swift | |
// Contrast Ratio Swift | |
// | |
// Created by João Santos on 25/05/2023. | |
// Copyright © 2023 João Santos. All rights reserved. | |
// | |
import UIKit |
View SymmetricEncryption.php
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
<?php | |
class SymmetricEncryption { | |
private $cipher; | |
public function __construct($cipher = 'aes-256-cbc') { | |
$this->cipher = $cipher; | |
} |