Skip to content

Instantly share code, notes, and snippets.

@prolongservices
prolongservices / 00 Indian RTO Vehicle registration in Python,PHP and Java ,Android.md
Created January 20, 2020 01:17
Get vehicle info from an Indian registration number

PYTHON

Programmatically extract owner info from Indian registration numbers

Usage

$ python owner.py MH02CL 0555
Registration No:
MH02CL0555
import android.content.Context;
import android.os.Build;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
/**
* Created by pawneshwer on 23-Dec-16.
*/
public interface CacheUtils {
//cache manager file names
String POPULAR = "popular.json";
String LATEST = "latest.json";
String TOP_WATCHED = "top_watched.json";
String SEARCH = "search.json";
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.view.View;
import com.edablogs.tubelite.R;
import com.edablogs.tubelite.adapter.RecyclerAdapter;
import com.edablogs.tubelite.api.APIService;
import com.edablogs.tubelite.api.YoutubeApi;
import com.edablogs.tubelite.model.youtube.Item;
import com.edablogs.tubelite.model.youtube.ItemLatest;
public static boolean isConnectionAvailable(Context context) {
ConnectivityManager connectivityManager = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
if (connectivityManager != null) {
NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo();
if (netInfo != null && netInfo.isConnected()
&& netInfo.isConnectedOrConnecting()
&& netInfo.isAvailable()) {
return true;
package com.edablogs.tubelite.model.youtube;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class ItemLatest {
@SerializedName("kind")
@Expose
private String kind;
package com.edablogs.tubelite.api;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import static com.edablogs.tubelite.utils.Constants.BASE_URL;
import static com.edablogs.tubelite.utils.Constants.GIT_BASE_URL;
/**
* Created by pawneshwer on 11/11/16.
package com.edablogs.tubelite.api;
import com.edablogs.tubelite.model.update.UpdateModel;
import com.edablogs.tubelite.model.youtube.ChannelModel;
import com.edablogs.tubelite.model.youtube.LatestModel;
import com.edablogs.tubelite.model.youtube.YoutubeResponse;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>404 HTML Tempalte by Prolong Services</title>
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
}