Skip to content

Instantly share code, notes, and snippets.

View tahniat-ashraf's full-sized avatar
🇧🇩

Tahniat Ashraf tahniat-ashraf

🇧🇩
  • Berlin, Germany
View GitHub Profile
@tahniat-ashraf
tahniat-ashraf / reactor_operator_sample.java
Last active February 19, 2024 14:12
Spring Webflux Reactor Operator Sample Usage
@SpringBootTest
public class ReactorTest {
private Student messi = Student.builder().age(21).fName("Lionel").lName("Messi").id(1).registered(true).lastPaidInYear("2021").build();
private Student ronaldo = Student.builder().age(23).fName("Cristiano").lName("Ronaldo").registered(false).id(2).build();
private Student buffon = Student.builder().age(31).fName("Gigi").lName("Buffon").id(3).registered(false).build();
private Student zlatan = Student.builder().age(29).fName("Zlatan").lName("Ibrahimovic").id(4).registered(true).lastPaidInYear("2020").build();
private Student mbappe = Student.builder().age(19).fName("Kylian").lName("Mbappe").id(5).registered(true).lastPaidInYear("2019").build();
private Student pedri = Student.builder().age(16).fName("Pedri").lName("Gonzalez").id(6).registered(true).lastPaidInYear("2021").build();

Data Set

    private List<Wizards> getWizards(){
        return List.of(
                new Wizards("Gryfindor","phoenix feather core","Half Blood","Male","Harry Potter"),
                new Wizards("Gryfindor","unicorn hair core","Pure Blood","Male","Ronald Wisely"),
                new Wizards("Gryfindor","dragon heart string core","Mud Blood","Female","Hermione Granger"),
                new Wizards("Slytherin","unicorn hair core","Pure Blood","Male","Draco Malfoy"),
                new Wizards("Ravenclaw","unicorn hair core","Pure Blood","Male","Cedric Diggory")
@tahniat-ashraf
tahniat-ashraf / docker-help.md
Created August 21, 2019 08:01 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@tahniat-ashraf
tahniat-ashraf / java-stream-examples.md
Last active April 18, 2023 21:32
Java Stream Api Examples

Data Set

    private List<Footballer> getFootballers() {
        return List.of(
                new Footballer("Messi", 32, Gender.MALE, List.of("CF","CAM", "RF")),
                new Footballer("Griezmann", 28, Gender.MALE, List.of("CF", "CAM", "LF")),
                new Footballer("Arthur", 23, Gender.MALE, List.of("CM", "CAM")),
                new Footballer("Ter Stegen", 27, Gender.MALE, List.of("GK")),
                new Footballer("Puig", 20, Gender.MALE, List.of("CM", "CDM")),
 new Footballer("Jennifer", 29, Gender.FEMALE, List.of("CF", "CAM")),
@tahniat-ashraf
tahniat-ashraf / git-rebase.markdown
Created August 15, 2019 21:17 — forked from lgmkr/git-rebase.markdown
Git rebase workflow

Checkout a new working branch

 git checkout -b <branchname>

Make Changes

 git add
 git commit -m "description of changes"

Sync with remote

@tahniat-ashraf
tahniat-ashraf / .git-commit-template.txt
Last active August 20, 2019 11:28 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Example: MRV-13: Introduce the widget to handle image creation
# (Optional) Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# (Optional) Provide links or keys to any relevant tickets, articles or other resources
# Example: closes MRV-22