A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
/** | |
* Our demo fragment | |
*/ | |
public static class CircularRevealingFragment extends Fragment { | |
OnFragmentTouched listener; | |
public CircularRevealingFragment() { | |
} |
-- phpMyAdmin SQL Dump | |
-- version 3.5.2.2 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Apr 08, 2013 at 02:48 PM | |
-- Server version: 5.5.27 | |
-- PHP Version: 5.4.7 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
url 'https://oss.sonatype.org/content/repositories/snapshots/' | |
} | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.+' | |
classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT' |
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.Request; | |
import com.android.volley.Response; | |
import com.android.volley.VolleyLog; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.entity.mime.MultipartEntityBuilder; | |
import org.apache.http.entity.mime.content.FileBody; |
/** | |
* Check if the application is in the foreground or background. | |
* * | |
* Register this callbacks for an application | |
* Application application = (Application) context.getApplicationContext(); | |
* application.registerActivityLifecycleCallbacks(new BaseLifeCycleCallbacks()); | |
* * | |
* Note: These callbacks can be registered at any level of the application lifecycle. | |
* Previous methods to get the application lifecycle forced the lifecycle callbacks to be registered | |
* at the start of the application in a dedicated Application class. |
#Simplest way to create the Blur Bitmap in android | |
private Bitmap createScreenShot(View view, int scaledViewWidth, int scaledViewHeight) { | |
Bitmap localBitmap = Bitmap.createBitmap(scaledViewWidth, | |
scaledViewHeight, | |
Bitmap.Config.ARGB_8888); | |
Canvas localCanvas = prepareCanvas(localBitmap, view.getContext()); | |
view.draw(localCanvas); | |
return localBitmap; | |
} |
[ | |
{ | |
"name":"अहमदनगर", | |
"tahasil" : [ "अकोले", "जामखेड", "कर्जत", "कोपरगाव", "नगर", "नेवासा", "पारनेर", "पाथर्डी", "राहाता", "राहुरी", "संगमनेर", "शेवगांव", "श्रीगोंदा", "श्रीरामपूर" ] | |
}, | |
{ | |
"name":"अकोला", |
[ | |
{ | |
"name":"Ahmednagar", | |
"tahasil" : [ "Akola", "Jamkhed", "Karjat", "Kopargaon", "Nagar", "Nevasa", "Parner", "Pathardi", "Rahta", "Rahuri", "Sangamner", "Shevgaon", "Shrigonda", "Shrirampur" ] | |
}, | |
{ | |
"name":"Akola", | |
"tahasil":[ "Akola", "Akot", "Balapur", "Barshitakli", "Murtijapur", "Patur", "Telhara" ] |