Skip to content

Instantly share code, notes, and snippets.

View rndD's full-sized avatar
🌽

Alexey Kalmakov rndD

🌽
View GitHub Profile
@rndD
rndD / sendgrid-webhook-events.type.ts
Last active October 20, 2024 15:23
Sendgrid webhook events ts type
// @see https://docs.sendgrid.com/for-developers/tracking-events/event
// There is a mistake in the offical doc. Category is array of strings. I took it from the real webhook call.
type BaseSendgridEvent = {
email: string;
timestamp: number;
'smtp-id': string;
category: string | string[];
sg_event_id: string;
sg_message_id: string;
@rndD
rndD / isMonotonic.go
Created September 29, 2023 21:49
some leetcode problem, just to share in chat
func isMonotonic(nums []int) bool {
direction := 0
if len(nums) == 1 {
return true
}
for i := 0; i < len(nums); i++ {
@rndD
rndD / makefile-help.sh
Created February 21, 2024 11:44
makefile help
#!/bin/bash
# This script displays help information for the Makefile.
# Usage: ./makefile-help.sh Makefile
# Based on https://medium.com/@vildmedpap/make-your-makefile-user-friendly-create-a-custom-make-help-target-88c9ef130879
# Set colors for output
color_off='\033[0m'
example_color='\033[32m'
target_color='\033[36m'