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 |
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 { |
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 { |
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 { |
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 { |
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
#!/bin/bash | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
sudo apt -y autoremove |
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; | |
} |