Skip to content

Instantly share code, notes, and snippets.

View iamneaz's full-sized avatar
🃏
Focusing

Al Amin Neaz Ahmed iamneaz

🃏
Focusing
  • Dhaka , Bangladesh
View GitHub Profile
@iamneaz
iamneaz / settings.py
Created November 13, 2023 05:27 — forked from ipmb/settings.py
Django logging example
import logging.config
import os
from django.utils.log import DEFAULT_LOGGING
# Disable Django's logging setup
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({
@iamneaz
iamneaz / grokking_to_leetcode.md
Created March 31, 2022 03:42 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@iamneaz
iamneaz / gist:9ed1e1faaaa14d4a8c2d66d9d1584691
Created December 19, 2020 21:38 — forked from ursuleacv/gist:9054247
Absolute center CSS Loading spinner
<div class="loading">Loading&#8230;</div>
/* Absolute Center CSS Spinner */
.loading {
position: fixed;
z-index: 999;
height: 2em;
@iamneaz
iamneaz / 1) Main.blade.php
Created November 29, 2020 21:06 — forked from jacurtis/1) Main.blade.php
Laravel 5.4 Components & Slots
<!-- This is the main Blade file that you want your components to show up in -->
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
@iamneaz
iamneaz / xampp-virtualhost.md
Created September 4, 2020 19:43 — forked from ibrahimtuzlak0295/xampp-virtualhost.md
Create virtual host in XAMPP, Ubuntu 16.04/18.04/20.04

I’ll go step-by-step on how to create a virtual host in the XAMPP environment. As we know, the default http://localhost points to /opt/lampp/htdocs as the root directory. The desired result is to be able to visit http://examplevhost.local, with the root directory being /opt/lampp/htdocs/examplevhost.

Note: The steps below are done on Ubuntu 16.04, but they should also work on most other Linux distributions (Debian, Mint, Arch).

Note: I’ll assume that XAMPP is installed in /opt/lampp/. If it’s different on your setup, please read carefully and adjust accordingly.

Enable virtual hosts in apache configuration file

Note: This should be done only once per XAMPP installation. If you want to add another virtual host later you can skip to the next step.

@iamneaz
iamneaz / ubuntu-install-applications.md
Created February 15, 2018 10:07
Ubuntu 16.04 Unity configs and apps
@iamneaz
iamneaz / opencv_with_cmake.md
Created December 15, 2017 19:22 — forked from SSARCandy/opencv_with_cmake.md
Setting up OpenCV(+extra modules) with Cmake step by step tutorial

Setting up OpenCV with Cmake GUI

  1. Download OpenCV and Cmake
  2. Build opencv with cmake image
  • Press configure, choose visual studio 2015, finish
  • Then press generate
  1. Open OpenCV.sln under build/
  2. Build it using Debug, Release
    image
@iamneaz
iamneaz / CommissionEmployee
Last active November 12, 2015 16:12
Employee Record System
public class CommissionEmployee extends Employee{
public double persentage;
public double totalSale;
private double salary;
public CommissionEmployee(String name,double persentage,double totalSale,int type) {
super(name,type);
this.persentage=persentage;
this.totalSale=totalSale;