Skip to content

Instantly share code, notes, and snippets.

View fakabbir's full-sized avatar
🎯
Focusing

Fakabbir Amin fakabbir

🎯
Focusing
View GitHub Profile
option request, pre flight
time-to-live
cross origin
get pr post kia
changing get to post
chrome vs postman
types of storage
jar war
tomcat , wildfly
authorization vs authentication
@fakabbir
fakabbir / docker-compose.yml
Created August 19, 2023 10:57
Elastic Search Quick Docker Compose File
version: "3"
services:
elasticsearch: # Elasticsearch Instance
container_name: gs-search
image: elasticsearch:7.9.1
volumes: # Persist ES data in seperate "esdata" volume
- esdata:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
chardet>=3.0.4
click>=6.7
numpy
opencv-python-headless
openpyxl==2.5.8
pandas
pdfminer.six>=20200726
PyPDF2>=1.26.0
tabulate>=0.8.9
matplotlib>=2.2.3
stages: # List of stages for jobs, and their order of execution
- build
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- echo "Compiling the code..."
- echo "Compile complete."
- ls
- cp ./README.md ../
<div class="flex flex-col">
<div class="bg-blue-500">
<div class="pt-2 pb-2">
<div class="flex flex-row justify-center space-x-5 w-10/12 mx-auto">
<div class="flex flex-col">
<div class="flex flex-col">
<img class="w-24" src="https://static-assets-web.flixcart.com/www/linchpin/fk-cp-zion/img/flipkart-plus_8d85f4.png" />
<div class="flex flex-row">
<p class="font-semibold italic text-white text-xs">Explore</p>
<p class="font-bold italic text-yellow-400 text-xs mx-1.5">Plus</p>
@fakabbir
fakabbir / index.html
Created April 29, 2021 08:21
render mock ui with tailwind
<div class="flex flex-row">
<div class="bg-light-blue-900 h-screen flex flex-col justify-between">
<div class="border-b border-gray-400">
<div class="flex flex-row space-x-3 m-4 pr-14">
<img class="w-7" src="https://dashboard.render.com/static/media/logo-redesign-02-icon.42687791.svg" />
<p class="text-white text-3xl font-norma">render</p>
</div>
</div>
<div class="flex flex-col space-y-3 ml-4 flex-auto mt-8">
@fakabbir
fakabbir / dict_to_dynamodb_item.py
Created April 26, 2020 12:23 — forked from JamieCressey/dict_to_dynamodb_item.py
Coverts a standard Python dictionary to a Boto3 DynamoDB item
def dict_to_item(raw):
if type(raw) is dict:
resp = {}
for k,v in raw.iteritems():
if type(v) is str:
resp[k] = {
'S': v
}
elif type(v) is int:
resp[k] = {
@fakabbir
fakabbir / dict_to_dynamodb_item.py
Created April 26, 2020 12:23 — forked from JamieCressey/dict_to_dynamodb_item.py
Coverts a standard Python dictionary to a Boto3 DynamoDB item
def dict_to_item(raw):
if type(raw) is dict:
resp = {}
for k,v in raw.iteritems():
if type(v) is str:
resp[k] = {
'S': v
}
elif type(v) is int:
resp[k] = {
@fakabbir
fakabbir / App.css
Created April 19, 2020 17:57
Uploading Files Using React Hooks
.Dropzone {
height: 200px;
width: 200px;
background-color: #fff;
border: 2px dashed rgb(187, 186, 186);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
@fakabbir
fakabbir / python_decorator_guide.md
Created July 12, 2019 00:18 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].