Skip to content

Instantly share code, notes, and snippets.

View FabiolaRamirez's full-sized avatar

Fabiola Ramírez FabiolaRamirez

  • Bolivia - La Paz
View GitHub Profile
#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
using namespace std;
//
// LinphoneManager.swift
// F3tch
//
// Created by Fabiola Ramirez on 5/18/18.
// Copyright © 2018 F3tch. All rights reserved.
//
protocol CallStateDelegate {
func callState(state: String)
//
// CallViewController.swift
// F3tch
//
// Created by Fabiola Ramirez on 4/26/18.
// Copyright © 2018 F3tch. All rights reserved.
//
protocol DialerDelegate {
func onPhoneNumberUpdated(phoneNumber: String)
//
// IDProtectionLocationsViewController.swift
// finance
//
// Created by DavidMora on 10/2/18.
// Copyright © 2018 creditsesame. All rights reserved.
//
import UIKit
func getCoordinates() {
coordinates = []
let queue = OperationQueue()
let operation1 = BlockOperation {
let geoCoder = CLGeocoder()
for mapPoint in self.points {
let dispatchGroup = DispatchGroup()
dispatchGroup.enter()
print("CurrentAlert.shared.locations.count: \(CurrentAlert.shared.locations.count)")
//
// MapView.swift
// finance
//
// Created by Fabiola Ramirez on 10/18/18.
// Copyright © 2018 creditsesame. All rights reserved.
//
import UIKit
import MapKit
//
// MapView.swift
// finance
//
// Created by Fabiola Ramirez on 10/18/18.
// Copyright © 2018 creditsesame. All rights reserved.
//
import UIKit
import MapKit
//
// MapView.swift
// finance
//
// Created by Fabiola Ramirez on 10/18/18.
// Copyright © 2018 creditsesame. All rights reserved.
//
import UIKit
import MapKit
func configureCreditInquiriesCell(indexPath: IndexPath) -> UITableViewCell {
let cell: UITableViewCell
switch indexPath.row {
case 0:
cell = tableView.dequeueReusableCell(withIdentifier: graphCellIdentifier) ?? UITableViewCell()
guard let inquiriesFactor = creditFactor.creditFactorData as? CreditInquiriesFactor else {
return UITableViewCell()
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
var cell = UITableViewCell()
if let section = IDProtectionLocationsSection(rawValue: indexPath.section) {
var current: MapPoint?
var alertPoints: [MapPoint] = []
switch section {
case .sexOffender:
current = CurrentAlert.shared.currentSexOffenderAlertPoint
alertPoints = sexOffendersAlertPoints
switch indexPath.row {