This file contains hidden or 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
from timeit import default_timer as timer | |
start = timer() | |
# long operation here | |
duration = timer() - start | |
print "Duration", duration |
This file contains hidden or 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 final class AndroidContext { | |
private static Context context; | |
public static Context getContext() { | |
return context; | |
} | |
public static void setContext(Context context) { | |
AndroidContext.context = context; |
This file contains hidden or 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
.loading { | |
background: url(https://a-v2.sndcdn.com/assets/images/loader-db80c5.gif) no-repeat center center; | |
clear: both; | |
text-align: center; | |
height: 40px; | |
width: 100%; | |
} |
NewerOlder