Skip to content

Instantly share code, notes, and snippets.

View ankushKun's full-sized avatar
💡
just keep building

Ankush Singh ankushKun

💡
just keep building
View GitHub Profile
@ankushKun
ankushKun / blockchain.cpp
Last active February 1, 2024 08:54
Smol project we were forced to make during class
////////////////////////////////////
// WORTHLESS BLOCKCHAIN PROJECT //
////////////////////////////////////
// The most basic imitation/implementation of how a Blockchain would work
// Still has lots of flaws (╯°□°)╯︵ ┻━┻
#include <ctime>
#include <cstring>
#include <iostream>
@ankushKun
ankushKun / SimpDetector.py
Created April 12, 2023 15:14
Simple Simp Detector 🫠
# DEPENDENCIES:
# pip3 install opencv-python deepface
# TODO:
# Add multithreading support so face detection is done in a different thread independent form video feed and display
# Add good support for multiple face detection (that is not linear)
# ヾ(=`ω´=)ノ” ..nyaa
import cv2
@ankushKun
ankushKun / resume.json
Last active January 18, 2023 07:04
Json file to store resume details
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Ankush Singh",
"label": "Software Developer",
"email": "ankush4singh@gmail.com",
"url": "https://ankushKun.github.io",
"summary": "Hi, I am Ankush Singh.\nI love building and learning.",
"location": {
"countryCode": "India",
@ankushKun
ankushKun / talk_to_her.py
Last active July 24, 2023 17:04
Python Selenium script that talks with your girlfriend(s) in your place
# Install requirements
# pip3 install -U selenium cahtterbot
import time
import random
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
@ankushKun
ankushKun / prisoner100.py
Last active July 1, 2022 05:09
100 Prisoners Riddle Simulation
import random
# Increasing this will have a drastic effect of total running time
NUM_PRISONERS = 100
BOXES_ALLOWED = NUM_PRISONERS // 2
##### CONFIG #####
# Number of simulations to run
# It will run 100 times with 'NUM_PRISONERS' in each run
@ankushKun
ankushKun / SignTransactionExample.cs
Last active May 18, 2022 07:31
Sign DeSo transaction hex in C# using Bouncy Castle cryptography library
using System;
using System.Linq;
using System.Text;
using Desonity;
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.Sec;
using Org.BouncyCastle.Crypto.Digests;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Crypto.Signers;
using Org.BouncyCastle.Math;