Skip to content

Instantly share code, notes, and snippets.

View femiabimbola's full-sized avatar

femiabimbola

View GitHub Profile
@femiabimbola
femiabimbola / redux-toolkit.md
Created August 26, 2024 13:57
Understand Redux Toolkit

Setting up NextJS With Redux toolkit

Install the packages to get started

npm install @reduxjs/toolkit react-redux @types/react-redux

Create redux folder or put the redux in lib

Share Prompt tutorial

To create a next react app

$ npx create-next-app@latest ./

Only use Tailwind

The App folder in Nextjs

@femiabimbola
femiabimbola / stuffs.md
Created May 6, 2023 13:17
Tailwind CSS

Width in TalwindCSS

w-full is full width

Background

bg-[#640364] is to set background colour

Text styling

text-white is to change text color

@femiabimbola
femiabimbola / building_ui_from_figma.md
Last active May 22, 2023 14:06
Building from Figma

Installing from Vite

npm create vite@latest

If you get the error vite is not ... do npm install

Installing Tailwind CSS

@femiabimbola
femiabimbola / redux_toolkit_usage.md
Last active April 17, 2023 12:14
How to install and use redux toolkit

Install Redux toolkit

npx install @reduxjs/toolkit react-redux

Setup the store. The store can also be called state.

Create store.js at the root folder

The next line of code is for store.js

@femiabimbola
femiabimbola / gist:7bc44b49b2e9c61b3f9c8249a42d8e14
Last active January 20, 2020 11:51
How to print a range of number in reverse order with Python
maximum = int(input("Please Enter the Maximum integer Value : "))
minimum = int(input("Please Enter the Minimum integer Value : "))
if ( maximum < minimum):
print(" The maximum number should be greather than minimum number")
else:
print("List of Natural Numbers from {0} to {1} : ".format(maximum, minimum))
while ( maximum >= minimum):
print (maximum, end = ' ')

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH