Skip to content

Instantly share code, notes, and snippets.

View slayerjain's full-sized avatar
🎯
Focusing

Shubham Jain slayerjain

🎯
Focusing
View GitHub Profile
// external.go
package external
import (
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
"time"
@slayerjain
slayerjain / main.go
Created August 3, 2022 13:06
keploy fasthttp sample server
package main
import (
"flag"
"fmt"
"log"
"github.com/keploy/go-sdk/integrations/kfasthttp"
"github.com/keploy/go-sdk/keploy"
"github.com/valyala/fasthttp"
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println(time.Now())
}
0x3fa94800b480e37ab92090f265bad340de617d0f
0xB1BF2c7B7Ac8223EA7940d3C9FAdbCbA500Da525

Keybase proof

I hereby claim:

  • I am slayerjain on github.
  • I am slayerjain (https://keybase.io/slayerjain) on keybase.
  • I have a public key whose fingerprint is 59E4 8F65 7601 1145 1ED7 DD56 FE35 B919 CBA5 BD78

To claim this, I am signing this object:

@slayerjain
slayerjain / Tsort.c
Last active September 19, 2015 15:59
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <stdint.h>
void Merge(int numArray[], int startingElement, int midElement, int endingElement) {
int lastOfFirstArray = midElement - startingElement ;
int lastOfSecondArray = endingElement - midElement - 1;
int *firstArray;
int *secondArray;
#include <iostream>
using namespace std;
int main() {
int t = 0;
scanf("%d", &t);
for (int k = 0; k < t; k++) {
long amount_of_water = 0;
@slayerjain
slayerjain / doubt.py
Created September 12, 2015 11:34
The add on line 13 should work and set b as b +n in expint' scope
def add(b,n):
"""it gives the sum """
b = b+n
def expint(b,n):
"""It gives you the value of
b multiples n times """
if(n==0):
b=1
else: