Skip to content

Instantly share code, notes, and snippets.

View wagura-maurice's full-sized avatar
🏠
Working from home

Canis Majoris wagura-maurice

🏠
Working from home
View GitHub Profile
@wagura-maurice
wagura-maurice / select2_implementaion.js
Created April 9, 2025 08:37
Select 2 implemention
// 1. First inject the CSS
const select2CSS = document.createElement('link');
select2CSS.rel = 'stylesheet';
select2CSS.href = 'https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css';
document.head.appendChild(select2CSS);
// 2. Create our enhanced custom styles
const customStyles = document.createElement('style');
customStyles.textContent = `
/* General Select2 Container */
@wagura-maurice
wagura-maurice / custom3.css
Created March 12, 2025 07:34
jobzilla custom 3 css
#headlinetext {
background-color: rgba(236, 43, 247, 0.1) !important;
border-left: 5px solid #ec2bf7 !important;
padding: 15px !important;
font-style: italic;
color: #f9f9f9 !important;
font-size: 1rem;
line-height: 1.6;
border-radius: 5px;
resize: none;
@wagura-maurice
wagura-maurice / custom2.css
Last active March 11, 2025 13:21
jobzilla custom css 2
/* ---------------------------------------General Backgrounds----------------------------------------------- */
body {
background-color: #001b30 !important;
}
.site-bg-primary {
background-color: #ec2bf7 !important; /* #0b2539; */
}
/* ---------------------------------------home page----------------------------------------------- */
@wagura-maurice
wagura-maurice / custom.css
Last active March 11, 2025 08:26
custom css for jobzilla
/* ---------------------------------------General Backgrounds----------------------------------------------- */
.site-bg-white,
.site-bg-gray {
background-color: #001b30 !important;
}
.loading-area .loading-box {
background-color: #f9f9f9 !important;
}
@wagura-maurice
wagura-maurice / structure.sh
Created September 20, 2023 13:40
script to only create the folder structure and respective .vue and .ts files in the current directory
#!/bin/bash
# Determine file extension for Vue.js with TypeScript
FILE_EXTENSION=".vue"
# Set up the desired project directory structure for Vue
DIRECTORIES=(
"src/assets/images"
"src/assets/styles"
"src/components/common"
@wagura-maurice
wagura-maurice / setup_vue_app.sh
Last active September 20, 2023 13:34
setup vue js app
#!/bin/bash
# Prompt the user for the application name
echo "Enter your application name:"
read APP_NAME
# Determine file extension for Vue.js with TypeScript
FILE_EXTENSION=".vue"
# Initialize the Vite app using the specified name with the Vue TypeScript template
@wagura-maurice
wagura-maurice / postman_installation.md
Created September 9, 2023 15:58 — forked from Akhil-Suresh/postman_installation.md
Installing Postman on Ubuntu/Debian

Installing Postman

Step 1

If any version of postman is installed we need to remove it

sudo rm -rf /opt/Postman

Step 2

@wagura-maurice
wagura-maurice / modify-dom.txt
Created May 1, 2023 21:51 — forked from ahliang85/modify-dom.txt
Chrome Extension - Modify DOM
Background page is kind of like you own mini server - it is a completely isolated page that has nothing to do with pages a user visits. It is used for controlling the rest of extension components as it is always running in background.
Content scripts are pieces of javascript code that are getting injected into actual pages a user visits and can access and modify parent page's DOM.
So to get your extension working you need to remove
<script src="jquery.min.js"></script>
<script src="content.js"></script>
from background page, and inject jquery as a content script either through manifest:
@wagura-maurice
wagura-maurice / USSD_CASE.md
Created October 9, 2022 01:04
USSD logic for rent

PART 1; is what new tenants interact with when they dial our ussd for the first time. is also what existing tenants interact with when applying to new property unit tenancy.

(*) NEW TENANCY MENU
    [INPUT] PROPERTY UNIT CODE
    [SELECTION] CONFIRMATION
        1) CONTINUE -> send to tenant onboarding and property unit assigning action
        2) BACK -> send to property unit code input
  1. EXIT -> send to session termination
@wagura-maurice
wagura-maurice / AbstractController.php
Created August 2, 2022 08:19 — forked from dinhquochan/AbstractController.php
Abstract Controller for Laravel (version 8.x)
<?php
namespace App\Http\Controllers;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\JsonResponse;
use Illuminate\Routing\Controller as BaseController;