Skip to content

Instantly share code, notes, and snippets.

View Saber-Bjeoui's full-sized avatar

Saber Bjeoui Saber-Bjeoui

View GitHub Profile
@Saber-Bjeoui
Saber-Bjeoui / KeycloakAdminClientExample.java
Created December 20, 2023 15:06 — forked from thomasdarimont/KeycloakAdminClientExample.java
Using Keycloak Admin Client to create user with roles (Realm and Client level)
package demo.plain;
import org.keycloak.OAuth2Constants;
import org.keycloak.admin.client.CreatedResponseUtil;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.admin.client.KeycloakBuilder;
import org.keycloak.admin.client.resource.RealmResource;
import org.keycloak.admin.client.resource.UserResource;
import org.keycloak.admin.client.resource.UsersResource;
import org.keycloak.representations.idm.ClientRepresentation;
@Saber-Bjeoui
Saber-Bjeoui / README-Template.md
Created October 22, 2020 09:30 — forked from glnds/README-Template.md
A template to make good README.md

Project Name

Project description: A good description is clear, short, and to the point. Describe the importance of your project, and what it does.

(Table of Contents)

Optionally, include a table of contents in order to allow other people to quickly navigate especially long or detailed READMEs.

Getting Started

Prerequisites

What things you need to install before you can statrt installing the software itself.

@Saber-Bjeoui
Saber-Bjeoui / modern_js.md
Created August 22, 2020 10:33 — forked from gaearon/modern_js.md
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav