Skip to content

Instantly share code, notes, and snippets.

View gabbyprecious's full-sized avatar
🎯
Focusing

Precious Ndubueze gabbyprecious

🎯
Focusing
View GitHub Profile
@gabbyprecious
gabbyprecious / main.py
Created August 28, 2022 00:17
Tournament Winner DS/AL
# Online Python - IDE, Editor, Compiler, Interpreter
Competitors = [
["HTML", "C#"],
["C#", "Python"],
["Python", "HTML"]
]
results = [0, 0, 1]
sudo make install
Password:
mkdir -p /usr/local/bin
mkdir -p /usr/local/libexec/c-lightning
mkdir -p /usr/local/libexec/c-lightning/plugins
mkdir -p /usr/local/share/man/man1
mkdir -p /usr/local/share/man/man5
mkdir -p /usr/local/share/man/man7
mkdir -p /usr/local/share/man/man8
mkdir -p /usr/local/share/doc/c-lightning
@gabbyprecious
gabbyprecious / Report.md
Last active April 30, 2024 11:06
GSOD Project Report: Rewrite Django Contributing guide

GSOD Project Report: Rewrite Django Contributing guide

The goal of Django’s contribution guide like every other documentation is to guide user, open-source contributors in this case on how and where they can contribute to making Django better and sustainable.

There’s always a need to make documentations especially one that greatly affects the community and Django itself.

The goal of Django for this 2020 Google Summer of Docs is to make the Contribution guide less overwhelming, accessible, and welcoming to contributors. This is a goal which is essential as it encourages contributors, getting started to contribute to this great framework.

Project Goals

@gabbyprecious
gabbyprecious / Data-Wrangling-Challenges.md
Created February 18, 2021 13:01 — forked from rufuspollock/Data-Wrangling-Challenges.md
Data Wrangling Exercise - Natural Gas Prices

Challenge 1

Your task: write a script to get a nice CSV file of natural gas prices.

Please publish your results in a git repo or a gist. Please include both script and your resulting data -- so the CSV files should be stored in the repo too!

More detail:

"""ecommerce_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
"""
Django settings for ecommerce_site project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ecommerce_site.settings')
try:
from django.core.management import execute_from_command_line
from fastapi import APIRouter
from fastapi_sqlalchemy import db
from model import Follower as ModelFollower
from schema import FollowerCreate as SchemaFollower #Used to create validate Following and send to the model
from schema import Follower as Followers #Used to return Following
router = APIRouter()
from pydantic import BaseModel
class UserBase(BaseModel):
username: str
class UserCreate(UserBase):
first_name: str
last_name: str
email: str
password: str
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, ForeignKey, DateTime
from datetime import datetime
Base = declarative_base()
class User(Base):
"""
This table records the users of the site
"""