Skip to content

Instantly share code, notes, and snippets.

View TechAtikiN's full-sized avatar

Nikita Khabya TechAtikiN

View GitHub Profile
// Simple Todo API written in Go: Provides REST endpoints for managing todo items
// Endpoints:
// GET /todos - Get all todos
// POST /todos - Create a new todo
// GET /todos/:id - Get a specific todo
// PUT /todos/:id - Update a specific todo
// DELETE /todos/:id - Delete a specific todo
package main
@TechAtikiN
TechAtikiN / iterative.go
Created July 19, 2025 04:17
Binary search in Golang
package main
import "fmt"
func binarySearchIterative(nums []int, target int) int {
start := 0
end := len(nums) - 1
for start <= end {
mid := start + (end-start)/2
@TechAtikiN
TechAtikiN / main.go
Last active July 18, 2025 14:30
Structured Logging with slog in golang
package main
import (
"fmt"
"io"
"log/slog"
"math/rand"
"os"
)
@TechAtikiN
TechAtikiN / main.py
Created April 30, 2024 13:12
A brief overview on Pandas in Python
"""
Pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool,
built on top of the Python programming language.
"""
import numpy as np
import pandas as pd
# Create a DataFrame
df = pd.read_csv('cars.csv')