Skip to content

Instantly share code, notes, and snippets.

View rahathosen's full-sized avatar
🎯
Focusing

Rahat Hosen rahathosen

🎯
Focusing
View GitHub Profile

FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

@rahathosen
rahathosen / index.html
Created June 18, 2023 13:09
Sticky_section_header
<main class="main-container">
<section class="sticky-section">
<header class="main-header">A</header>
<div class="content">Item 1</div>
<div class="content">Item 2</div>
<div class="content">Item 3</div>
<div class="content">Item 4</div>
</section>
@rahathosen
rahathosen / index.html
Created September 28, 2022 10:37
Tailwind UI Demo: Stripe-style animated vertical tabs
<div class="antialiased bg-gray-200 min-h-screen p-8">
<div class="flex justify-center">
<nav id="nav" class="w-56 relative">
<span
class="absolute h-10 w-full bg-white rounded-lg shadow ease-out transition-transform transition-medium"
:style="{ transform: `translateY(calc(100% * ${selected}))` }"
></span>
<ul class="relative">
<li>
<button
@rahathosen
rahathosen / multiverse-neon.omp.json
Created August 10, 2022 08:59
oh-my-posh multiverse-neon theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#29315A",
"foreground": "#3EC669",
"leading_diamond": "\ue0b6",
@rahathosen
rahathosen / english_to_bangla.js
Created July 19, 2022 16:03 — forked from sharif2008/english_to_bangla.js
Converting English number to Bangla in Javascript
var finalEnlishToBanglaNumber={'0':'০','1':'১','2':'২','3':'৩','4':'৪','5':'৫','6':'৬','7':'৭','8':'৮','9':'৯'};
String.prototype.getDigitBanglaFromEnglish = function() {
var retStr = this;
for (var x in finalEnlishToBanglaNumber) {
retStr = retStr.replace(new RegExp(x, 'g'), finalEnlishToBanglaNumber[x]);
}
return retStr;
};
@rahathosen
rahathosen / hbqc.py
Created September 16, 2021 17:37 — forked from iexa/hbqc.py
Python script to create a handbrake encoding queue for a tree of files using a built-in json template
#!/usr/bin/env python3
"""
Handbrake (json) Queue Creator
last updated: 2021/jul/15 iexa
changelog:
- 21/jul/15: added rotation check
- 21/jun/23: added ffmpeg automatic resolution sniffing
"""
import argparse
@rahathosen
rahathosen / MinimalAPIs.md
Created September 13, 2021 12:17 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance