Skip to content

Instantly share code, notes, and snippets.

View kidkai25's full-sized avatar
🎯
Focusing

shad kidkai25

🎯
Focusing
View GitHub Profile
@SleepWellPupper
SleepWellPupper / booklist.md
Last active July 17, 2025 00:39
Cool Books I Like
  • CLR via C# 9780735667457
  • Refactoring 9780134757599
  • The Practice Of Programming 9780201615869
  • Everyware 9780321384010
  • Simple And Usable 9780134777603
  • C# In Depth 9781617294532
  • Dependency Injection 9781617294730
  • Design Patterns GOF 9780201633610
  • The C Programming Language 9780131103627
  • Learning Domain-Driven Design 9781098100131
@mfd
mfd / teams.sh
Last active July 28, 2025 21:21
Download any video from Microsoft Teams, SharePoint and OneDrive
2teams() {
NOW=$(date +"%Y-%m-%d_%H%M")
if [ ! -z $2 ] ; then
echo $NOW"_"$2.mp4
ffmpeg -i $1 -codec copy $NOW"_"$2.mp4
else
echo $NOW"_teamsvid".mp4
ffmpeg -i $1 -codec copy $NOW"_teamsvideo".mp4
fi
}
@veeblefetzer2
veeblefetzer2 / PowerShell_Reference.txt
Created August 10, 2021 14:21
PowerShell Programming Guide/Reference
__________________________________________
| |
| Programming with PowerShell |
|________________________________________|
1. Introduction
2. Running PowerShell
3. PowerShell Variables
4. PowerShell Data Types
5. PowerShell Basic Operators
@imarlovic
imarlovic / drop_hangfire_tables.sql
Created February 8, 2021 23:46
SQL Script for Hangfire - drop all Hangfire tables, reset Hangfire database
GO
PRINT N'Dropping [HangFire].[FK_HangFire_State_Job]...';
GO
ALTER TABLE [HangFire].[State] DROP CONSTRAINT [FK_HangFire_State_Job];
GO
PRINT N'Dropping [HangFire].[FK_HangFire_JobParameter_Job]...';
GO
ALTER TABLE [HangFire].[JobParameter] DROP CONSTRAINT [FK_HangFire_JobParameter_Job];
GO
PRINT N'Dropping [HangFire].[Schema]...';
{
"cmd": ["g++.exe", "-std=c++14", "-o", "$file_base_name", "$file", "&&", "start", "cmd", "/c", "$file_base_name & echo. & echo. & pause"],
"shell": true,
"selector": "source.c++"
}

C++ OOPS Concepts

The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.

Characteristics of an Object Oriented Programming language

img

class GfG{
//1. build heap
//2. heap sort
//http://www.cs.toronto.edu/~krueger/cscB63h/w07/lectures/tut02.txt
void buildHeap(int arr[], int n){
//base case:
if(n<1) return;
@mladenb
mladenb / ExceptBy.cs
Created April 4, 2019 07:28
.NET Core ExceptBy / IntersectBy
public static IEnumerable<TFirst> ExceptBy<TFirst, TSecond>(this IEnumerable<TFirst> first, Func<TFirst, TSecond> mappingFunc, IEnumerable<TSecond> second)
{
if (first == null) throw new ArgumentNullException(nameof(first));
if (second == null) throw new ArgumentNullException(nameof(second));
return ExceptByIterator(first, mappingFunc, second, null);
}
public static IEnumerable<TFirst> ExceptBy<TFirst, TSecond>(this IEnumerable<TFirst> first, Func<TFirst, TSecond> mappingFunc, IEnumerable<TSecond> second, IEqualityComparer<TSecond> comparer)
{
@LumaKernel
LumaKernel / bit.cpp
Last active June 7, 2023 19:48
Competitive Programming Template for C++
/// --- BIT Library --- ///
template<int SIZE, typename T = ll>
struct BIT{
T data[SIZE+1];
int n = SIZE;
BIT(){
REP(i, n+1) data[i] = 0;
}
class GfG{
//1. build heap
//2. heap sort
//http://www.cs.toronto.edu/~krueger/cscB63h/w07/lectures/tut02.txt
void buildHeap(int arr[], int n){
//base case:
if(n<1) return;