Skip to content

Instantly share code, notes, and snippets.

View na5imuzzaman's full-sized avatar
🏠
Working from home

Nasimuzzaman na5imuzzaman

🏠
Working from home
View GitHub Profile
@na5imuzzaman
na5imuzzaman / Binary_Search (Easy).cpp
Last active September 24, 2017 22:07
Binary_Search (Easy).cpp
/* Nasim */
#include<iostream>
#define re(n) for(int i=0;i<n;i++)
using namespace std;
int Bs(int arr[],int l,int r,int x)
{
int mid;

Keybase proof

I hereby claim:

  • I am nasimuzzaman-nasim on github.
  • I am na5im (https://keybase.io/na5im) on keybase.
  • I have a public key ASD6YYg9Ov_gOKq4dQtZPpdhYxSnF7p7bbc0YIf2ZUUMZwo

To claim this, I am signing this object:

@na5imuzzaman
na5imuzzaman / README.md
Created March 29, 2021 04:12 — forked from mau21mau/README.md
Configure Celery + Supervisor With Django
@na5imuzzaman
na5imuzzaman / CORS.json
Created April 29, 2021 14:36 — forked from jsoma/CORS.json
CORS public access (new JSON version)
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"PublicRead",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject","s3:GetObjectVersion"],
"Resource":["arn:aws:s3:::YOUR_BUCKET_NAME_GOES_HERE/*"]
}
#s3_setup
STATIC_URL = '/static/'
if LOCAL:
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static_local'),
]
else:
AWS_ACCESS_KEY_ID = config('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = config('AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = 'bd-mart'