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
engr-hasanuzzaman / Enums.php
Created January 13, 2022 10:21 — forked from jhoff/Enums.php
Laravel Model Enumeration Trait
<?php
namespace App\Traits;
use Illuminate\Support\Str;
use App\Exceptions\InvalidEnumException;
trait Enums
{
/**
@engr-hasanuzzaman
engr-hasanuzzaman / System Design.md
Created November 21, 2019 19:18 — forked from vasanthk/System Design.md
System Design Cheatsheet

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
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
// 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
engr-hasanuzzaman / frontendDevlopmentBookmarks.md
Last active September 7, 2015 12:01 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@engr-hasanuzzaman
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
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="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
<script>