Skip to content

Instantly share code, notes, and snippets.

View AwsafAlam's full-sized avatar
👨‍💻
Eat. Sleep. Code.

Md Awsaf Alam AwsafAlam

👨‍💻
Eat. Sleep. Code.
View GitHub Profile
@AwsafAlam
AwsafAlam / docker_startup.sh
Last active April 26, 2021 12:10
docker installation script on instance startup
#!/bin/bash
# install latest version of docker the lazy way
curl -sSL https://get.docker.com | sh
# make it so you don't need to sudo to run docker commands
usermod -aG docker ubuntu
# install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
@AwsafAlam
AwsafAlam / airwrk_interview_awsaf
Created January 23, 2023 17:10
airwrk_problems
# Problem - 1
def maximizeReturn(prices):
max_profit = 0
for i in range(len(prices)):
for j in range(len(prices)):
profit = prices[j] - prices[i]
if profit > max_profit and j > i:
max_profit = profit
return max_profit
@AwsafAlam
AwsafAlam / preprocessing_contrastive_learning_toxicr_bert-v2.ipynb
Last active August 19, 2023 06:49
Contrastive_Learning_ToxiCR_BERT-Basic.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.