Skip to content

Instantly share code, notes, and snippets.

View AtienoObwanda's full-sized avatar
🤗
A commit today is worth more than a commit last week.

Millicent A.Obwanda AtienoObwanda

🤗
A commit today is worth more than a commit last week.
View GitHub Profile
@AtienoObwanda
AtienoObwanda / constants
Created March 21, 2023 04:47 — forked from adrianhajdin/constants
project_hoobank
import { people01, people02, people03, facebook, instagram, linkedin, twitter, airbnb, binance, coinbase, dropbox, send, shield, star } from "../assets";
export const navLinks = [
{
id: "home",
title: "Home",
},
{
id: "features",
title: "Features",
@AtienoObwanda
AtienoObwanda / Deploying an Angular App to Github pages
Last active July 27, 2022 09:14
Deploying an Angular App to Github pages
Deploying an Angular App to Github pages
Prerequisite:
A github account
A Github Repo
Deployment to gh-pages:
Create a Github repository for your project.
Push your code to the main branch
Create a gh-pages branch - This is an invaluable hack that will help us get the gh-pages link to help us set the base-href

drf-cheat-sheet

A collection of anything from basics to advanced recommended methods and usages with Django REST Framework for creating browsable and awesome web API's. This could also serve as a quick reference guide.

Here is DRF's official documentation in case you need everything in detail.

Why Django REST Framework?

Summarized from the official docs:

  • Web browsable API
  • Serialization that supports ORM and non-ORM data sources.
@AtienoObwanda
AtienoObwanda / README-Template.md
Created June 2, 2022 14:00 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@AtienoObwanda
AtienoObwanda / DEPLOYING-DJANGO-APPS-TO-HEROKU.md
Last active May 29, 2022 11:43 — forked from newtonkiragu/DEPLOYING-DJANGO-APPS-TO-HEROKU.md
Deploying Django Applications to heoroku

How to Deploy Django Applications on Heroku

Install heroku CLI

Sign up to Heroku.

Then install the Heroku Toolbelt. It is a command line tool to manage your Heroku apps

After installing the Heroku Toolbelt, open a terminal and login to your account:

// Pseudocode
- As always we'll start by defining our function which takes an array as a parameter - as reviewed in the logic above: function bubbleSort(array){};
- Model the parent loop to iterate upto n-1 limits
- Model the inner loop to deduct each pass from the already set limit of the parent loop
- As we loop through the array we are going to be comparing and switching our array elements - when necessary, that is, until our largest number bubbles up to the top/end.
- With the two loops in place, we now need to build out the code to compare and switch neighbouring numbers - if necessary.
// Code