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
var foo = ["blah", "hi", "bar"]; | |
for (int i = 0; i < foo.length(); i++) { | |
alert(foo[i]); | |
} |
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
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { | |
NSString *string = [array objectAtIndex:indexPath.row]; | |
CGSize suggestedSize = [string sizeWithFont:[UIFont systemFontOfSize:15.0] | |
constrainedToSize:CGSizeMake(224.0, FLT_MAX) | |
lineBreakMode:UILineBreakModeWordWrap]; | |
return suggestedSize.height + 40; // add 40px for padding | |
} |
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
//In this example all three run | |
if (...) { | |
} | |
if (...) { | |
} | |
if (...) { | |
} |
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
<html> | |
<body> | |
<script type="text/javascript"> | |
var numbers = new Array(); | |
numbers[0] = "1"; | |
numbers[1] = "1"; |
NewerOlder