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
#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'
@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/*"]
}
@na5imuzzaman
na5imuzzaman / README.md
Created March 29, 2021 04:12 — forked from mau21mau/README.md
Configure Celery + Supervisor With Django

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 / 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;
@na5imuzzaman
na5imuzzaman / BD TIME.java
Created September 21, 2017 08:30
Current Time Code in JAVA
/*
@author Nasimuzzaman Nasim
*/
import javax.swing.JOptionPane;
import java.text.DecimalFormat;
public class Main
{
public static void main(String args[])
First open up Terminal and run the following commands serially-
1. wget 'https://github.com/ugcoder/avro/releases/download/v2.0/avro_2.0-1_all.deb'
2. sudo dpkg -i avro_2.0-1_all.deb
now if you see any dependency error, then also run the third command
3. sudo apt-get install -fy
Avro should be installed on your system by now. Now go to Settings - Language Support and check whether ibus is selected as the default input method. Now from Terminal restart ibus by typing ibus restart.
Now again go to Settings - Keyboard - Text Entry and add Avro as the input source.
First open up Terminal and run the following commands serially-
1. wget 'https://github.com/ugcoder/avro/releases/download/v2.0/avro_2.0-1_all.deb'
2. sudo dpkg -i avro_2.0-1_all.deb
now if you see any dependency error, then also run the third command
3. sudo apt-get install -fy
Avro should be installed on your system by now. Now go to Settings - Language Support and check whether ibus is selected as the default input method. Now from Terminal restart ibus by typing ibus restart.
Now again go to Settings - Keyboard - Text Entry and add Avro as the input source.
@na5imuzzaman
na5imuzzaman / Queue_LinkedList.cpp
Last active March 1, 2022 14:43
Queue implementation in C++ using Linked List.
/* Nasim */
#include<iostream>
using namespace std;
class Queue
{
public:
int data;
Queue *next;
@na5imuzzaman
na5imuzzaman / Queue_Array.cpp
Last active July 18, 2017 12:04
Queue Implementation in C++ using Array
/* Nasim */
#include<iostream>
using namespace std;
int arr[10];
int Front = -1,Tail = -1 ,numOfElements = 0;
bool isEmpty()
{