What #book every #programmer should read? Now we have an answer http://t.co/YB4ghxxPGV and there are these books too http://t.co/rNlIkbKmam
— Yauheni Haiduchonak (@haid_en) April 8, 2015
среда, 8 апреля 2015 г.
What book every programmer should read?
понедельник, 6 апреля 2015 г.
Rebase a branch in git
How to rebase a branch in git?
You can rebase the other branch on top of the base branch by running
git rebase baseb_ranch_name feature_branch_name
More about rebasing http://git-scm.com/book/ch3-6.html
You can rebase the other branch on top of the base branch by running
git rebase baseb_ranch_name feature_branch_name
More about rebasing http://git-scm.com/book/ch3-6.html
Reset last commit in git without losing its changes
How to reset the last commit in git without losing its changes?
git reset --soft HEAD^
This resets the head to previous commit and leaves all your changed files staged.
Link to documentation http://git-scm.com/docs/git-reset
git reset --soft HEAD^
This resets the head to previous commit and leaves all your changed files staged.
Link to documentation http://git-scm.com/docs/git-reset
воскресенье, 5 апреля 2015 г.
All values of enum in Java
How to get all enum values in Java?
YourEnumClass[] yourEnums = YourEnumClass.values();
YourEnumClass[] yourEnums = YourEnumClass.values();
Enum instance name in Java
How to get instance's name of Enum in Java?
String name = YourEnumClass.INSTANCE1.name();
YourEnumClass instance = YourEnumClass.valueOf(name);
Link to documentation http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html#name()
String name = YourEnumClass.INSTANCE1.name();
YourEnumClass instance = YourEnumClass.valueOf(name);
Link to documentation http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html#name()
Подписаться на:
Комментарии (Atom)