Skip to content

Instantly share code, notes, and snippets.

View nachiketkanore's full-sized avatar
🖥️
Exploring Computer Science

Nachiket Kanore nachiketkanore

🖥️
Exploring Computer Science
View GitHub Profile
@clumsypuffin
clumsypuffin / yf_nsedata.py
Last active October 19, 2025 09:06
yahoo finance nse data downloader for daily,15 min , 5 mintimeframe
#yahoo finance nse data downloader for daily,15 min , 5 mintimeframe
#There is a time period restriction for 5 min, 15 min data from YF so it's recommended to run this weekly/Fortnightly
import os
import yfinance as yf
import pandas as pd
import requests
from datetime import datetime, timedelta
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active September 2, 2025 22:03
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@harish-r
harish-r / Binary Search Tree.cpp
Last active October 13, 2025 21:23
Binary Search Tree Implementation in C++
/*
** Binary Search Tree implementation in C++
** Harish R
*/
#include<iostream>
using namespace std;
class BST {
struct node {
/* Deleting a node from Binary search tree */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find minimum in a tree.
Node* FindMin(Node* root)
@mycodeschool
mycodeschool / Stack_ArrayImplementation_OOP.cpp
Created October 8, 2013 02:44
An object oriented implementation of stack using arrays in C++.
// Stack - Object oriented implementation using arrays
#include <iostream>
using namespace std;
#define MAX_SIZE 101
class Stack
{
private:
int A[MAX_SIZE]; // array to store the stack
int top; // variable to mark the top index of stack.
@jboner
jboner / latency.txt
Last active November 14, 2025 09:46
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD