Skip to content

Instantly share code, notes, and snippets.

View dpkreativ's full-sized avatar
🚀
Boom!

Divine Orji dpkreativ

🚀
Boom!
View GitHub Profile
@dpkreativ
dpkreativ / vuetify-sales-data-table.vue
Last active September 1, 2022 11:00
Default sales data table for Vuetify
<template>
<v-app>
<template>
<v-data-table
:headers="headers"
:items="sales"
sort-by="date"
class="elevation-1"
>
<template v-slot:top>
@dpkreativ
dpkreativ / std.md
Created June 28, 2022 10:17 — forked from turbo/std.md
Git Commit Message Standard

Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/

General Rules

  • Commit messages must have a subject line and may have body copy. These must be separated by a blank line.
  • The subject line must not exceed 50 characters
  • The subject line should be capitalized and must not end in a period
  • The subject line must be written in imperative mood (Fix, not Fixed / Fixes etc.)
  • The body copy must be wrapped at 72 columns
  • The body copy must only contain explanations as to what and why, never how. The latter belongs in documentation and implementation.
@dpkreativ
dpkreativ / ShoppingCart.js
Created February 25, 2022 09:04
Demonstrating how to implement useReducer to handle multiple states in a shopping cart
import React, { useReducer } from 'react';
const ShoppingCart = () => {
const initialState = {
input: '',
items: [],
};
const reducer = (state, action) => {
switch (action.type) {
@dpkreativ
dpkreativ / index.html
Created July 16, 2021 12:42
test layout template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
@dpkreativ
dpkreativ / ReadMeTemplate
Created June 1, 2021 06:48
A simple template for writing better README.md files that properly document my work. Adapted from Frontend Mentor (frontendmentor.io)
# Name of Project
**Project description
This is a ...
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
{"lastUpload":"2020-11-22T12:39:47.036Z","extensionVersion":"v3.4.3"}