This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Open a terminal window and cd into a folder under the repository. Then: | |
| git fsck | awk '{print $3}' > tmp.txt | |
| cat tmp.txt | xargs git show > tmp2.txt | |
| Now open tmp2.txt in editor, locate your lost code, and find the commit-id on top of it. Then apply the code: | |
| git stash apply <commit id> | |
| rm tmp.txt tmp2.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Usage : | |
| // recyclerView.setLayoutManager(new SmoothScrollingLayoutManager(getContext())); | |
| // recyclerView.smoothScrollToPosition(0); | |
| // | |
| // | |
| // SmoothScrollingLayoutManager | |
| // Makersphere | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Created by Ben on 28/09/2016. | |
| // Copyright (c) 2016 SHAPE A/S. All rights reserved. | |
| // | |
| public class PaddingItemDecoration extends RecyclerView.ItemDecoration { | |
| private final Context _context; | |
| private Resources _resources; | |
| private Paint _paint = new Paint(Paint.ANTI_ALIAS_FLAG); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CenteredTitleToolbar | |
| // | |
| // Created by Ben De La Haye on 25/05/2016. | |
| // | |
| public class CenteredTitleToolbar extends Toolbar { | |
| private TextView _titleTextView; | |
| private int _screenWidth; | |
| private boolean _centerTitle = true; |
NewerOlder