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
| post_install do |installer| | |
| installer.pods_project.targets.each do |target| | |
| target.build_configurations.each do |config| | |
| config.build_settings[‘DEBUG_INFORMATION_FORMAT’] = ‘dwarf’ | |
| end | |
| end | |
| end |
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
| Alamofire.request(apiURL).responseJSON { (response) in | |
| if response.result.isSuccess { | |
| guard let data = response.result.value as? [String: Any] else { return } | |
| guard let results = data["results"] as? NSArray else { return } | |
| for result in results { | |
| if let result = result as? [String: Any] { | |
| if let elevation = result["elevation"] as? Double { | |
| } |
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 | |
| class SliderViewController: UIViewController, UIScrollViewDelegate { | |
| @IBOutlet weak var scrollView: UIScrollView! | |
| @IBOutlet weak var pageControl: UIPageControl! | |
| var contentWidth: CGFloat = 0.0 | |
| let imageNames = ["First", "Second", "Third", "Fourth"] | |
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
| // comment | |
| /* multi-line | |
| comment */ | |
| let x = true | |
| var y = false | |
| let z = 1 | |
| var o: 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
| import UIKit | |
| import ARKit | |
| class ARViewController: UIViewController, ARSCNViewDelegate { | |
| @IBOutlet weak var sceneView: ARSCNView! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| sceneView.delegate = self |
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 os | |
| import json | |
| import requests | |
| from datetime import datetime | |
| from prettytable import PrettyTable | |
| from colorama import Fore, Back, Style | |
| convert = 'USD' | |
| listings_url = 'https://api.coinmarketcap.com/v2/listings/?convert=' + convert |
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 json | |
| import requests | |
| from datetime import datetime | |
| convert = 'USD' | |
| listings_url = 'https://api.coinmarketcap.com/v2/listings/?convert=' + convert | |
| url_end = '?structure=array&convert=' + convert | |
| request = requests.get(listings_url) |
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 json | |
| import requests | |
| from datetime import datetime | |
| ticker_url = 'https://api.coinmarketcap.com/v2/ticker/?structure=array' | |
| limit = 100 | |
| start = 1 | |
| sort = 'id' | |
| convert = 'USD' |
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 json | |
| import requests | |
| from datetime import datetime | |
| listings_url = 'https://api.coinmarketcap.com/v2/listings/' | |
| request = requests.get(listings_url) | |
| results = request.json() | |
| # print(json.dumps(results, sort_keys=True, indent=4)) |
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 json | |
| import requests | |
| from datetime import datetime | |
| convert = 'USD' | |
| global_url = 'https://api.coinmarketcap.com/v2/global/' + '?convert=' + convert | |
| request = requests.get(global_url) | |
| results = request.json() |
NewerOlder