Skip to content

Instantly share code, notes, and snippets.

View suratpyari's full-sized avatar

Surat Pyari suratpyari

View GitHub Profile
@suratpyari
suratpyari / find permissions
Created February 10, 2023 12:10
find consolidated permissions
# # There are many users, many roles, and many modules in a system
# # - 1 User can have multipple roles
# # - 1 role can have permission to multiple module
# # The task is to simplify the data of user and roles into single JSON object
# # explanation :
# let roles = [
# {
# name: 'access-manager',

Keybase proof

I hereby claim:

  • I am suratpyari on github.
  • I am suratp (https://keybase.io/suratp) on keybase.
  • I have a public key ASByO5-QmCjKJdlnlPyqVKkihkP8rik1H9YzXrVXMPFfBgo

To claim this, I am signing this object:

@suratpyari
suratpyari / keybase.md
Created July 13, 2018 11:40
authorise keybase

Keybase proof

I hereby claim:

  • I am suratpyari on github.
  • I am suratpyari (https://keybase.io/suratpyari) on keybase.
  • I have a public key ASBDoQUAgbhqgLSachEHafPVv3D7iajkJHrvJrDFJhYQSgo

To claim this, I am signing this object: