Skip to content

Instantly share code, notes, and snippets.

View pavi2410's full-sized avatar
:octocat:
Githubbing

Pavitra Golchha pavi2410

:octocat:
Githubbing
View GitHub Profile

A Quick Guide to Big-O Notation, Memoization, Tabulation, and Sorting Algorithms by Example

Curating Complexity: A Guide to Big-O Notation


A Quick Guide to Big-O Notation, Memoization, Tabulation, and Sorting Algorithms by Example

Curating Complexity: A Guide to Big-O Notation

@rbento
rbento / notes-on-computer-networks.md
Last active March 11, 2022 03:34
My notes on computer networks

Computer Networking

High-level descriptions of computer network topics.

Networking Protocols

ARP (Address Resolution Protocol)


@pavi2410
pavi2410 / Data Structures in C
Last active August 25, 2021 09:16
Implementation of data structures in C
## Singly Linked List
- new node
- size
- insert at beginning
- insert at end
- insert at position
- delete at beginning
- delete at end
- delete at position
- print list
@sindresorhus
sindresorhus / esm-package.md
Last active May 4, 2024 15:48
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@kevlawz
kevlawz / Windows Defender Exclusions for Developer.md
Last active December 24, 2020 20:24 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
Windows Defender exclusions for Visual Studio 2017 and Flutter

Windows Defender exclusions for Visual Studio 2017/Android Studio/VSCode/Flutter

I've tried to strike a balance between performamce and security. I've commented out many of the individual file exceptions, however I also left the commented line for future reference/tweaking if needed. WSL2 only. WSL1 exclusions are different and not included here.

Refrerences (some)

Hyper-V exclusions (Taken from Windows Server 2016/2019 Microsoft Best Practices)

@john-raymon
john-raymon / authentication-on-the-web-cheat-sheet.md
Last active November 1, 2023 15:11
Authentication on the Web (Sessions, Cookies, JWT, localStorage, and more)

Authentication

  • authentication: verifying identity (401 Unauthorized)
  • authorization: verifying permissions (403 Forbidden)

Username/password scheme

  • stateful/session-based/cookie-based (i.e. session using a cookie)
  • stateless/token-based (i.e. token using JWT / OAuth / other)
@userlandkernel
userlandkernel / asm.sh
Last active March 14, 2022 03:27
Bash assembly emulator
function MMU_ERROR(){
echo -e "MMU_PANIC: $1" >&2;
while true;do
SPIN_FOREVER=1;
done
exit 1;
}
function JIT_ERROR(){
echo -e "JIT Error: $1" >&2;
@alexanderbazo
alexanderbazo / build.yml
Created December 6, 2019 16:07
Github Actions: Build and Release Android-APK
name: Minimal Android CI Workflow
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
@sandeeptengale
sandeeptengale / BaseActivity.java
Last active January 3, 2022 10:25
Sample code to create BaseActivity for Android
package com.vtuforum.android.views
import android.app.ProgressDialog
import android.os.Bundle
import android.support.design.widget.CoordinatorLayout
import android.support.v7.app.AppCompatActivity
import android.widget.FrameLayout
import android.widget.ImageButton
import android.widget.TextView
import com.vtuforum.vtustudies.R
/**
MACROS
macros.h
Purpose: A collection of commonly used Useful C macros.
@author Shubham Ramdeo
@version 0.2
Released under MIT LICENSE (see LICENSE.txt)
*/