Skip to content

Instantly share code, notes, and snippets.

View sharbel93's full-sized avatar
๐Ÿ’ธ
Back to Coding ๐Ÿ˜Ž

Sharbel Chris sharbel93

๐Ÿ’ธ
Back to Coding ๐Ÿ˜Ž
View GitHub Profile
@burkeholland
burkeholland / prd.md
Created April 10, 2025 19:50
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
import { AsyncPipe } from "@angular/common";
import { Component } from "@angular/core";
import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
import { injectNetwork } from "ngxtension/inject-network";
import {
distinctUntilChanged,
map,
skipWhile,
startWith,
switchMap,
@Directive({
selector: "[mouse]",
exportAs: "mouse"
})
export class MouseComponent {
private _state = { x: 0, y: 0 };
get state() {
return this._state;
}
@Aroniez
Aroniez / kenyan_counties.json
Last active April 22, 2025 17:15
List of kenyan counties and their sub-counties in json format
[
{
"name": "Baringo",
"capital": "Kabarnet",
"code": 30,
"sub_counties": [
"Baringo central",
"Baringo north",
"Baringo south",
"Eldama ravine",
-git clone linktogithubrepo.com/ projectName
-Go to the folder application using cd command on your cmd or terminal
-Run composer install on your cmd or terminal
-Run npm install (
if error encountered in this process,
1). rm -rf node_modules ->2). npm cache clear --force ->3). then npm install
Or
1). npm cache clear --force ->2). then npm install
)
-cp .env.example .env -> Copy .env.example file to .env on the root folder. You can type copy .env.example .env if using command prompt Windows or cp .env.example .env if using terminal, Ubuntu
# Disable Directory listing
Options -Indexes
# block files which needs to be hidden // in here specify .example extension of the file
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
Order allow,deny
Deny from all
</Files>
# in here specify full file name sperator '|'
@manuelgeek
manuelgeek / MailChimpController.php
Last active February 13, 2019 23:32
a simple subscription code with Laravel 5.6 and MailChimp
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
use Config;
@jacurtis
jacurtis / toast-notifications.blade.php
Last active July 7, 2021 21:35
Self Contained Vue.js Instance to Manage LaraFlash Notifications in Laravel
{{--
This makes a great "partial" to add to your template layout file. It will self manage your
notifications so you do not need to worry about displaying them. Simply just add notifications
using LaraFlash (Laravel Package) in your controllers, and they will display intelligently
and elegantly into your views.
Simply use an @include statement in your main template/layout file to this partial so that
this partial is included with every view. The rest can be set once and forgotten.
Requirements:
@oanhnn
oanhnn / how_to.md
Created May 14, 2017 16:47
How to fix composer error "Content-Length Mismatch"

First, run:

$ composer config --list --global        //this will get the composer home path.
[home] /root/.composer                   //it's my composer home path.

And then, edit the config.json in [home] directory, make it like this:

{
  "config": {
 "github-protocols": [
@shakee93
shakee93 / .htaccess
Created January 31, 2017 17:45
Laravel Apache hide .env and several security settings via .htaccess
# Disable Directory listing
Options -Indexes
# block files which needs to be hidden // in here specify .example extension of the file
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
Order allow,deny
Deny from all
</Files>
# in here specify full file name sperator '|'