Skip to content

Instantly share code, notes, and snippets.

View IsaacHatilima's full-sized avatar
💭
Determination.

Isaac Hatilima IsaacHatilima

💭
Determination.
View GitHub Profile
- step:
name:
Push To Docker Hub
services:
- docker
script:
- docker logout
#Authenticate on Docker
#The below says Error: Cannot perform an interactive login from a non TTY device
- docker login --username $DOCKER_HUB_USERNAME --password-stdin $DOCKER_HUB_PASSWORD
#include <stdio.h>
#include<math.h>
int main()
{
double k, g, sinval;
printf("Student First Name: Chileshe\n");
printf("Student Last Name: Chifumbano\n");
@IsaacHatilima
IsaacHatilima / serializer.py
Created January 23, 2021 16:39
Nested Django Rest Framework Sterilizers
from rest_framework import serializers
from authentication.models import *
from authentication.serializers import RegisterSerializer
class UserSerializer(serializers.ModelSerializer):
class Meta:
#Notice there is no fields i the Meta class
model = User