Skip to content

Instantly share code, notes, and snippets.

View Minecraftian14's full-sized avatar

Anirudh Sharma Minecraftian14

View GitHub Profile
@Minecraftian14
Minecraftian14 / PolynomialMultiplication.c
Last active September 20, 2022 17:50
Single Variate Polynomial Multiplication
#include <stdio.h>
#include <stdlib.h>
typedef struct n {
float coef;
int exp;
struct n *next;
} Node;
Node *makeNode(float coef, int exp) {
@Minecraftian14
Minecraftian14 / CurrencyConverter.java
Created July 19, 2022 10:37
Mini Java Projects: Currency Converter
// https=//hackr.io/blog/java-projects Currency Converter
import java.net.URL;
import java.util.*;
import java.util.stream.Collectors;
public class CurrencyConverter {
public static void main(String[] args) throws Exception {
if (args == null || args.length == 0 || args[0].equals("--help") || args[0].equals("-h")) {
@Minecraftian14
Minecraftian14 / C5_RNN_Experiments.ipynb
Created July 9, 2022 14:07
Implementing common Recurrent models
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Minecraftian14
Minecraftian14 / InstaReelDownloader.java
Created June 29, 2022 16:40
Download Reels From... IG ig?
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Just give in two arguments, one for the page link and the other for the output file, as commandline arguments.
@Minecraftian14
Minecraftian14 / ConvolutionNets.py
Last active June 30, 2022 17:13
Implementing basic convolution algorithms in python.
from keras.datasets import mnist
from CyDifferentTypesOfLayers import *
class ConvolutionLayer(LayerChain):
def __init__(this, s_in: DimsND, filter_size: int, lr: float):
this.conv = ConvolutiveParametersLayer(s_in, lr, (filter_size, filter_size));
this.bias = AdditiveParametersLayer(this.conv.s_out, this.conv.s_out, lr);
@Minecraftian14
Minecraftian14 / DifferentTypesOfDLAlgorithms.py
Last active July 2, 2022 17:16
Implementation of some common DL algorithms in Python.
from __future__ import annotations
import traceback
from numbers import Number
from typing import Union, Callable, Tuple
import beepy
import matplotlib.pyplot as plt
import numpy as np
from numpy import ndarray
@Minecraftian14
Minecraftian14 / playingWithDLConcepts.py
Created May 25, 2022 09:16
Target -> given the value of a digit in binary (4 samples) -> convert it to instructions for which led in a seven segment to be turned on.
import numpy as np
import matplotlib.pyplot as pyt
x = np.array([
[0, 0, 0, 0],
[0, 0, 0, 1],
[0, 0, 1, 0],
[0, 0, 1, 1],
[0, 1, 0, 0],
[0, 1, 0, 1],