Skip to content

Instantly share code, notes, and snippets.

View abhi40308's full-sized avatar

Abhijeet Singh Khangarot abhi40308

View GitHub Profile
import asyncio
import statistics
import random
import time
from typing import List, Dict
import httpx
from tenacity import retry, stop_after_attempt, wait_exponential
@retry(
stop=stop_after_attempt(3),
@abhi40308
abhi40308 / test_webhook_transform.json
Created December 23, 2021 06:55
`test_webhook_transform` api call on event triggers
{
"type": "test_webhook_transform",
"args": {
"webhook_url": "http://test.com",
"body": {
"event": {
"op": "UPDATE",
"data": {
"old": {
"id": 11
# will be ignored by the allow-list
type Starship {
id: ID!
name: String!
length(unit: LengthUnit = METER): Float
}
# will be ignored by the allow-list
scalar parsec
- name: test
definition:
url: https://1fyli.sse.codesandbox.io/
timeout_seconds: 60
permissions:
- role: test
definition:
schema: |-
schema { query: Query }
type Query { launches: [Launch]! }
- name: test
definition:
url: https://1fyli.sse.codesandbox.io/
timeout_seconds: 60
- name: test
definition:
url: https://1fyli.sse.codesandbox.io/
timeout_seconds: 60
permissions:
- role: test
definition:
schema: |-
schema {
query: Query
@abhi40308
abhi40308 / remote_schemas.yaml
Created June 16, 2021 09:34
remote schemas hasura
- name: test
definition:
url: https://1fyli.sse.codesandbox.io/
timeout_seconds: 60
permissions:
- role: aa
definition:
schema: |-
schema { query: Query }
type Query { launches: [Launch]! }
@abhi40308
abhi40308 / GSoC-2020-final-report.md
Last active September 2, 2020 21:51
GSoC 2020 final submission report, work done and future scope for project

Google Summer Of Code 2020 Report

Organisation: Mifos Initiative (OpenMf)

Project-Name: Digital-Bank UI for staff on Fineract CN

Student: Abhijeet Singh Khangarot

Mentors: Giorgio Zoppi, Pranjal Goswami and Gaurav Saini

Project Description :

Apache Fineract CN is an Application Framework for Digital Financial Services. It is a system to support nationwide financial transactions and to support the creation of an inclusive, interconnected digital economy for every nation in the world.

@abhi40308
abhi40308 / master-javascript-interview.md
Created December 19, 2019 08:31 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series
@abhi40308
abhi40308 / post.js
Last active September 26, 2019 20:25
custom error pages
const [upvotePost, { error, loading, data }] = useMutation(UPVOTE_POST, {
variables: { postId: props.post.id, userId: loggedUserId },
refetchQueries: [{ query: POSTS_LIST }]
});
if (error) {
error.graphQLErrors.map(error => {
console.log(error);
if (error.extensions.code === "constraint-violation")
toast(`${error.message}`);