Skip to content

Instantly share code, notes, and snippets.

View senthilsivanath's full-sized avatar

Senthil Sivanath senthilsivanath

View GitHub Profile
@senthilsivanath
senthilsivanath / Check.java
Last active December 1, 2021 12:20
JSON Schema Any Of and All Of De-serialization In Java
package ai.tfs.jwtverify;
public class Check {
public String path;
public String threshold;
}
{
"name": "Radical BNB",
"timestamp": "2021-06-03T13:19:02.995Z",
"version": {
"major": 2,
"minor": 11,
"patch": 0
},
"logoURI": "https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82/logo.png",
"keywords": [
{
"name": "Sent",
"logoURI": "https://umaproject.org/assets/images/UMA_square_red_logo_circle.png",
"keywords": ["HOKK"],
"timestamp": "2020-11-23T01:40:34.305Z",
"tokens": [
{
"chainId": 137,
"address":"0xc40af1e4fecfa05ce6bab79dcd8b373d2e436c4e",
"name": "HOKK",
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.authentication.UserDetailsRepositoryReactiveAuthenticationManager
import org.springframework.security.core.Authentication
import org.springframework.security.core.userdetails.ReactiveUserDetailsService
import org.springframework.security.web.server.authentication.AuthenticationWebFilter
import org.springframework.security.web.server.context.NoOpServerSecurityContextRepository
import org.springframework.security.web.server.util.matcher.NegatedServerWebExchangeMatcher
import org.springframework.security.web.server.util.matcher.ServerWebExchangeMatchers
import org.springframework.stereotype.Component
import reactor.core.publisher.Mono
{
"name": "Sent",
"logoURI": "https://umaproject.org/assets/images/UMA_square_red_logo_circle.png",
"keywords": ["BPOLIT","HOKK"],
"timestamp": "2020-11-23T01:40:34.305Z",
"tokens": [
{
"chainId": 1,
"address":"0x389999216860ab8e0175387a0c90e5c52522c945",
"name": "BFEG",

FREQUENTLY ASKED QUESTIONS

What safety measures have been implemented at your retail stores?

To protect our customers and employees, our stores will have

  1. Health guards at checkouts

  2. Increased cleaning and sanitization efforts

@senthilsivanath
senthilsivanath / LogoController.kt
Last active March 29, 2020 16:09
File upload in GCP and get expiry viewing link
package com.company.service.controllers
import com.google.cloud.storage.BlobInfo
import com.google.cloud.storage.Storage
import com.google.cloud.storage.StorageOptions
import kotlinx.coroutines.reactive.awaitFirstOrNull
import org.springframework.http.MediaType
import org.springframework.http.codec.multipart.FilePart
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestPart
using System;
using JSIL;
using JSIL.Meta;
public static class Program {
public static int x = 10;
public static int y = 20;
public static void Main () {
dynamic document = Builtins.Global["document"];
@senthilsivanath
senthilsivanath / ElasticSearchAutoComplete.json
Last active March 20, 2016 18:06
Elastic Search Analyser setup for auto complete search with fuziness
{
"settings": {
"analysis": {
"filter": {
"autocomplete_filter": {
"type": "edge_ngram",
"min_gram": 1,
"max_gram": 15
}