- Is the functionality correct?
- Are the classes named suitably?
- Are the functions named suitably?
- How's the datastructure being used? Is it the correct DS or it needs improvement?
- Can the classes be further borken into small classes?
- Do we need an interface?
- If it contain functions that can be reused later then are there Utils created for them?
- Can it use already available Util functions?
- Does the large set of input for a function deserve a new bean to be created?
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
- (IBAction)saveRingtoneButtonClicked:(UIButton *)sender { | |
m_saveRingtoneButtonLowlighted = false; | |
m_saveRingtoneButtonHighlighted = true; | |
[self animateSaveRingtoneButton]; | |
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,true); | |
NSString* sourceFilePath = [[NSBundle mainBundle] pathForResource:[m_activeClip.mp3 componentsSeparatedByString:@"."][0] ofType:@"mp3"]; | |
NSData* mainBundleFile = [NSData dataWithContentsOfFile:sourceFilePath]; |
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
useful links | |
http://bradabrams.com/2013/06/google-io-2013-demo-android-studio-cloud-endpoints-synchronized-stopwatch-demo/ | |
http://android-developers.blogspot.com.br/2013/06/adding-backend-to-your-app-in-android.html | |
https://code.google.com/p/gcm/ | |
https://github.com/bradabrams/stopwatchio13 | |
https://developers.google.com/appengine/docs/java/endpoints/getstarted/backend/configure_pom | |
http://developer.android.com/google/gcm/index.html | |
https://developers.google.com/events/io/sessions/324893448 | |
Android Studio 0.3.5 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="primary">#673AB7</color> | |
<color name="primary_dark">#512DA8</color> | |
<color name="primary_light">#D1C4E9</color> | |
<color name="accent">#FF4081</color> | |
<color name="text_primary">#FFFFFF</color> | |
<color name="text_secondary">#727272</color> | |
<color name="icons">#FFFFFF</color> |
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
@implementation UIApplication (AppVersion) | |
+ (NSString *) appVersion | |
{ | |
return [[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleShortVersionString"]; | |
} | |
+ (NSString *) build | |
{ | |
return [[NSBundle mainBundle] objectForInfoDictionaryKey: (NSString *)kCFBundleVersionKey]; |
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
struct Position { | |
var x: Int = 0 | |
var y: Int = 0 | |
func string() -> String { | |
return "(\(x), \(y))" | |
} | |
} | |
// CustomStringConvertible provides "description" property. |
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
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.ParseError; | |
import com.android.volley.Request; | |
import com.android.volley.Response; | |
import com.android.volley.toolbox.HttpHeaderParser; | |
import com.google.gson.Gson; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonParser; |
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
included: | |
excluded: | |
- Pods | |
- Cartography | |
- build | |
disabled_rules: # rule identifiers to exclude from running | |
# - cyclomatic_complexity | |
- trailing_whitespace |
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
public class MLRoundedImageView extends ImageView { | |
public MLRoundedImageView(Context context) { | |
super(context); | |
} | |
public MLRoundedImageView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
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
#!/usr/bin/ruby | |
=begin | |
#### DIRECTIONS #### | |
Run `/usr/bin/ruby savings.rb <path to executable>`, and it will report the estimated savings for that executable. | |
*However*, the executable cannot have been downloaded from the app store (or else it will already be the encrypted version, and we can't unencrypt it to calculate the savings) | |
Also, it should be a binary for a specific architecture, and not a fat binary. I'd assume arm64 would be way to go. | |
How to get an arm64 binary that is not encrypted? | |
Run Product -> Archive in Xcode, then export the app Ad Hoc, and for the device to thin for, select a device with arm64 (an iPhone 5s or above) | |
Unzip the .ipa file that was exported, and Payload/<app name>.app/<app name> should be the executable that you want |
OlderNewer