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
- (void) dismissView { | |
//! Dismiss the veiw depending on the context, whether from the Signin view or Invitation view | |
if ([[UserManager sharedUserManager] getUserState] <= kFFUserStateUnregistered) { // was == kFFUserStateFirstTimeUser | |
fieldforcebetaAppDelegate *myApp = (fieldforcebetaAppDelegate *)[UIApplication sharedApplication].delegate; | |
myApp.tabBarController.selectedIndex = [myApp getTabIndexForTag:6]; | |
[[NSNotificationCenter defaultCenter] postNotificationName:@"launchSequenceCompleted" object:self userInfo:nil]; | |
} |
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
// Customize the appearance of table view cells. | |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
ToolAppImportContactCell *cell = (ToolAppImportContactCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; | |
// Grab LinkedIn User Data | |
// LinkedInUser is a custom object container for name, LinkedInID and avatar URL | |
LinkedInUser *person = [self.list objectAtIndex:indexPath.row]; | |
// Generate NSString to display in cell | |
cell.nameLabel.text = [NSString stringWithFormat:@"%@ %@",(person.name?person.name:@""),(person.name_last?person.name_last:@"")]; | |
// Display the LinkedIn User's status (ie., location) |
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
- (void)signIn:(int)socialNetworkType { | |
//! Method to launch authorization modal dialog for Twitter or LinkedIn | |
NSURL *requestURL; | |
NSURL *authorizeURL; | |
NSURL *accessURL; | |
NSString *scope; | |
if (socialNetworkType == kSignupSocialLinkedIn) { | |
// LinkedIn OAuth token request URLs |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<link rel="stylesheet" href="stylesheets/canvas.css" type="text/css" media="screen" /> | |
<style type="text/css" media="screen"> | |
#wrapper {width:100%;} | |
#wrapper p {width:80% !important;} |
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
// MARK: - NSDate timeAgoSinceDate | |
// Updated for Swift2.0 | |
func timeAgoSinceDate(date:NSDate, numericDates:Bool) -> String { | |
let calendar = NSCalendar.currentCalendar() | |
let now = NSDate() | |
let earliest = now.earlierDate(date) | |
let latest = (earliest == now) ? date : now | |
let components:NSDateComponents = calendar.components([.Hour, .Minute, .Day, .WeekOfYear, .Month, .Year, .Second], fromDate: earliest, toDate: latest, options: []) |
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
// | |
// ParseORM.swift | |
// | |
// Copyright © 2016 Mobile Flow LLC. All rights reserved. | |
// | |
import UIKit | |
import Parse | |
class ParseORM : NSObject { |
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
// | |
// RealmORM.swift | |
// | |
// Copyright © 2016 Mobile Flow LLC. All rights reserved. | |
// | |
import UIKit | |
import Realm | |
import RealmSwift |
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
var randomInt = (min,max) => { return Math.floor(Math.random() * (max - min + 1) + min) } | |
var loremString = (max) => { | |
let words = ['ad', 'adipisicing', 'aliqua', 'aliquip', 'amet', 'anim', 'aute', 'cillum', 'commodo', 'consectetur', 'consequat', 'culpa', 'cupidatat', 'deserunt', 'do', 'dolor', 'dolore', 'duis', 'ea', 'eiusmod', 'elit', 'enim', 'esse', 'est', 'et', 'eu', 'ex', 'excepteur', 'exercitation', 'fugiat', 'id', 'in', 'incididunt', 'ipsum', 'irure', 'labore', 'laboris', 'laborum', 'Lorem', 'magna', 'minim', 'mollit', 'nisi', 'non', 'nostrud', 'nulla', 'occaecat', 'officia', 'pariatur', 'proident', 'qui', 'quis', 'reprehenderit', 'sint', 'sit', 'sunt', 'tempor', 'ullamco', 'ut', 'velit', 'veniam', 'voluptate' ] | |
var sentence = '' | |
var count = max | |
while (count > 0) { | |
let i = randomInt(0,words.length) | |
let word = words[i] | |
sentence = count == max ? word : sentence+' '+word | |
count = count - 1 |
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
Verifying my Blockstack ID is secured with the address 1oVAUqjZLsvvGCT3JmPcTNGF5VQqBTrw1 https://explorer.blockstack.org/address/1oVAUqjZLsvvGCT3JmPcTNGF5VQqBTrw1 |
OlderNewer