Skip to content

Instantly share code, notes, and snippets.

@vishal-wadhwa
vishal-wadhwa / README.md
Last active September 18, 2022 16:42
newrelic-python-agent aioredis bug

Steps to repro

  1. Create two environments - one for the old and one for the new version using the requirements file.
  2. Run commands as specified in the following sections.

NewRelic 7.4 (without aioredis integration)

[0] % python main.py
redis txn sync -  [True, True, True, True, True, True, True, True, True, True]
redis txn async -  [True, True, True, True, True, True, True, True, True, True]
@vishal-wadhwa
vishal-wadhwa / .air.toml
Last active July 24, 2021 16:57
No re-build issue cosmtrek/air
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
bin = "./tmp/main"
cmd = "go build -o ./tmp/main ."
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
@vishal-wadhwa
vishal-wadhwa / cohen_sutherland.c
Last active November 11, 2023 23:31
Cohen Sutherland Line Clipping Algorithm in OpenGL (C language).
//
// Created by vishal on 10/31/17.
//
#include <GL/glut.h>
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
typedef struct {
@vishal-wadhwa
vishal-wadhwa / translate_rotate_scale.c
Last active April 29, 2024 16:55
OpenGL code to rotate, translate and scale a rectangle using basic matrix transforms, written in C.
//
// Created by vishal on 11/1/17.
//
#include <GL/glut.h>
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
typedef struct {