Skip to content

Instantly share code, notes, and snippets.

View ejknapp's full-sized avatar

Eric Knapp ejknapp

View GitHub Profile
SuperAbbrevs script to generate a new Analyzer class.
package java112.analyzer;
import java.util.*;
import java.io.*;
/**
* class $1
*
package java112.labs2;
import java.io.*;
import java.util.*;
/**
* @author Eric Knapp
* class PropertiesDemo
*
*/
package java112.labs2;
import java.util.*;
import java.io.*;
/**
* @author Eric Knapp
* class PropertiesDemo
*
*/
${1:public} ${2:void} ${3:name}(${4:params}) {
$end
}
package java112.$1;
import java.util.*;
/**
* @author <#=AUTHOR#>
* class $2
*
*/
public class ${2:name} {
WWDC 2010 Videos
http://developer.apple.com/videos/wwdc/2010/
// Adding the arrow to a cell
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
//In RootViewController.m
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[self.navigationController pushViewController:self.wordsController animated:YES];
}
Challenge from semester class
http://itvideos.matcmadison.edu/screencasts/iphonedev/HiLoChallenge.mov
//Random number
NSUInteger newNumberToGuess = (((float)random() / RAND_MAX) * rangeMax) + 1;
//Seed
srandom(time(NULL));