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
def getSdkDir() { | |
Properties local = new Properties() | |
local.load(new FileInputStream("${rootDir}/local.properties")) | |
return local.getProperty('sdk.dir') | |
} |
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
task wrapper(type: Wrapper) { | |
gradleVersion = '1.8' | |
} | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { |
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
interface UserRelations { | |
@Relation(Score.class) | |
void getScores(QueryListener<Score> listener); | |
} | |
@Table(name="users") | |
public abstract static class User implements Entity, UserRelations { | |
public User() {} |
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
Mapped classes are abstract where abstract annotated | |
getters that take a Query/Fetch lisener. Object will be proxied, if | |
an abstract getter is invoked, fetch and call listener. | |
abstract class Score implements Entity { | |
@Column(primaryKey=true) | |
Private int id; | |
private date; | |
private int score; |
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
@Table("users") | |
public class User implements Entity { | |
private int id; | |
@Column("user_name") | |
private String userName; | |
} | |
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
#!/bin/sh | |
adb -d shell 'run-as org.quuux.eyecandy cat /data/data/org.quuux.eyecandy/databases/eyecandy.db > /sdcard/eyecandy.db' | |
adb pull /sdcard/eyecandy.db | |
adb -d shell 'rm /sdcard/eyecandy.db' |
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 class Log { | |
private final String mTag; | |
private static String sPrefix; | |
public static void setsPrefix(final String prefix) { | |
sPrefix = prefix; | |
} |
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
var ModalView = Backbone.View.extend({ | |
el: '#modal', | |
events: { | |
'click a.close': 'onClose', | |
'click a.submit': 'onSubmit', | |
'shown': 'onShown' | |
}, | |
onClose: function() { |
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
class PausableThread extends Thread { | |
private boolean running, paused; | |
private static final int FPS = 30; | |
public PausableThread() { | |
super(); | |
pauseRunning(); | |
} | |
@Override |
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
Capture Sizes | |
3264 x 2448 (7.99 MP) = 1.333333 | |
3264 x 2176 (7.10 MP) = 1.500000 | |
3264 x 1836 (5.99 MP) = 1.777778 | |
2592 x 1944 (5.04 MP) = 1.333333 | |
2048 x 1536 (3.15 MP) = 1.333333 | |
1920 x 1080 (2.07 MP) = 1.777778 | |
1600 x 1200 (1.92 MP) = 1.333333 | |
1280 x 960 (1.23 MP) = 1.333333 | |
1280 x 720 (0.92 MP) = 1.777778 |