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
[ | |
{ | |
"id" : "147", | |
"firstName" : "Jeff", | |
"lastName" : "Sager" | |
}, | |
{ | |
"id" : "121", | |
"firstName" : "Alan", | |
"lastName" : "Smith" |
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
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ page language="java" contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>[ | |
<c:forEach var="employee" items="${jsonSearchResults.foundEmployeeList}" varStatus="status"> { | |
"id" : "${employee.id}", | |
"firstName" : "${employee.firstName}", | |
"lastName" : "${employee.lastName}" | |
}<c:choose><c:when test="${status.last}"></c:when><c:otherwise>,</c:otherwise></c:choose> | |
</c:forEach>] |
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
- (int)randomNumberFrom:(int)first to:(int)second | |
{ | |
int difference = second - first; | |
int randomValue = arc4random() % (difference + 1); | |
return randomValue + first; | |
} |
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
- (UIColor *)randomColor | |
{ | |
CGFloat red = ((arc4random() % 100) / 100.0); | |
CGFloat green = ((arc4random() % 100) / 100.0); | |
CGFloat blue = ((arc4random() % 100) / 100.0); | |
return [UIColor colorWithRed:red green:green blue:blue alpha:1.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
NSLog(@"\n\tFunction\t=>\t%s\n\tLine\t\t=>\t%d", __func__, __LINE__); |
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
javascript:var%20p=document.getElementsByTagName('*');for(i=0;i%3Cp.length;i++)%7Bif(p%5Bi%5D.style.fontSize)%7Bvar%20s=parseInt(p%5Bi%5D.style.fontSize.replace(%22px%22,%22%22));%7Delse%7Bvar%20s=12;%7Ds+=2;p%5Bi%5D.style.fontSize=s+%22px%22%7D |
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
javascript:var%20p=document.getElementsByTagName('*');for(i=0;i%3Cp.length;i++)%7Bif(p%5Bi%5D.style.fontSize)%7Bvar%20s=parseInt(p%5Bi%5D.style.fontSize.replace(%22px%22,%22%22));%7Delse%7Bvar%20s=12;%7Ds-=2;p%5Bi%5D.style.fontSize=s+%22px%22%7D |
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
javascript:document.querySelector('meta[name=viewport]').setAttribute('content','width=device-width,initial-scale=1.0,maximum-scale=10.0,user-scalable=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
#import "Contact.h" | |
@interface Contact () | |
@property (strong) NSString *firstName; | |
@property (strong) NSString *lastName; | |
@property (strong) NSString *email; | |
@property (strong) NSString *cell; | |
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 <Foundation/Foundation.h> | |
@interface Contact : NSObject | |
- (id)initWithJSONDictionary:(NSDictionary *)jsonDictionary; | |
- (NSString *)fullName; | |
- (NSDictionary *)jsonDictionary; | |
@end |