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
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
vipulasri / Elements.java
Created November 18, 2016 07:03
RecyclerView-Grid-with-Load-More
View Elements.java
/**
* Created by Vipul on 18/11/16.
*/
public class Elements {
private int icon;
private String name;
public int getIcon() {
@qinshulei
qinshulei / ConvertAndroidVectorDrawable2png.md
Last active September 20, 2022 07:29
Convert Android VectorDrawable to png
View ConvertAndroidVectorDrawable2png.md

转换方法:

  1. Convert Android VectorDrawable to SVG:

使用附件中的java程序。命令如下:

cp Vector2Svg.java path/to/xml_dir
javac Vector2Svg.java
java Vector2Svg ./*.xml
mkdir svg_dir
@amitchhajer
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