Skip to content

Instantly share code, notes, and snippets.

View dpproduction's full-sized avatar
At work

Dmitriy P dpproduction

At work
View GitHub Profile
utkukutlu / AndroidNavigationComponentDialogFragment
Last active April 8, 2023 16:05
android navigation component add fragment instead of replace
View AndroidNavigationComponentDialogFragment
Android Navigation Component Dialog Fragment
vipulasri /
Created November 18, 2016 07:03
* Created by Vipul on 18/11/16.
public class Elements {
private int icon;
private String name;
public int getIcon() {
qinshulei /
Last active September 20, 2022 07:29
Convert Android VectorDrawable to png


  1. Convert Android VectorDrawable to SVG:


cp path/to/xml_dir
java Vector2Svg ./*.xml
mkdir svg_dir
amitchhajer / Count Code lines
Created January 5, 2013 11:08
Count number of code lines in git repository per user
View Count Code lines
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n