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 { useState } from "react"; | |
| function Square({ value, onSquareClick }) { | |
| return ( | |
| <button className="square" onClick={onSquareClick}> | |
| {value} | |
| </button> | |
| ); | |
| } |
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
| #!/bin/bash | |
| echo "======================" | |
| echo "Lists of targets and configurations in the project, or the schemes in the workspace" | |
| echo "======================" | |
| xcodebuild -list | |
| echo "======================" |
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
| // | |
| // Extension+UICollectionViewCell.swift | |
| // @aguilarpgc | |
| // | |
| // Created by aguilarpgc on 5/07/21. | |
| // | |
| import UIKit | |
| extension UICollectionView { |
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
| // | |
| // StringPEM.swift | |
| // TestPEM | |
| // | |
| // Created by Paul Aguilar on 10/4/18. | |
| // Copyright © 2018 Paul Aguilar. All rights reserved. | |
| // | |
| import Foundation |
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 UIKit | |
| import WebKit | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var webContainer: UIView! | |
| override func viewDidLoad() { | |
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 scrollViewDidScroll(_ scrollView: UIScrollView) { | |
| let mod = scrollView.contentOffset.x.truncatingRemainder(dividingBy: scrollView.bounds.size.width) | |
| let difference = abs((2 * mod / (scrollView.bounds.size.width)) - 1) | |
| let factor = (difference * 0.5) + 0.5 | |
| self.scrollView.alpha = factor |
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 | |
| struct Category1: Decodable { | |
| let recordID : String? | |
| let Year_when_Started : String? | |
| let Problem_Name : String? | |
| } |
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
| sv_cheats 1 | |
| sv_infinite_ammo 1 | |
| sv_grenade_trajectory 1 | |
| sv_grenade_trajectory_time 10 | |
| sv_showimpacts 1 | |
| mp_autoteambalance 0 | |
| mp_buytime 1000 | |
| mp_freezetime 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 UIKit | |
| public extension UIFont { | |
| enum Type: String { | |
| case Light = "Roboto-Light", | |
| Regular = "Roboto-Regular", | |
| Medium = "Roboto-Medium", | |
| Thin = "Roboto-Thin", |
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 sys | |
| import re | |
| def add_time(pattern,to_add): | |
| first_pattern, d = pattern.split(',') | |
| a, b, c = [int(i) for i in first_pattern.split(':')] | |
| d = int(d) | |
| d -= to_add | |
| # if d < 0: | |
| c += d / 1000 |
NewerOlder