Skip to content

Instantly share code, notes, and snippets.

Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com
package com.javatarts.basketballgm.data;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
@WasimMemon
WasimMemon / ActivityA.java
Last active August 29, 2015 14:26
Stackoverflow answer, "Singleton in Android"
package com.example.testSingleton;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
public class ActivityA extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
////////////////////////////////////////////////////////////////
//This Code supports Alamofire 4.0+
////////////////////////////////////////////////////////////////
import UIKit
import Alamofire
////////////////////////////////////////////////////////////////
//MARK: Response Params
////////////////////////////////////////////////////////////////
@WasimMemon
WasimMemon / address_stats.dart
Created October 27, 2022 16:23
State dropdown using form builder
import 'dart:convert';
const String state_list_map = '{"states" : [{"id" : 1, "name": "Andaman and Nicobar Island"}, '
'{"id" : 2, "name": "Andhra Pradesh"},'
'{"id" : 3, "name": "Arunachal Pradesh"},'
'{"id" : 4, "name": "Assam"},'
'{"id" : 5, "name": "Bihar"},'
'{"id" : 6, "name": "Chandigarh"},'
'{"id" : 7, "name": "Chhattisgarh"},'
'{"id" : 8, "name": "Dadra and Nagar Haveli"},'