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
package com.geoloqi.android.sdk.util; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* A simple class for timing short lived events. | |
* | |
* @author Tristan Waddington | |
*/ | |
public class Timer { |
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
/* | |
* TypefaceTextView.java | |
* Simple | |
* | |
* Copyright 2012 Simple Finance Corporation (https://www.simple.com) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
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
/** | |
* <p>This method checks an HttpResponse for a Content-Range | |
* header and, if present, attempts to parse the instance-length | |
* from the header value.</p> | |
* <p>{@link http://tools.ietf.org/html/rfc2616#section-14.16}</p> | |
* | |
* @param response | |
* @return the total number of bytes for the instance, or a negative number if unknown. | |
*/ | |
public static long getInstanceLength(HttpResponse response) { |
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
// Load release signing info from keystore.properties | |
def keystoreProps = new Properties() | |
keystoreProps.load(new FileInputStream(rootProject.file('keystore.properties'))) | |
keystoreProps.each { prop -> | |
if (!project.hasProperty(prop.key)) { | |
project.ext.set(prop.key, prop.value) | |
} | |
} | |
android { |
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
// Load release signing info from keystore.properties | |
def keystoreProps = new Properties() | |
keystoreProps.load(new FileInputStream( | |
rootProject.file('keystore.properties'))) | |
keystoreProps.each { prop -> | |
if (!project.hasProperty(prop.key)) { | |
project.ext.set(prop.key, prop.value) | |
} | |
} |
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
1977 - A New Hope | |
1978 - Dawn of the Dead | |
1979 - Alien | |
1980 - The Empire Strikes Back | |
1981 - Escape from New York | |
1982 - Blade Runner | |
The Thing | |
1983 - Return of the Jedi | |
1984 - Ghostbusters | |
The Terminator |
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/python | |
import sys | |
import os | |
import time | |
from datetime import datetime | |
def modtime(path): | |
print path |
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
try { | |
ActivityInfo activityInfo = getPackageManager().getActivityInfo(getComponentName(), 0); | |
setTitle(activityInfo.labelRes); | |
} catch (NameNotFoundException e) { | |
SFLog.w(String.format("%s is not a valid Activity", getComponentName())); | |
} |