Skip to content

Instantly share code, notes, and snippets.

View anupamgogoi0907's full-sized avatar

Anupam Gogoi anupamgogoi0907

View GitHub Profile
@anupamgogoi0907
anupamgogoi0907 / App.java
Created February 19, 2023 13:55
JWT Validation
package com.utility;
import com.nimbusds.jose.JWSAlgorithm;
import com.nimbusds.jose.jwk.source.JWKSource;
import com.nimbusds.jose.jwk.source.RemoteJWKSet;
import com.nimbusds.jose.proc.JWSKeySelector;
import com.nimbusds.jose.proc.JWSVerificationKeySelector;
import com.nimbusds.jose.proc.SecurityContext;
import com.nimbusds.jwt.JWTClaimsSet;
import com.nimbusds.jwt.proc.ConfigurableJWTProcessor;
package main
import (
"fmt"
"math/rand"
"sync"
"sync/atomic"
)
func main() {
package main
import (
"context"
"fmt"
"sync"
)
func main() {
InitComplexContext()
@anupamgogoi0907
anupamgogoi0907 / Multiple-workers.go
Created February 4, 2022 21:43
Multiple-workers.go
package test
import (
"fmt"
"math/rand"
"sync"
"sync/atomic"
"testing"
)
@anupamgogoi0907
anupamgogoi0907 / go
Created January 5, 2022 15:03
go_worker_pool_1
package main
import (
"fmt"
"sync"
"time"
)
var jobs = make(chan int, 5)
var results = make(chan int)