Skip to content

Instantly share code, notes, and snippets.

View The-LoneWolf's full-sized avatar
🏠
Working from home

Mehrdad Garebaghi The-LoneWolf

🏠
Working from home
View GitHub Profile
@The-LoneWolf
The-LoneWolf / MainActivity.java
Created October 7, 2019 12:49
numeric formatted edittext with custom postfix string
package ir.technopedia.iottest;
import android.icu.text.DecimalFormat;
import android.icu.text.NumberFormat;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
<?php
public function push($user_id, $message)
{
define('API_ACCESS_KEY', '');
define('SENDER_ID', '');
$headers = array
(
'Authorization: key=' . API_ACCESS_KEY,
public String multipleRequest() {
String resultString = null;
String SOAP_ACTION = "http://tempuri.org/Ins_DriverLocationlist";
String METHOD_NAME = "Ins_DriverLocationlist";
String NAMESPACE = "http://tempuri.org/";
String URL = NetUtil.url + "GoSafe.asmx";
try {
SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapObject Objects = new SoapObject(NAMESPACE, "Objects");

Keybase proof

I hereby claim:

  • I am the-lonewolf on github.
  • I am thelonewold (https://keybase.io/thelonewold) on keybase.
  • I have a public key ASCXa9I2YBbgJ0ebhOQjI4TnLuRcXion_BcJRWrlx2mjNwo

To claim this, I am signing this object:

@The-LoneWolf
The-LoneWolf / colors.xml
Created January 16, 2017 14:47
Android Material Design Colors
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">@color/md_blue_500</color>
<color name="colorPrimaryDark">@color/md_blue_700</color>
<color name="colorPrimaryDeepDark">@color/md_blue_900</color>
<color name="colorAccent">@color/md_red_500</color>
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@The-LoneWolf
The-LoneWolf / ImageSaveTask.Java
Created January 10, 2017 16:43
Piccasso with Image Caching
package ir.technopedia.tbzmed.helper;
import android.graphics.Bitmap;
import android.os.AsyncTask;
/**
* Created by user1 on 12/16/2016.
*/
public class ImageSaveTask extends AsyncTask<Bitmap, Void, Void> {
package ir.technopedia.gsm.helper;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by TheLoneWolf on 4/7/2016.