Skip to content

Instantly share code, notes, and snippets.

View Arham4's full-sized avatar

Arham Siddiqui Arham4

View GitHub Profile
@Arham4
Arham4 / data.yaml
Last active September 20, 2023 01:26
Easy Jackson YAML Parsing with Kotlin
username: "Test"
password: "123456"
@Arham4
Arham4 / FastReader.java
Last active February 25, 2019 15:42
Faster file/keyboard input reader that allows for the ease of use of Scanner coupled with the efficiency of BufferedReaders and StringTokenizers.
import java.io.*;
import java.util.InputMismatchException;
import java.util.StringTokenizer;
public final class FastReader {
private BufferedReader bufferedReader;
private StringTokenizer stringTokenizer;
public FastReader() {
@Arham4
Arham4 / flutter_http_client.dart
Last active March 23, 2019 14:48
Simple Python and Flutter Communication
import 'dart:convert';
import 'package:http/http.dart' as http;
void main() {
stuff();
}
void stuff() {
var thing = fetchOmg();
@Arham4
Arham4 / homework3.asm
Created February 9, 2020 20:09
SE 3340: Computer Architecture - Homework 3
.data
prompt: .asciiz "Input some text dude"
charactersMessage: .asciiz "Characters: "
wordsMessage: .asciiz "Words: "
input: .space 100
newLine: .asciiz "\n"
.text
# prompts for the text to analyze
li $v0, 54
@Arham4
Arham4 / homework4.asm
Created March 8, 2020 23:43
SE 3340: Computer Architecture - Homework 4
.data
buffer: .space 80
numbers: .space 80
inputFileName: .asciiz "input.txt"
messageBefore: .asciiz "The array before: "
messageAfter: .asciiz "\nThe array after: "
meanMessage: .asciiz "\nThe mean is: "
medianMessage: .asciiz "\nThe median is: "
standardOfDeviationMessage: .asciiz "\nThe standard of deviation is: "
delimeter: .asciiz " "
@Arham4
Arham4 / homework8.asm
Last active April 26, 2020 07:41
SE 3340 - Homework 8: MMIO with MARS
.eqv WIDTH 64
.eqv HEIGHT 64
.eqv RED 0x00FF0000
.eqv GREEN 0x0000FF00
.eqv BLUE 0x000000FF
.eqv WHITE 0x00FFFFFF
.eqv YELLOW 0x00FFFF00
.eqv CYAN 0x0000FFFF
.eqv MAGENTA 0x00FF00FF
@Arham4
Arham4 / clojure_rock_paper_scissor.clj
Last active July 20, 2020 23:19
Clojure Rock-Paper-Scissors
(ns clojure-rock-paper-scissors.clojure_rock_paper_scissor
(:require [clojure-rock-paper-scissors.utils :refer :all]))
(def results #{:player-1-win :player-2-win :tie})
(def types #{:rock :paper :scissor})
(def game-modes #{:one-player :two-player})
(def guess-map {"r" :rock, "p" :paper, "s" :scissor})
(defn get-type [raw-type]
(get guess-map raw-type))
@Arham4
Arham4 / gradient_descent_math.py
Last active October 28, 2021 04:19
Assignment 4 Part 1 - Gradient Descent
import math
dot_product = lambda X, Y: sum(map(lambda x, y: x * y, X, Y))
def sigma(t):
return 1 / (1 + math.exp(-t))
def sigma_prime(t):
sigma_value = sigma(t)
return sigma_value * (1 - sigma_value)
@Arham4
Arham4 / heaps.java
Created April 30, 2022 17:10
2022 Spring IEEE International Contest on Software Testing
package net.mooctest;
import org.junit.Test;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
@Arham4
Arham4 / 0-README.md
Last active August 2, 2023 22:33
Setting up Zookeeper, Kafka, Elasticsearch, Kibana, and Logstash on the UTD Server

UTD Server Kafka & ELK Stack

This tutorial outlines how to set up Zookeeper, Kafka, Elasticsearch, Kibana, and Logstash on the UTD server.

Table of Contents:

  1. Setup
  2. Install Zookeper
  3. Install Kafka (depends on Zookeeper)
  4. Install PCRE