Skip to content

Instantly share code, notes, and snippets.

View shauntc's full-sized avatar

Shaun shauntc

  • Vancouver, Canada
View GitHub Profile
1i) d - Ease in + changing alpha to 0 + removing the view once the animation is complete
1ii)
2)
3)contentOffset controlls how far the origin of the content view is from the origin of the UIScrollView. Changing this would move around the content because it would move everything attached to your content view
4)
1) Instance variables are variables that are created each time an instance of an object is created (they are what you refer to as _variableName
2a) Abstraction: Removing any necessary knowlege of how the methods of an object work so that you can just deal with the interface
2b) Encapsulation:keeping code encapsulated in objects instead of in the main program
2c) Inheritance: the ability for an object to have identical properties and methods (as its parent) as well as other properties for its specific purpose
2d) Polymorphism: how code is written so that it can be used in many different circumstances
3)Objects: Bike, Mechanic
3b)Can subclass Mechanic with JuniorMechanic
1) Object oriented languages are based around objects instead of functions
2) Structures are like an array but can hold multiple data types
3) Instance methods require an instance of the class to be used where as a class method can be called without an instance. In objective c an instance method starts with - (and will be called using the instance name) where as a class method starts with + (and will be called using the class name)
@shauntc
shauntc / gist:74943f51bda14e356266ae2fad87df73
Last active September 5, 2016 20:21
Unix Commands Part 3
history | grep "cat " | wc -l
cat /usr/share/dict/words | grep "^a" | wc -l
cat /usr/share/dict/words | grep "^a[a-zA-Z]*s$" | wc -l
curl https://www.lighthouselabs.ca/index.html > ~/Desktop/index.html