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
https://jsonmock.hackerrank.com/api/movies/search/?Title=substring | |
{ | |
"page": 1, | |
"per_page": 10, | |
"total": 0, | |
"total_pages": 0, | |
"data": [] | |
} |
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
//swift 3.0.2 | |
import Foundation; | |
class Solution | |
{ | |
/** | |
* @param {[][]String} travel_time | |
* @param {[][]String} points | |
* @param {String} start_token | |
* @return {total, [] = path} | |
*/ |
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
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { | |
let photo = photos[indexPath.row] | |
print("photogg:\(photo)") | |
showPhotoDetail(photo: photo) | |
} | |
func showPhotoDetail(photo: Photo) { | |
let vc: GalleryDetailViewController = UIViewController.instantiateViewController(storyBoard: "Gallery", identifier: "galleryDetailViewController") as! GalleryDetailViewController | |
vc.photo = photo | |
self.navigationController?.pushViewController(vc, animated: 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
// | |
// Service.swift | |
// Gallery | |
// | |
// Created by Fabiola Ramirez on 3/23/20. | |
// Copyright © 2020 Fabiola Ramirez. All rights reserved. | |
// | |
import Foundation | |
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
// EL METODO DEL FOOTER QUE TIENE TODO | |
func configureFooter() { | |
if currentTab == .personalLoans || (CreditSesameRestClient.shared.canShowCreditCardsFilter && TestingManager.shared.newCCFilteringVariation == Variations.variation) { | |
tableView.tableFooterView = nil | |
return | |
} | |
let offersFooterView = UIView.loadNib("OffersFooterView") |
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
// | |
// BestOffersViewController.swift | |
// finance | |
// | |
// Created by David Yanez on 4/2/18. | |
// Copyright © 2018 creditsesame. All rights reserved. | |
// | |
import UIKit | |
import SnapKit |
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
// Created by dpd Ghimire (dip kasyap) on 8/18/17. | |
// Copyright © 2017 dip. dpd.ghimire@gmail.com All rights reserved. | |
// | |
/* | |
Copyright (c) <2017> <dpd Ghimire> | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
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 UIKit | |
class DGItem:UIButton { | |
var selectedColor:UIColor = UIColor.creditSesameCyan { | |
didSet { | |
self.backgroundColor = selectedColor | |
} |
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
// | |
// BestOffersViewController.swift | |
// finance | |
// | |
// Created by David Yanez on 4/2/18. | |
// Copyright © 2018 creditsesame. All rights reserved. | |
// | |
import UIKit | |
import SnapKit |
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
// | |
// OffersViewController.swift | |
// finance | |
// | |
// Created by David Yanez on 4/4/18. | |
// Copyright © 2018 creditsesame. All rights reserved. | |
// | |
import UIKit |
NewerOlder