Skip to content

Instantly share code, notes, and snippets.

Peter K. Shultz pkshultz

Block or report user

Report or block pkshultz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pkshultz
pkshultz / ios-app-talk
Created Mar 30, 2015
iOS Application Talk
View ios-app-talk
- Chief idea about iOS development: user experience.
- Algorithms and security play a part, to be sure, but user experience is paramount.
- Model-View-Controller
- Take all of the objects in the application and divide them into 3 parts:
- Model
- Data
@pkshultz
pkshultz / sieve.java
Created Mar 26, 2015
Sieve of Eratosthenes
View sieve.java
// Sieve of Eratosthenes
public int sieve_of_eratosthenes(int input)
{
boolean [] is_prime = new boolean [input];
int number_of_primes = 0;
// Set all values to true
Arrays.fill(is_prime, Boolean.TRUE)
View gist:46db4e99e3f45b093a62
Notes: Objective-C Syntax
Date: October 10, 2014
Description: Described NSLog(), strings, and function instantiation.
NSLog(): Similar to a print statement, or "cout" in C++. Prints data given within the parentheses
to the XCode Console.
Example: NSLog(@"Doing okay thus far"); prints "Doing okay thus far"
Strings: Data type that holds multiple characters. In Objective-C, strings are made by putting an
You can’t perform that action at this time.