This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const fs = require('fs'); | |
const express = require('express'); | |
const app = express(); | |
const port = 3001 | |
app.use(express.json()); | |
const users = [{ | |
name:"john", | |
kidney: [{ | |
healthy: false | |
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager | |
class CustomUserManager(BaseUserManager): | |
def create_user(self, email, password=None): | |
# Your custom logic here | |
pass | |
class CustomUser(AbstractBaseUser): | |
email = models.EmailField(unique=True) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.auth.models import AbstractUser | |
class CustomUser(AbstractUser): | |
profile_picture = models.ImageField(upload_to='profile_pictures/') | |
biography = models.TextField() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeScript +3/ -3 █████████████████████100.0% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# System wide Constants | |
# Ubuntu Code Name Ex:- trusty for Ubuntu 14.04 | |
CODE_NAME=$(lsb_release -cs) | |
## Install basic libraries required for ubuntu environment | |
sudo apt-get install libcurl4-openssl-dev libssl-dev -y | |
sudo apt-get install zsh -y | |
sudo apt-get install python-software-properties -y |