Skip to content

Instantly share code, notes, and snippets.

View varshneydevansh's full-sized avatar
🧠
No Study No Confusion, More Study More Confusion

Devansh Varshney (देवांश वार्ष्णेय) varshneydevansh

🧠
No Study No Confusion, More Study More Confusion
View GitHub Profile
[~/libreoffice]
devansh   97448_pyHelper_addons_generator  cd /home/devansh/libreoffice ; /usr/bin/env /bin/python3 /home/devansh/.vscode/extensions/ms-python.debugpy-2024.2.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 43529 -- /home/devansh/libreoffice/odk/source/helper/addon_console.py
Welcome to the LibreOffice Addons Configuration Tool!
Enter addon name (extID name, e.g., com.<companyname>.<company-namespace>.<extension-namespace>): org.libreoffice.TuesdayPrinter
Do you want to create the 'AddonMenu' item (Tools > Add-ons)? (y/n): n
@varshneydevansh
varshneydevansh / day2_AoC.exs
Created February 11, 2024 16:11
Advent of Code day 2 2023 some problem
defmodule Day2 do
def run do
file_path = Path.expand("./day2_input.txt")
total_red = 12
total_green = 13
total_blue = 14
total_valid_game_ids =
File.stream!(file_path)
  phoenix   main ≡    mix test
==> mime
Compiling 1 file (.ex)
Generated mime app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
@varshneydevansh
varshneydevansh / numpynn-honor.ipynb
Created December 25, 2019 20:07
NumpyNN (honor).ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Verifying my Blockstack ID is secured with the address 1KGo2mF1iRcpSK5d5aWNqea4kp5zL2cTT5 https://explorer.blockstack.org/address/1KGo2mF1iRcpSK5d5aWNqea4kp5zL2cTT5
#include <bits/stdc++.h>
using namespace std;
int main() {
vector <int> V;
V.push_back(1);
V.push_back(2);
V.push_back(5);
V.push_back(7);
V.push_back(9);
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector <int> A;
for(int i=0; i<10; i++){
int N;
cin>>N;
A.push_back(N);
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
vector <int> A;
for(int i=1; i<=10; i++){
cin>>N;
A.push_back(N);
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
string S;
cin>>S;
int L=S.size(); //Calculating and storing the size of S
int cnt = 0; //This will contain the number of vowels in S
for(int i=0; i<L; i++){
/*If we find the character at ith index to be a vowel increase cnt by 1!*/
//Here is my code implemented in c++
#include <bits/stdc++.h>
#define gc getchar_unlocked()
#define pf printf
using namespace std;
long pages[1000001], prfx[2000001];
int fr() //fast input
{
int n = 0;