Skip to content

Instantly share code, notes, and snippets.

View engr-hasanuzzaman's full-sized avatar
Working from home

Hasan Uz Zaman engr-hasanuzzaman

Working from home
  • Amazon
  • Dublin, Ireland
View GitHub Profile
engr-hasanuzzaman / Enums.php
Created January 13, 2022 10:21 — forked from jhoff/Enums.php
Laravel Model Enumeration Trait
View Enums.php
namespace App\Traits;
use Illuminate\Support\Str;
use App\Exceptions\InvalidEnumException;
trait Enums
engr-hasanuzzaman / System
Created November 21, 2019 19:18 — forked from vasanthk/System
System Design Cheatsheet
View System

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
engr-hasanuzzaman / global-variables-are-bad.js
Created November 15, 2016 06:07 — forked from hallettj/global-variables-are-bad.js
How and why to avoid global variables in JavaScript
View global-variables-are-bad.js
// It is important to declare your variables.
(function() {
var foo = 'Hello, world!';
print(foo); //=> Hello, world!
// Because if you don't, the become global variables.
(function() {
engr-hasanuzzaman /
Last active September 7, 2015 12:01 — forked from dypsilon/
A badass list of frontend development resources I collected over time.
engr-hasanuzzaman / bootstrap_3_full_class_list
Last active August 29, 2015 14:26 — forked from cosmicscr/bootstrap_3_full_class_list
bootstrap 3 full class list
View bootstrap_3_full_class_list
Here are all the classes from Bootstrap 3 (version 3.1.1).
Method of extraction:
1. Download Bootstrap 3 and rename bootstrap.css as "bootstrap.html"
2. Add the following 24 lines of code to the very bottom of the bootstrap.html file:
<script src=""></script>
<script src=""></script>