Skip to content

Instantly share code, notes, and snippets.

View maacpiash's full-sized avatar
🕶️
using System.Reflection;

Ahad Chowdhury maacpiash

🕶️
using System.Reflection;
View GitHub Profile
@maacpiash
maacpiash / reddit_spark.py
Created December 15, 2023 04:37
Spark-Reddit-App
from pyspark import SparkContext
from pyspark.streaming import StreamingContext
import json
def process_rdd(rdd):
for record in rdd.collect():
print(record)
sc = SparkContext('local[2]', 'RedditStreamApp')
@maacpiash
maacpiash / README.md
Last active February 21, 2024 02:39
PiHole Adlists

PiHole block lists

Lists for:

  • ads
  • trackers
  • telemetry
  • malware
  • ransomware
  • phishing
  • crypto
@maacpiash
maacpiash / aot-Program.cs
Last active September 28, 2023 04:04
ASP.NET Core 8 RC 1 vs Bun 1.0.7 (Elysia) performance
using System.Text.Json.Serialization;
var builder = WebApplication.CreateSlimBuilder(args);
builder.Services.ConfigureHttpJsonOptions(options =>
{
options.SerializerOptions.TypeInfoResolverChain.Insert(0, AppJsonSerializerContext.Default);
});
var app = builder.Build();
import { children, JSX, mergeProps } from 'solid-js'
export interface ButtonProps {
bgColor?: string
hoverColor?: string
activeColor?: string
children: JSX.Element
}
export default function Button(props: ButtonProps) {

Keybase proof

I hereby claim:

  • I am maacpiash on github.
  • I am maacpiash (https://keybase.io/maacpiash) on keybase.
  • I have a public key ASCIvol0MMUpbspcRW02WDgC2isuRQcWOAUTh8zjHP5ICQo

To claim this, I am signing this object:

@maacpiash
maacpiash / README.md
Last active July 21, 2022 16:52
Neovim configuration

File structure of ~/.config/nvim:

.
├── coc-settings.json
├── init.lua
├── lua
│   ├── barb.lua
│   ├── keys.lua
│   ├── opts.lua
@maacpiash
maacpiash / App.js
Last active May 10, 2022 15:12
React mistakes
import { useEffect, useState } from 'react'
export default function App() {
const [title, setTitle] = useState({
firstTitle: 'Java',
secondTitle: 'Script',
renderCount: {
value: 0, // this will increase by 1 every time the button is clicked
comment: 'The count value preserves the count of the clicks.' // a constant. no change ever.
},
@maacpiash
maacpiash / enhancer-for-youtube.json
Last active November 12, 2022 04:14
Firefox Extensions
{
"version": "2.0.117.8",
"settings": {
"blur": 0,
"brightness": 100,
"contrast": 100,
"grayscale": 0,
"huerotate": 0,
"invert": 0,
"saturate": 100,
@maacpiash
maacpiash / sign.html
Created September 2, 2021 10:10
Email signature
<p>I am looking forward to hearing from you.</p>
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="2">
<div style="padding-bottom: 15px">
<div>Mohammad Abdul <strong>Ahad</strong> Chowdhury</div>
<div>Graduate student of data science, Macquarie University</div>
<div>Software Engineer, Apollo International</div>
@maacpiash
maacpiash / movies.md
Last active January 29, 2024 12:01
Sci-fi movies related to time travel, parallel universes, physics, quantum

Alternate Universes

  • Source Code (2011)
  • Parallel (2018)
  • Last Action Hero (1993)
  • Spider-Man: Into the Spider-Verse (2018)
  • Happy Death Day 2U (2019)
  • The One (2001)
  • The Nines (2007)
  • Pleasantville (1998)