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
/** | |
* configures the code driving the build. | |
* In this case, this declares that it uses the Maven Central repository, | |
* and that there is a classpath dependency on a Maven artifact. | |
* Note: This only affects the code running the build, not the project. | |
* The project itself needs to declare its own repositories and dependencies. This will be covered later. | |
*/ | |
buildscript { | |
repositories { | |
mavenCentral() |
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
# _*_ coding: utf-8 _*_ | |
import sys | |
reload(sys) | |
sys.setdefaultencoding("utf8") | |
from gevent import monkey | |
monkey.patch_all() | |
import requests | |
import redis | |
import gevent | |
from gevent.pool import Pool |
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 Photo extends Activity implements View.OnClickListener{ | |
private ImageView ivImage ; | |
private Button btnSet; | |
private ImageButton ibSelect; | |
private Bitmap bitmap; | |
private Intent i; | |
final static int cameraData = 0; | |
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"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- Use this color for listview background or your layout #e5e5e5 --> | |
<item> | |
<shape android:shape="rectangle" | |
android:dither="true"> | |
<corners android:radius="2dp"/> | |
<solid android:color="#ccc" /> |