This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func isMonotonic(nums []int) bool { | |
direction := 0 | |
if len(nums) == 1 { | |
return true | |
} | |
for i := 0; i < len(nums); i++ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
OlderNewer