Skip to content

Instantly share code, notes, and snippets.

View angelorohit's full-sized avatar

Angelo Rohit angelorohit

View GitHub Profile
@angelorohit
angelorohit / heapsortcpp
Created June 25, 2013 14:32
Heap Sort in C++
#include <iostream>
#include <vector>
using namespace std;
void Swap(std::vector<int>& vHeap, std::vector<int>::size_type i, std::vector<int>::size_type j)
{
if(i == j)
return;
@angelorohit
angelorohit / [App] build.gradle.kts
Created April 3, 2024 16:14
ProtoDataStore integration into an Android project using the Kotlin DSL
// This is the build.gradle at the app or module level.
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.protobuf)
}
dependencies {
// DataStore
implementation(libs.androidx.datastore)