Skip to content

Instantly share code, notes, and snippets.

View penkzhou's full-sized avatar
🎯
Focusing

Old Autumn penkzhou

🎯
Focusing
  • China
View GitHub Profile
/**
* 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()
@penkzhou
penkzhou / crawl.py
Created June 5, 2014 03:05
My web crawl
# _*_ 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
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;
<?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" />