Skip to content

Instantly share code, notes, and snippets.

View praslnx8's full-sized avatar
🎯
Focusing

Prasanna praslnx8

🎯
Focusing
View GitHub Profile
import * as t from 'io-ts/lib/index';
import { pipe } from 'fp-ts/function';
import { fold, left } from 'fp-ts/lib/Either';
import { PathReporter } from 'io-ts/lib/PathReporter';
import { Observable, throwError, of, pipe as rxjs_pipe, UnaryFunction } from 'rxjs';
import { switchMap, catchError } from 'rxjs/operators';
import { HttpError } from '../codecs/http-error';
/* istanbul ignore next */
export class DecodeError extends Error {
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Base64;
import android.util.Log;
import java.security.KeyPair;
import java.security.SecureRandom;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
package com.prasilabs.ffloc.services.location;
import android.Manifest;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
This is useful command suppose if u missed file now u want to track the commits where the file was modified
git log --follow -p -- file
in my case
git log --follow -p -- public/assets/images/photos/userprofile.png
@praslnx8
praslnx8 / InclinedVIew.java
Created June 7, 2017 13:43
inclined view
/*
* @category Daimler
* @copyright Copyright (C) 2017 Contus. All rights reserved.
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
package daimler.com.loadcarrier.uiux;
import android.content.Context;
import android.content.res.TypedArray;
@praslnx8
praslnx8 / AnimatedDialogAnimatorListener.java
Created June 7, 2017 13:41
List of animated android components
/*
* @category Daimler
* @copyright Copyright (C) 2017 Contus. All rights reserved.
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
package daimler.com.loadcarrier.uiux;
import android.animation.Animator;