See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| public class SomeFragment extends Fragment { | |
| MapView mapView; | |
| GoogleMap map; | |
| @Override | |
| public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
| View v = inflater.inflate(R.layout.some_layout, container, false); | |
| //getting locaton | |
| //1. MyLocations Project Settings | |
| //use tab bar controller | |
| //import CoreLocation.framework | |
| //CurrentLocationViewController.h | |
| #import <CoreLocation/CoreLocation.h> |
| public static Bitmap getCircledBitmap(Bitmap bitmap) { | |
| Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888); | |
| Canvas canvas = new Canvas(output); | |
| final Paint paint = new Paint(); | |
| final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()); | |
| paint.setAntiAlias(true); | |
| canvas.drawARGB(0, 0, 0, 0); | |
| canvas.drawCircle(bitmap.getWidth() / 2, bitmap.getHeight() / 2, bitmap.getWidth() / 2, paint); | |
| paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)); |
| // Linked List CPP | |
| #include<iostream> | |
| using namespace std; | |
| class Node | |
| { | |
| public: | |
| int data; | |
| Node *next; |
| package com.pascalwelsch.extensions | |
| import android.app.Activity | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.os.Build | |
| import android.os.Bundle | |
| /** | |
| * Extensions for simpler launching of Activities |
Quick guide on how to setup git signing. Information is aggregated from following sources:
| /** | |
| * Wrapper class for handling Location related methods | |
| */ | |
| class HuaweiLocationManager constructor(private val context : Context) { | |
| //region vars | |
| private val mFusedLocationProviderClient: FusedLocationProviderClient by lazy { | |
| LocationServices.getFusedLocationProviderClient(context) | |
| } |